Opening some images lock GIMP
Environment/Versions
- GIMP version: master
- Operating System: Linux
Description of the bug
As described in this comment, opening some image locks GIMP. I experienced this same issue with some other image (which I can't upload as these are private docs).
Reproduction
Is the bug reproducible?
Reproduction steps:
Expected result: GIMP asks what to do with the profile and loads the image.
Actual result: GIMP seems to lock, seemingly forever (wait long enough at least for me to get bored and kill the process).
Additional information
It looks like this would happen when an image would output either the rotation (as is the case for the file uploaded here) or the color profile dialog (the case I encountered on other files) and there is somehow warnings outputted at load, for instance because of #5863 (closed).
Indeed there is a way to work around the issue: in Preferences > Debugging, make so that we don't debug the warnings. Then the image opens without any problem and the warning is just outputted to stderr:
app/gimp-2.99: (null)-WARNING: No namespace info available for XMP prefix `MiCamera'
Note that that setting, in Preferences > Image Import & Export, the "Metadata Rotation Policy" or "Color Profile Policy" to anything but "Ask what to do" is not enough not to block GIMP.
Finally, and unfortunately, running GIMP inside gdb
, it doesn't block anymore (but the debug dialog does not contains a trace because it fails to attach to the process). So it's harder to understand what's happening.