-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[debci] for 0.7.0 version #253
Comments
We usually don't test the -dbg packages ... |
Hello, I have this error message in the ci (still with the python dbg version): https://ci.debian.net/packages/p/python-fabio/testing/amd64/ https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-fabio/10371373/log.gz
First it seems that it is only triggered with the 1.19.5 version of numpy ??? If I look after this error message on internet, I have a bunch or relevant answer like this one. I am wondering if this as some meaning for you... the culprite could be in numpy 1.19.5, or a fabio bug triggered only with numpy 1.19.5 ... |
after investigation the problem comes from these tests testSuite.addTest(codecs.suite()) |
in the codec this one is the wrong one... testSuite.addTest(test_tifimage.suite()) |
inside whcih we find this wrong test testsuite.addTest(loadTests(TestTif_LibTiffPic)) |
the fax2d.tif image seems to cause troubles ???
|
If I comment the code whcih use PIL
the test pass. Indeed nothing is done. |
this line seems to cause the trouble
|
By instrumenting the code, it seems that this image is the only one with a bool dtype
|
a modification around the bool type was done in numpy |
ok, I can reproduce the bug with this small script
python3-dbg: ../Objects/typeobject.c:3241: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed. |
In order to try to understand something I ran it wit the normal Python
the result is different, if I use numpy.bool instead of bool. to me numpy.bool seems better with this version of numpy 1.19.5 |
With the python3-dbg version, both case create troubles.
|
Still playing with all this... I will open the file with PIL, convert it to "F" and see if this is better.
amazing, the first attempt to convert the image produce an OSError (-9), then the next attempt works. |
this error -9 come from the decoder C part of Pillow the meaning is
|
we can find this error message here
|
Running the code in gdb, I found that the MEMORY error comes from the _decodeStrip method
|
After the call of
the value of rows_per_strip seems strange
|
during the compilation of Pillow, I can see these warning for the TiffDecode.c
|
to my opinion getting rid of PIL would be nice and replace it with wand. I could read the image and convert it with no error
See you :)) |
This issue should be reported to the pillow project then, no? We probably dont care about bool image at synchrotron so this image could be skipped from our tests (while it is not fixed in pillow). |
for mask bool images are great :)). Maybe removing all the specific code for tiff images, should help reduce the maintenance of fabio :)). cheers Fred |
Thanks a lot Fred for this investigation. |
My initial comment remains: do we need to maintain the |
Yes, I think, because this trigger real bugs :)), it is nice to have this run in order to show leak of ressources or other probles :) I have a doubt about this bug, because it seems that it was not present with numpy 1.19.4, but has I said previously, the output of the convert method is strange depending on the dtype. The C code of Pillow, its not simple especillay if you consider CVE. at least imagemagick has a good decurity support :). |
We could convert binary files into uint8 dtype, that would be easy on out side. |
Hello, it seems that there is some issue with the python3 implementation.
you can find the log here for all python[2-3][-dbg] version of fabio.
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/python-fabio/751490/log.gz
cheers
The text was updated successfully, but these errors were encountered: