GNOME Bugzilla – Bug 470589
Converting color space a second time causes error messages
Last modified: 2008-10-30 19:57:45 UTC
From Debian bug report http://bugs.debian.org/439511: When I open a file with an embedded color profile (Nikon sRGB 4.0.0.3000) GIMP offers me to convert the image color space to sRGB built-in. However, accepting this suggestion results in the following error message appearing three times, once for each of the following procedures: gimp-selectio-is-empty, gimp-selection-save and gimp-selection-none. The argument is 'image' in all three cases. Procedure '%s' has been called with an invalid ID for argument '%s'. Most likely a plug-in is trying to work on a layer that doesn't exist any longer. The following is also printed to stdout: lcms: converting from 'Nikon sRGB 4.0.0.3000' to 'sRGB built-in' a calling error occurred while trying to run: "gimp-selection-is-empty" a calling error occurred while trying to run: "gimp-selection-save" a calling error occurred while trying to run: "gimp-selection-none" Note that if the image is the first one you open, you don't get the messages. In that case you can just close it and open it again. Gimp might be completing the conversion, and that the progress bar is hidden behind the window containing the error messages. I can't tell whether the conversion works or not, though.
Created attachment 94408 [details] Image that exhibits this behavior
If you start gimp with "gimp b002.resized.tif", the the image will be loaded and converted without any warnings. But starting gimp without any arguments and then opening the file using File->Open will result in the 3 errors described by the reporter as soon as you press the Convert button.
Fixed in SVN: 2007-08-29 Michael Natterer <mitch@gimp.org> * plug-ins/common/lcms.c (lcms_image_apply_profile): gimp-selection-* procedures operate on the image_ID, not on the selection drawable_ID itself. Fixes bug #470589. Also remove the saved selection channel after reloading it.