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 512529 - icc profile references to nonexistent files crash lcms plug-in
icc profile references to nonexistent files crash lcms plug-in
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-01-28 10:38 UTC by david gowers
Modified: 2008-01-28 17:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description david gowers 2008-01-28 10:38:30 UTC
steps to reproduce:
1) create an image
2) assign a profile to that image
3) save the image
4) move or delete the profile
5) try to reassign the profile.
lcms plugin crashes with a message like this:

"
Assign Color Profile Message

Could not open '/home/ion/Desktop/sRGB_v4_ICC_preference.icc' for reading: Failed to open file '/home/ion/Desktop/sRGB_v4_ICC_preference.icc': open() failed: No such file or directory

Message repeated once

Plug-in crashed: "lcms"
(/home/ion/.gimp-2.5/baseline-plugins/lcms)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side
"

IMO, having an invalid profile should be treated the same as having no profile.
The current behaviour blocks users who do not have a particular profile on their system from changing the profile of or converting an image which uses that profile.
Comment 1 Sven Neumann 2008-01-28 17:29:52 UTC
Fixed in both branches.

2008-01-28  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/lcms.c (lcms_dialog): fixed crash on missing
        profile (bug #512529).