# Buffer size error with specific ultrasound sequences

**URL:** <https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785>\
**Category:** Support\
**Created:** [February 20, 2025, 10:19am UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785 "2025-02-20T10:19:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernard\_Victor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bernard_victor/32/79395_2.png) [@Bernard\_Victor](https://discourse.slicer.org/u/Bernard_Victor)\
**Post date:** [February 20, 2025, 10:19am UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/1 "2025-02-20T10:19:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bernard\_Victor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bernard_victor/32/79395_2.png) [@Bernard\_Victor](https://discourse.slicer.org/u/Bernard_Victor)\
**Post date:** [February 21, 2025, 7:27am UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/2 "2025-02-21T07:27:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 21, 2025, 4:47pm UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/3 "2025-02-21T16:47:43Z")

</div>

You can start with the suggestions here:

[https://slicer.readthedocs.io/en/latest/user\_guide/modules/dicom.html#troubleshooting](https://slicer.readthedocs.io/en/latest/user_guide/modules/dicom.html#troubleshooting)

---

<div class="post-metadata">

**Author:** ![Bernard\_Victor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bernard_victor/32/79395_2.png) [@Bernard\_Victor](https://discourse.slicer.org/u/Bernard_Victor)\
**Post date:** [February 25, 2025, 11:38am UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/4 "2025-02-25T11:38:57Z")

</div>

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.](https://drive.google.com/file/d/1NXuamGjYxJVMMryndQPKZ2k1Gi0tKygg/view?usp=sharing).  
Thank you so much.

Bernard

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 26, 2025, 7:04pm UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/5 "2025-02-26T19:04:28Z")

</div>

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

```auto
>>> 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.

---

<div class="post-metadata">

**Author:** ![Bernard\_Victor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bernard_victor/32/79395_2.png) [@Bernard\_Victor](https://discourse.slicer.org/u/Bernard_Victor)\
**Post date:** [February 27, 2025, 5:08pm UTC](https://discourse.slicer.org/t/buffer-size-error-with-specific-ultrasound-sequences/41785/6 "2025-02-27T17:08:47Z")

</div>

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

Bernard
