After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 470589 - Converting color space a second time causes error messages
Converting color space a second time causes error messages
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.4.x
Other All
: Normal normal
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2007-08-27 04:04 UTC by Ari Pollak
Modified: 2008-10-30 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Image that exhibits this behavior (39.42 KB, image/tiff)
2007-08-27 04:05 UTC, Ari Pollak
Details

Description Ari Pollak 2007-08-27 04:04:42 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.
Comment 1 Ari Pollak 2007-08-27 04:05:10 UTC
Created attachment 94408 [details]
Image that exhibits this behavior
Comment 2 Raphaël Quinet 2007-08-27 16:43:21 UTC
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.
Comment 3 Michael Natterer 2007-08-29 11:45:42 UTC
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.