[Insight-users] Problems reading 2D analyze files

Richard Beare richard.beare at gmail.com
Thu Nov 3 22:43:48 EST 2005


Hi,
I haven't tracked down the source of the problem yet, but thought I'd
send a quick summary in case anyone recognises it.

Using new versions of ITK I'm having trouble reading 2D analyze files.
In ImageViewer (or any python scripts) I get a segmentation fault on
reading. gdb reports the following:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46912531226048 (LWP 7927)]
0x00002aaaaacba098 in std::_Rb_tree<std::string, std::pair<std::string
const, itk::SmartPointer<itk::MetaDataObjectBase> >,
std::_Select1st<std::pair<std::string const,
itk::SmartPointer<itk::MetaDataObjectBase> > >,
std::less<std::string>, std::allocator<std::pair<std::string const,
itk::SmartPointer<itk::MetaDataObjectBase> > > >::lower_bound ()
   from /usr/local/lib/InsightToolkit/libITKCommon.so
(gdb) where
#0  0x00002aaaaacba098 in std::_Rb_tree<std::string,
std::pair<std::string const,
itk::SmartPointer<itk::MetaDataObjectBase> >,
std::_Select1st<std::pair<std::string const,
itk::SmartPointer<itk::MetaDataObjectBase> > >,
std::less<std::string>, std::allocator<std::pair<std::string const,
itk::SmartPointer<itk::MetaDataObjectBase> > > >::lower_bound ()
   from /usr/local/lib/InsightToolkit/libITKCommon.so
#1  0x00002aaaaacb9b57 in itk::MetaDataDictionary::operator[] ()
   from /usr/local/lib/InsightToolkit/libITKCommon.so
#2  0x00002aaaaaf7ccf0 in itk::AnalyzeImageIO::ReadImageInformation ()
   from /usr/local/lib/InsightToolkit/libITKIO.so
#3  0x000000000043a190 in itk::ImageFileReader<itk::Image<float, 3u>,
itk::DefaultConvertPixelTraits<float> >::GenerateOutputInformation ()
#4  0x00002aaaaac67d11 in itk::ProcessObject::UpdateOutputInformation ()
   from /usr/local/lib/InsightToolkit/libITKCommon.so
#5  0x000000000042cda0 in itk::ImageBase<3u>::UpdateOutputInformation ()
#6  0x00002aaaaac2c9ad in itk::DataObject::Update ()
   from /usr/local/lib/InsightToolkit/libITKCommon.so
#7  0x00000000004229eb in main ()


I am able to load the same image successfully using a much older
version of itk and ImageViewer compiled from cvs back at the end of
September.

The current version seems to read 3D images without any problems.

Any ideas?


More information about the Insight-users mailing list