Buffer size error with specific ultrasound sequences

Hello

I have the following buffer size error with specific ultrasouns sequences:

Exception thrown in event: /Users/svc-dashboard/ D/S/A/ITK/Modules/IO/GDCM/src/
itkGDCMImagelO.cxx:426:
ITK ERROR: GDCMimagelO(0x7f9293058e40):
Buffer size 678084944 is not valid

This is specific to 4 DICOM files out of 20. All the files were exported in the same way from a Logic e10s (GE) ultrasound machine. The same error occurs both on macOs and Ubuntu Linux (Slicer version = 5.8.0).

I tried reexporting the files. Same error. The sequences can be read in Horos DICOM reader. Is there something I could do please?

Thak you,

Bernard

Hello again,

I further noticed that every sequence I have a problem with is > 800MB. And every sequence I can open is < 405 MB

Thank you

Bernard

You can start with the suggestions here:

https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#troubleshooting

Thank you.
I cannot find a solution.
I actually succeeded for 2 of 5 of my problematic filers (I diminished frame number but pyhton script then I decompressed the file (with jdcmconv -J --raw). 2 files can now be loaded while 3 are not.
FIle surfer won’t install on my macbook. I have an error trying to run dicom2nifti
I also tried the DICOM patcher module in 3dslicer, without success

This is very strange. Those files can be read normally in Horos. 20 other DICOM ultrasound files were extracted in the exact same way and can be loaded in 3dSlicer.

Any help would be greatly apreciated. Here is a link for one of the 3 problematic files..
Thank you so much.

Bernard

The error you are seeing if from ITK, so you could report the issue at the ITK forum or issue tracker. https://itk.org/

>>> i = SimpleITK.ReadImage("/tmp/OCCALBOE")
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/opt/sr/python-install/lib/python3.9/site-packages/SimpleITK/extra.py", line 384, in ReadImage
    return reader.Execute()
  File "/opt/sr/python-install/lib/python3.9/site-packages/SimpleITK/SimpleITK.py", line 6218, in Execute
    return _SimpleITK.ImageFileReader_Execute(self)
RuntimeError: Exception thrown in SimpleITK ImageFileReader_Execute: /opt/sr/ITK/Modules/IO/GDCM/src/itkGDCMImageIO.cxx:426:
ITK ERROR: GDCMImageIO(0x7fb2d2fc5580): Buffer size 2785256438 is not valid

On the other hand, I could read the file with pydicom and could probably and you could probably extract the data that way with a script.

I’ll do it. Thank you very much for your kind help.

Bernard