ERROR: bob.io.image.test.test_cpp_interface----------------------------------------------------------------------Traceback (most recent call last): File "/Users/travis/miniconda3/envs/_test/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/Users/travis/miniconda3/envs/_test/lib/python2.7/site-packages/bob/io/image/test.py", line 77, in test_cpp_interface _test_io(tmpdir)RuntimeError: _test_io: C++ exception caught: 'GIF: error in DGifGetImageDesc().'
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
After some debugging and code improvement, I have found out that the problem happens during file closing. The function EGifCloseFile() returns an unknown error at every iteration. In some conditions, the reading of this unclosed file works, in others, it doesn't.
Scratch that - file closing is working OK. The problem is the readout does not work reliably 100% of the times, there is a problem in giflib that was already patched (begin of 2016), and is available in giflib 5.1.3 and superior.
It is related to the initialisation of private bits of the GifFileType structure (no access from the giflib API), which was not correctly memset before.