[OpenWalnut-Dev] Failing Unittests
Alexander Wiebel
wiebel at zib.de
Mon Apr 18 11:07:29 CEST 2011
Hi.
I have to note a failing unittest that only occurs on my new openSuSE
11.4 which has a gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585].
See messages at the end of the mail. The same test does not fail on
Ubuntu with gcc4.4.3.
It does not seem something internal that is wrong, but something with
the test file dataHandler/fixtures/vector_unsigned_char.nii.gz in
conjunction with the NIfTI library. Even nifti_tool tells me that the
file is corrupted on openSuSE but not on my Ubuntu.
The same occurs for ...../fixtures/scalar_signed_short.nii.gz.
All other files seem OK.
Does anyone have them same problems?
Cheers,
Alex
--------
In WReaderNIfTITest::testLoading1:
/home/wiebel/OpenWalnut/src/dataHandler/io/test/WReaderNIfTI_test.h:87:
Error: Test failed: Assertion failed: header (in file
/home/wiebel/OpenWalnut/src/dataHandler/io/test/../WReaderNIfTI.cpp at
line 100), Message: Error during file access to NIfTI file. This
probably means that the file is corrupted.
*DEBUG [WReaderNIfTI] Load as WDataSetScalar
*DEBUG [WDataTexture3D] Texture scaling information for data in [0,
255]: scaling factor=255
*DEBUG [WDataTexture3D] Resolution is 11x11x11
.*DEBUG [WReaderNIfTI] Load as WDataSetScalar
*DEBUG [WDataTexture3D] Texture scaling information for data in [-13,
0]: scaling factor=13
*DEBUG [WDataTexture3D] Resolution is 11x11x11
.*DEBUG [WReaderNIfTI] Load as WDataSetVector
*DEBUG [WDataTexture3D] Texture scaling information for data in [-15,
15]: scaling factor=30
*DEBUG [WDataTexture3D] Resolution is 11x11x11
.*DEBUG [WReaderNIfTI] Load as WDataSetSingle
*DEBUG [WDataTexture3D] Texture scaling information for data in
[-2.72767e-05, 0.00171175]: scaling factor=0.00173902
*DEBUG [WDataTexture3D] Resolution is 11x11x11
.** ERROR (nifti_image_read): short header read
'../fixtures/vector_unsigned_char.nii.gz'
Exception thrown! Callstack's backtrace:
trace: WException::WException(std::string const&) ->
/home/wiebel/OpenWalnut/build/release/lib/libOWcommon.so(_ZN10WExceptionC1ERKSs+0x135)
[0x7f4732dc3395]
trace: wAssertFailed(std::string const&, std::string const&, unsigned
long, std::string const&) ->
/home/wiebel/OpenWalnut/build/release/lib/libOWcommon.so(_Z13wAssertFailedRKSsS0_mS0_+0x274)
[0x7f4732dba954]
trace: WReaderNIfTI::load(DataSetType) ->
../../bin/unittest_WReaderNIfTI(_ZN12WReaderNIfTI4loadE11DataSetType+0x43b4)
[0x4232e4]
trace: TestDescription_WReaderNIfTITest_testLoading6::runTest() ->
../../bin/unittest_WReaderNIfTI(_ZN45TestDescription_WReaderNIfTITest_testLoading67runTestEv+0x46)
[0x4329c6]
trace: CxxTest::RealTestDescription::run() ->
../../bin/unittest_WReaderNIfTI(_ZN7CxxTest19RealTestDescription3runEv+0x26)
[0x41caa6]
trace: CxxTest::TestRunner::runWorld() ->
../../bin/unittest_WReaderNIfTI(_ZN7CxxTest10TestRunner8runWorldEv+0x1ab) [0x42bbbb]
trace: main() -> ../../bin/unittest_WReaderNIfTI(main+0x67)
[0x41ce97]
trace: __libc_start_main() ->
/lib64/libc.so.6(__libc_start_main+0xfd) [0x7f472f8abbfd]
trace: ??? -> ../../bin/unittest_WReaderNIfTI() [0x419679]
More information about the OpenWalnut-Dev
mailing list