GDCM Error crashing Orthanc

Hi there,

I might found a bug with GDCM not properly handled by Orthanc,

The following DICOM in attachement, raise an exception into GDCM when using “IngestTranscoding” : “1.2.840.10008.1.2.4.57” parameter.

I guess it is a bug of GDCM ? Should I get in touch with Mathieu Malaterre?

But more enoying than GDCM bug is that even if orthanc detect this error by writing in the log
E0702 13:09:38.999424 PluginsManager.cpp:164] Bad file format: GDCM cannot decode the image

The orthanc server itself crashes after this log, without any additional information, like a non handled exception breaking the main process itself.

This is on Orthanc 1.9.4

Thanks for help,

Salim

test_dicomseg_labelled (1).dcm (2.37 MB)

Dear Salim,

The problem is visibly that GDCM doesn’t support transcoding of 1bpp images. I have just added a check to prevent the transcoding of such images:
https://hg.orthanc-server.com/orthanc-gdcm/rev/ff8aec4536de

HTH,
Sébastien-

Very great,

Thanks Sebastient,

Best regards,

Salim