-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix issue introduced by 7dc0faf by doing more cleanup in gboolean vs … #17537
base: master
Are you sure you want to change the base?
Conversation
@wpferguson : Can you double check this. TIA. |
I saw this last night, but didn't realize that it was my change that caused it. When I went to find the problem, I couldn't reproduce. Testing now.... I still see it on tif, dng, and a cr3. I'll do some digging.... Another datapoint, opened a skull image in darkroom and it's fine, but the filmstrip thumbnails are all skulls |
I backed up before my change and loaded some tif's with Here's part of the log...
trying to trace the execution to see how we get from tiff open to dt_imageio_export |
The problem seems to be in Unless you have an idea, I would say revert my PR and I'll work on it until I solve the problems. At least that way it wont affect people trying to use master. |
f41859f
to
3280a1a
Compare
For me the fix works, at least for NEF and DNG |
@AndDiSa : Indeed, it works for RAW & JPEG but still buggy for TIFF. @wpferguson : I have pushed the revert I had prepared. |
108df3b
to
89ca157
Compare
After a nights sleep and some time to think this is what I came up with. The original problem was that So, I propose simply turning |
As for |
Thanks for cleaning up my mess. |
@wpferguson : No problem, I spend quite some time trying to fix the issue but could not either... One data point: In dt_imageio_large_thumbnail we have (in this PR):
So res to TRUE, and some early return:
But the I tried fixing that but the last state of this PR is ok for everything expect TIFF. I would say that we want to continue to work on this... We need to fix for a better future :) |
Maybe I should change my username to Pandora :-D
I agree. My brain segfaulted a few times trying to make sense of the code. I'll keep playing with it. I enjoy puzzles |
Good, start over this PR which has already quite some fixes. |
* src/imageio/imageio.c - changed dt_imageio_export_with_flags to return TRUE on success and FALSE on error. Since dt_imageio_export calls dt_imageio_export_with_flags to do the actual export, dt_imageio_export now returns TRUE for success and FALSE for error. src/imageio/storage/disk.c src/imageio/storage/email.c src/imageio/storage/gallery.c src/imageio/storage/pwigo.c src/lua/luastorage.c - updated the places where dt_imageio_export was called to use the boolean return value for success tests.
89ca157
to
83be4b3
Compare
83be4b3
to
a25fccc
Compare
@wpferguson : I have just pushed a new version with your changes and mine on top. Let's play :) |
…int.
Fixes #17536