crash in 'Fill > CMS' tab when linked icc color profile name contains spaces

Bug #437927 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Jon A. Cruz

Bug Description

crash when clicking on RGB sliders in 'Fill > Flat color > CMS' after selecting 'Black---White' color profile
Inkscape 0.47pre2-3 and 0.46+devel r22312 on OS X 10.5.8

steps to reproduce:
1) open new document
2) in 'Document Properties > Color Management' link the profile 'Black & White'
3) linked profile name displays as 'Black---White'
4) create rectangle with 'blue' fill (RGBA 0x0000ffff) (default values)
5) open 'Fill&Stroke > Fill > Flat color > CMS', select Black--White profile
6) click on any of the RGB sliders -> crash

console messages - when linking color profile to document:
URI error: parseHex : unexpected character : h
URI error: Hierarchical part
URI error: Syntax error
** Message: lcms: Error 12288; File '/Library/ColorSync/Profiles/Black ' not found

console messages - when selecting color profile 'Black---White' in 'Flat Fill > CMS' tab
** Message: lcms: Error 12288; Output profile cannot be NULL!
** Message: lcms: Error 12288; Input profile cannot be NULL!
** Message: lcms: Error 12288; Input profile cannot be NULL!

console messages - when clicking on one of the CMS RGB sliders:
** Message: lcms: Error 12288; Input profile cannot be NULL!

Emergency save activated!

Crash report:
<http://launchpadlibrarian.net/32518800/inkscape-bin_2009-09-27-140749_LeWitt.crash>
Emergency saved files:
0.46+devel r22312: <http://launchpadlibrarian.net/32539237/New%20document%201.2009_09_27_14_07_43.0.svg>
0.47pre2-3 r22153: <http://launchpadlibrarian.net/32539236/New%20document%201.2009_09_27_15_30_22.0.svg>

available color profiles:
LeWitt:patches suv$ ll /Library/ColorSync/Profiles/
total 288
-rw-rw-r-- 1 root admin 25624 Oct 10 2008 Black & White.icc
-rw-rw-r-- 1 root admin 30420 Oct 10 2008 Blue Tone.icc
drwxrwxr-x 3 root admin 102 Aug 6 04:17 Displays/
-rw-rw-r-- 1 root admin 30420 Oct 10 2008 Gray Tone.icc
-rw-rw-r-- 1 root admin 2736 Oct 10 2008 Lightness Decrease.icc
-rw-rw-r-- 1 root admin 2728 Oct 10 2008 Lightness Increase.icc
-rw-rw-r-- 1 root admin 30428 Oct 10 2008 Sepia Tone.icc
-rw-rw-r-- 1 root admin 10780 Oct 10 2008 WebSafeColors.icc

Tags: color
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

The problem appears to be that the file system path has been HTML-escaped. May be OS X specific, or may not be.

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Jon A. Cruz (jon-joncruz)
Changed in inkscape:
milestone: none → 0.47.0
milestone: 0.47.0 → 0.47
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Mostly fixed in revision 22343. There are probably some edge cases for various special characters. We can look at those once 0.47 is out.

Changed in inkscape:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.