Dear all,
We are using the AXIS DICOM server from Escalon Sonomed, which uses Leadtools in order to convert EncapsulatedPDFs to Jpeg2000 images.
During this conversion process, we see "Leadtools.RasterException: CGM codec is needed to use this feature" (stack trace below).
We simply don't understand why sometimes this works and sometimes not. We can't see a relevant difference neither in the DICOM files, nor in the PDFs they contain, so we can't find a reason for failure.
Any help would be very much appreciated.
Thanks,
Greetings,
Sorin
2022-03-16 10:05:38,091 [50] DEBUG DicomServiceImpl.CStore (null) - pdf engine is installed... actually writing pdf
2022-03-16 10:05:38,107 [50] ERROR AxisDicomService.Database.AxisDatabase (null) - Database call failed (inside connection scope)
Leadtools.RasterException: CGM codec is needed to use this feature
at Leadtools.Codecs.RasterCodecs.DoGetInformation(String fileName, Stream stream, Boolean totalPages, Int32 pageNumber)
at Leadtools.Codecs.RasterCodecs.DoLoad(LoadParams loadParams)
at Leadtools.Codecs.RasterCodecs.Load(Stream stream)
at AxisDicomService.DicomServiceImpl.<>c__DisplayClass44_1.<StoreImageFile>b__0(SqlServerConnection conn)
at AxisDicomService.Database.AxisDatabase.CallDatabase(Func`1 getConnection, Action`1 databaseAction, ILog log)
2022-03-16 10:05:38,122 [50] ERROR AxisDicomService.Database.AxisDatabase (null) - Database call failed (outside connection scope)
Leadtools.RasterException: CGM codec is needed to use this feature
at Leadtools.Codecs.RasterCodecs.DoGetInformation(String fileName, Stream stream, Boolean totalPages, Int32 pageNumber)
at Leadtools.Codecs.RasterCodecs.DoLoad(LoadParams loadParams)
at Leadtools.Codecs.RasterCodecs.Load(Stream stream)
at AxisDicomService.DicomServiceImpl.<>c__DisplayClass44_1.<StoreImageFile>b__0(SqlServerConnection conn)
at AxisDicomService.Database.AxisDatabase.CallDatabase(Func`1 getConnection, Action`1 databaseAction, ILog log)
2022-03-16 10:05:38,138 [50] INFO DicomServiceImpl.CStore (null) - Exit StoreImageFile
2022-03-16 10:05:38,138 [50] ERROR Escalon.Dicom.ServiceModel.LeadTools.DicomConnection<ScpConnection> (null) - DICOM service action failed
Leadtools.RasterException: CGM codec is needed to use this feature
at Leadtools.Codecs.RasterCodecs.DoGetInformation(String fileName, Stream stream, Boolean totalPages, Int32 pageNumber)
at Leadtools.Codecs.RasterCodecs.DoLoad(LoadParams loadParams)
at Leadtools.Codecs.RasterCodecs.Load(Stream stream)
at AxisDicomService.DicomServiceImpl.<>c__DisplayClass44_1.<StoreImageFile>b__0(SqlServerConnection conn)
at AxisDicomService.Database.AxisDatabase.CallDatabase(Func`1 getConnection, Action`1 databaseAction, ILog log)
at AxisDicomService.Database.AxisDatabase.CallDatabase(Action`1 databaseAction, ILog log)
at AxisDicomService.DicomServiceImpl.StoreImageFile(DicomServiceOperationContext context, DicomCompositeImage iod, MoveContext moveContext)
at Escalon.Dicom.ServiceModel.LeadTools.ScpConnection.<>c__DisplayClass23_2.<OnReceiveCStoreRequest>b__2(Action`1 <setStatus>)
at Escalon.Dicom.ServiceModel.LeadTools.DicomConnection`1.InvokeSafe(DicomServiceAction action)
2022-03-16 10:05:38,154 [50] DEBUG Escalon.Dicom.ServiceModel.LeadTools.ScpConnection (null) - Sending SendCStoreResponse
2022-03-16 10:05:38,169 [50] DEBUG Escalon.Dicom.ServiceModel.LeadTools.ScpConnection (null) - Finished sending SendCStoreResponse
2022-03-16 10:05:38,169 [50] DEBUG Escalon.Dicom.ServiceModel.DicomServiceOperationThreadManager (null) - Enter RemoveThreadContext - Connection ID: 17
2022-03-16 10:05:38,169 [MessagePump:1 - SCP (localhost:1044(AXISTEST))] DEBUG Escalon.Dicom.ServiceModel.LeadTools.ScpConnection (null) - Enter OnReceiveReleaseRequest
2022-03-16 10:05:38,200 [MessagePump:1 - SCP (localhost:1044(AXISTEST))] DEBUG Escalon.Dicom.ServiceModel.LeadTools.DicomConnection<ScpConnection> (null) - Enter InvokeActionUpdateIdleTimer - action Name: <OnReceiveReleaseRequest>b__18_0