[Insight-developers] today's ITK using today's GDCM has failing unit tests

Sean McBride sean at rogue-research.com
Wed Dec 23 13:51:53 EST 2009


Hi Mathieu and others,

If I use today's ITK from CVS and today's GDCM from svn (r6469) and
build ITK using that GDCM (all in Debug), several ITK unit tests fail. 
Specifically:

	954 - itkAnalyzeIOBigEndian (SEGFAULT)
	951 - itkAnalyzeIOBigEndianCompressed.hdr (SEGFAULT)
	955 - itkAnalyzeIOLittleEndianCompressed (SEGFAULT)
	956 - itkAnalyzeIOLittleEndian (SEGFAULT)
	957 - itkAnalyzeIOInternalTests (SEGFAULT)
	965 - itkNiftiIOBigEndianCompressed.hdr (SEGFAULT)
	969 - itkNiftiIOLittleEndianCompressed (SEGFAULT)
	968 - itkNiftiIOBigEndian (SEGFAULT)
	970 - itkNiftiIOLittleEndian (SEGFAULT)
	971 - itkNiftiIOInternalTests (SEGFAULT)
	1000 - itkGDCMImageIOTest1 (SEGFAULT)
	1001 - itkGDCMImageIOTest2 (SEGFAULT)


The reason is that GDCM is asserting.  Some examples:

Assertion failed: (0), function InverseRescale, file /Volumes/Leopard/
Users/sean/kitware/GDCM/trunk/Source/MediaStorageAndFileFormat/
gdcmRescaler.cxx, line 321.

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff866abfe6 __kill + 10
1   libSystem.B.dylib             	0x00007fff8674ce32 abort + 83
2   libSystem.B.dylib             	0x00007fff86739e74 __pthread_markcancel + 0
3   itkGDCMImageIOTest            	0x00000001000f86b8
gdcm::Rescaler::InverseRescale(char*, char const*, unsigned long) + 372
4   itkGDCMImageIOTest            	0x00000001000702a9
itk::GDCMImageIO::Write(void const*) + 9369
5   itkGDCMImageIOTest            	0x0000000100046e3b
itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::GenerateData() +
2329 (itkImageFileWriter.txx:419)
6   itkGDCMImageIOTest            	0x00000001000462c4
itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::Write() + 7564
(itkImageFileWriter.txx:341)
7   itkGDCMImageIOTest            	0x00000001000178b0
itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::Update() + 34
(itkImageFileWriter.h:158)
8   itkGDCMImageIOTest            	0x0000000100017195 main + 1299
(itkGDCMImageIOTest.cxx:149)


Assertion failed: (GetTag() == de.GetTag() || GetTag().GetGroup() ==
0x6000 || GetTag().GetGroup() == 0x5000), function SetFromDataElement,
file /Volumes/Leopard/Users/sean/kitware/GDCM/trunk/Source/
DataStructureAndEncodingDefinition/gdcmAttribute.h, line 208.

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x00007fff866abfe6 __kill + 10
1   libSystem.B.dylib             	0x00007fff8674ce32 abort + 83
2   libSystem.B.dylib             	0x00007fff86739e74 __pthread_markcancel + 0
3   itkIOTests                    	0x00000001007592b2 gdcm::Attribute<
(unsigned short)40, (unsigned short)17, 33554432, 1>::SetFromDataElement
(gdcm::DataElement const&) + 170
4   itkIOTests                    	0x00000001007501e2
gdcm::PixmapReader::ReadACRNEMAImage() + 1454
5   itkIOTests                    	0x000000010075c239
gdcm::ImageReader::ReadACRNEMAImage() + 31
6   itkIOTests                    	0x0000000100755b45
gdcm::PixmapReader::Read() + 3323
7   itkIOTests                    	0x000000010075c1c1
gdcm::ImageReader::Read() + 21
8   itkIOTests                    	0x000000010065f18e
itk::GDCMImageIO::CanReadFile(char const*) + 674
9   itkIOTests                    	0x000000010069560d
itk::ImageIOFactory::CreateImageIO(char const*,
itk::ImageIOFactory::FileModeType) + 495
10  itkIOTests                    	0x0000000100106ab6
itk::ImageFileReader<itk::Image<unsigned char, 3u>,
itk::DefaultConvertPixelTraits<unsigned char>
>::GenerateOutputInformation() + 826 (itkImageFileReader.txx:120)
11  itkIOTests                    	0x00000001009f89fd
itk::ProcessObject::UpdateOutputInformation() + 439
12  itkIOTests                    	0x00000001002ed339
itk::ImageBase<3u>::UpdateOutputInformation() + 125 (itkImageBase.txx:234)
13  itkIOTests                    	0x00000001009e5258
itk::DataObject::Update() + 34
14  itkIOTests                    	0x00000001009f7b2d
itk::ProcessObject::Update() + 67
15  itkIOTests                    	0x0000000100277723
itk::Image<unsigned char, 3u>::Pointer ReadImage<itk::Image<unsigned
char, 3u> >(std::string const&, bool) + 122 (itkNiftiImageIOTest.h:83)
16  itkIOTests                    	0x000000010012829d itkNiftiImageIOTest
(int, char**) + 397 (itkNiftiImageIOTest.cxx:161)
17  itkIOTests                    	0x0000000100029f30 main + 1070
(itkTestMain.h:164)

Is this news or a known issue?

Thanks,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the Insight-developers mailing list