AimsFileConvert segfault on some DICOM images
Posted: Mon Nov 22, 2004 6:25 pm
Hi,
I just try to open a DICOM image (directly in Anatomist or using AimsFileConvert). In both cases, I get a "segmentation fault".
(gdb) bt
#0 0x42a485d7 in aims::DicomReader<short>::readData () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdicom.so.2.13
#1 0x42a32deb in aims::DicomFormat<short>::read () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdicom.so.2.13
#2 0x40ed7219 in aims::Reader<AimsData<short> >::read () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#3 0x40589f5c in bool loadData<AimsData<short> > () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#4 0x40581fa1 in bool loadVolume<short> () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#5 0x41015220 in aims::Process::execute () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#6 0x410140d3 in aims::Process::execute () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#7 0x405801f0 in anatomist::ObjectReader::readAims () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#8 0x4057c7ef in anatomist::ObjectReader::load () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#9 0x40592e00 in anatomist::AObject::load () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#10 0x4071d826 in anatomist::Anatomist::loadObject () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#11 0x404d7ecc in anatomist::LoadObjectCommand::doit () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
I can not try with the development version, because it does not open DICOMs (probably a compilation issue).
The other MRI exams (T1 MRI) of the same patient are read without problems.
It is a vascular image from a GE 1.5T MRI, the sequence is called 3D-MOTSA.
I do not know how it was acquired, but I see there is not only one 3D image in this DICOM.
If I open it using another software, I get the expected image on most slices (looks like a T1mri with different gray tones), and on some slices an image which looks like a 3D reconstruction of the head with the vessels highlighted.
I tried to remove those slices from the directory and I tried to load the same sequence from another patient, but Aims still segfaults.
Is there something else I can try to import these images correctly ?
Tank you,
I just try to open a DICOM image (directly in Anatomist or using AimsFileConvert). In both cases, I get a "segmentation fault".
(gdb) bt
#0 0x42a485d7 in aims::DicomReader<short>::readData () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdicom.so.2.13
#1 0x42a32deb in aims::DicomFormat<short>::read () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdicom.so.2.13
#2 0x40ed7219 in aims::Reader<AimsData<short> >::read () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#3 0x40589f5c in bool loadData<AimsData<short> > () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#4 0x40581fa1 in bool loadVolume<short> () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#5 0x41015220 in aims::Process::execute () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#6 0x410140d3 in aims::Process::execute () from ***SHFJ_pack-stable-linux-2.3.2/lib/libaimsdata.so.2.13
#7 0x405801f0 in anatomist::ObjectReader::readAims () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#8 0x4057c7ef in anatomist::ObjectReader::load () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#9 0x40592e00 in anatomist::AObject::load () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#10 0x4071d826 in anatomist::Anatomist::loadObject () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
#11 0x404d7ecc in anatomist::LoadObjectCommand::doit () from ***SHFJ_pack-stable-linux-2.3.2/lib/libanatomist.so.1.30
I can not try with the development version, because it does not open DICOMs (probably a compilation issue).
The other MRI exams (T1 MRI) of the same patient are read without problems.
It is a vascular image from a GE 1.5T MRI, the sequence is called 3D-MOTSA.
I do not know how it was acquired, but I see there is not only one 3D image in this DICOM.
If I open it using another software, I get the expected image on most slices (looks like a T1mri with different gray tones), and on some slices an image which looks like a 3D reconstruction of the head with the vessels highlighted.
I tried to remove those slices from the directory and I tried to load the same sequence from another patient, but Aims still segfaults.
Is there something else I can try to import these images correctly ?
Tank you,