Crash on opening "Inkscape Preferences..." dialog (color profiles)

Bug #498141 reported by SteveEdmondson on 2009-12-18
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Inkscape
High
jazzynico

Bug Description

Starting Inkscape 0.47 and selecting "File > Inkscape Preferences..." results in a crash.

Inkscape was installed without administrator preferences to a folder on the Desktop (if that makes any difference). Inkscape 0.46 running under the same conditions works fine.

Running under Windows XP as a non-admin user.

gdb backtrace:

#0 0x77c47740 in strcmp () from C:\WINDOWS\system32\msvcrt.dll
#1 0x6861138d in g_utf8_collate ()
   from C:\Documents and Settings\mpse\Desktop\inkscape047\libglib-2.0-0.dll
#2 0x004917e4 in ?? ()
#3 0x06d918f4 in ?? ()
#4 0x06d918f4 in ?? ()
#5 0x00000000 in ?? ()

su_v (suv-lp) on 2009-12-18
tags: added: crash
Changed in inkscape:
importance: Undecided → High
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP and Vista, Inkscape 0.47 and dev version.

Could you please try to rename your preferences file (in C:\Documents and Settings\USERNAME\Application Data\Inkscape\preferences.xml) and restart Inkscape?
Preferences created with older versions sometimes cause that kind of issue. If it's the case, could you attach the older file?
Thanks.

JazzyNico,

Renaming the preferences.xml file and restarting did not help. On resarting inkscape, the problem persists (and a new preferences.xml file was created)

jazzynico (jazzynico) on 2010-08-24
tags: added: preferences
jazzynico (jazzynico) wrote :

Changing status to "Confirmed" based on the affected users count.

@steve, some (possibly faulty) libs have been update in Inkscape 0.48. Could you please try to reproduce the issue with this new version (http://sourceforge.net/projects/inkscape/files/inkscape/0.48) and confirm it is fixed?

Changed in inkscape:
status: New → Confirmed
Download full text (4.4 KiB)

No, I'm afraid this still crashes on 0.48 in the same way. Deleted either the preference.xml or the whole Application Data\Inkscape\ folder do not help.

Unfortunately, I can't test here if running as an administrator user fixes the problem (as with https://bugs.launchpad.net/inkscape/+bug/455894)

Running a gdb backtrace on the latest development version (9712, which shows the problem) gives:

 Starting program: C:\Documents and Settings\mpse\Desktop\Inkscape-debug/inkscape
.exe
[New thread 3684.0x25c]
[New thread 3684.0xddc]

Program received signal SIGSEGV, Segmentation fault.
0x77c47740 in strcmp () from C:\WINDOWS\system32\msvcrt.dll
(gdb) bt
#0 0x77c47740 in strcmp () from C:\WINDOWS\system32\msvcrt.dll
#1 0x6861b047 in g_utf8_collate ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libglib-2.0-0.dll
#2 0x00594cdc in Inkscape::get_path_for_profile ()
#3 0x0082c71d in Inkscape::UI::Dialog::InkscapePreferences::initPageCMS ()
#4 0x0083e776 in Inkscape::UI::Dialog::InkscapePreferences::InkscapePreferences
 ()
#5 0x00d105a4 in Inkscape::UI::Dialog::PanelDialog<Inkscape::UI::Dialog::Behavi
or::DockBehavior>::create<Inkscape::UI::Dialog::InkscapePreferences> ()
#6 0x005399db in Inkscape::UI::Dialog::(anonymous namespace)::create<Inkscape::
UI::Dialog::InkscapePreferences, Inkscape::UI::Dialog::Behavior::DockBehavior> (
)
#7 0x005388d6 in Inkscape::UI::Dialog::DialogManager::getDialog ()
#8 0x0053896c in Inkscape::UI::Dialog::DialogManager::showDialog ()
#9 0x00475ffe in sp_action_perform ()
#10 0x63a44124 in g_closure_invoke ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#11 0x63a57879 in signal_emit_unlocked_R ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#12 0x63a58a93 in g_signal_emit_valist ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#13 0x63a58fc6 in g_signal_emit ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#14 0x6198c4c0 in gtk_widget_activate ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgtk-win32-2.0-0
.dll
#15 0x6187977a in gtk_menu_shell_activate_item ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgtk-win32-2.0-0
.dll
#16 0x6187b4a7 in gtk_menu_shell_button_release ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgtk-win32-2.0-0
.dll
#17 0x61868e63 in _gtk_marshal_BOOLEAN__BOXED ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgtk-win32-2.0-0
.dll
#18 0x63a44124 in g_closure_invoke ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#19 0x63a5758c in signal_emit_unlocked_R ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#20 0x63a5892b in g_signal_emit_valist ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#21 0x63a58fc6 in g_signal_emit ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgobject-2.0-0.d
ll
#22 0x61985ec1 in gtk_widget_event_internal ()
   from C:\Documents and Settings\mpse\Desktop\Inkscape-debug\libgtk-win32-2.0-0
.dll...

Read more...

su_v (suv-lp) wrote :

> #0 in strcmp () from C:\WINDOWS\system32\msvcrt.dll
> #1 in g_utf8_collate ()
> #2 in Inkscape::get_path_for_profile ()
> #3 in Inkscape::UI::Dialog::InkscapePreferences::initPageCMS ()

Inkscape crashes when reading/parsing the paths of installed display profile(s).

Can you provide further information about the ICC color profiles you have installed on your system? In 'Inkscape Preferences > Color Management > Display adjustment', the tooltip of the popup list with available display profiles contains a list of all paths Inkscape searches for color profiles: can you make a list of the profiles you have installed at those locations and attach it here? Do any of the profiles or their path names contain special characters?

tags: added: color

Unfortunately, I can't open the 'Inkscape Pereferenes' dialog to get this information (this is what causes the crash). Is there another way to get this information?

The earlier version (0.46) that does work doesn't seem to have this information.

su_v (suv-lp) wrote :

> Unfortunately, I can't open the 'Inkscape Pereferenes'
> dialog to get this information

My bad - what was I thinking? ;)

@JazzyNico - can you add what paths you see listed with your installed Inkscape on Windows, as a start? I don't have Windows and do not know where Inkscape looks for color profiles on this platform.

jazzynico (jazzynico) wrote :

> @JazzyNico - can you add what paths you see listed.

Ok:
----
Configuration utilisateur : C:\Documents and Settings\Nicolas\Application Data
Données utilisateur : C:\Documents and Settings\Nicolas\Mes documents
Cache utilisateur : C:\Documents and Settings\Nicolas\Local Settings\Temporary Internet Files
Configuration système : C:\Documents and Settings\All Users\Application Data
Données système : C:\Documents and Settings\All Users\Application Data
  C:\Documents and Settings\All Users\Documents
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share
Pixmap : C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\icons
Données : .
Interface utilisateur : C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\ui
Thème d’icônes : C:\Documents and Settings\Nicolas\.icons
  C:\Documents and Settings\Nicolas\Mes documents\icons
  C:\Documents and Settings\All Users\Application Data\icons
  C:\Documents and Settings\All Users\Documents\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\icons
  C:\Documents and Settings\All Users\Application Data\pixmaps
  C:\Documents and Settings\All Users\Documents\pixmaps
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\pixmaps
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\pixmaps
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\pixmaps
  C:\Documents and Settings\Nicolas\Mes documents\inkscape\icons
  C:\Documents and Settings\All Users\Application Data\inkscape\icons
  C:\Documents and Settings\All Users\Documents\inkscape\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\inkscape\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\inkscape\icons
  C:\Documents and Settings\Nicolas\Application Data\inkscape\icons
  C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\icons
----

su_v (suv-lp) wrote :

@JazzyNico: I didn't mean 'Preferences > Misc > System Info' but the paths listed in the tooltip of the 'Display Profile' popup list in 'Preferences > Color management'. Can you help out with that one too, please? ;)

jazzynico (jazzynico) wrote :

> tooltip of the 'Display Profile' popup list

This time, it should be ok ;)

C:\Documents and Settings\Nicolas\Mes documents\color\icc
C:\Documents and Settings\All Users\Application Data\color\icc
C:\Documents and Settings\All Users\Documents\color\icc
C:\Documents and Settings\Nicolas\Bureau\Inkscape\Inkscape-0.48.0-1-win32\share\color\icc
C:\WINDOWS\System32\spool\DRIVERS\COLOR

jazzynico (jazzynico) wrote :

The only path that leads to icc profiles is C:\WINDOWS\system32\spool\drivers\color. All the others don't even exist on my system (Windows XP sp3, relatively fresh install). It contains the following files:
E_FICMACE.ICM
is333.icm
kodak_dc.icm
sRGB Color Space Profile.icm

kodak and sRGB are listed in the profile settings in Inkscape, but not E_FICMACE and is333.

@steve, do you see other profiles in this path? Is so, could you try to copy them elsewhere and start Inkscape again.

su_v (suv-lp) wrote :

@Steve - could you test the workaround described in <https://bugs.launchpad.net/inkscape/+bug/608229/comments/9>?

Lars (dbild) wrote :

I solved the crash by using the inkscape preferences.
two color-profiles were the problem.
you can look at them in the attachment.

Lars (dbild) wrote :

to be complete: i took the profiles out of the color-profile-folder! now inkscape is working allright!

Lars (dbild) wrote :

sorry: installation-path:
windows\system32\spool\drivers\color\

su_v (suv-lp) wrote :

Lars wrote:
> I solved the crash by using the inkscape preferences.

Some additional information: we discussed the issue on #inkscape.de (irc) - inkscape crashes when opening 'File > Inkscape Preferences' - and Lars tested the workaround known for the similar bug #608229 (win32) and bug #623640 (osx) as described in <https://bugs.launchpad.net/inkscape/+bug/608229/comments/9>

su_v (suv-lp) wrote :

Lars wrote:
> two color-profiles were the problem.

Some additional information II: both profiles had been provided by the manufacturer:
Monitor: W2243.ICM - LG
Scanner: CNZ005.ICC - Canon

System: Windows 7, Inkscape 0.47 and 0.48
crash does not happen with earlier versions

Just to update (since I originally reported this) - the workaround in comment #12 (https://bugs.launchpad.net/inkscape/+bug/498141/comments/12) fixes the problem.

I'm not administrator on the affected machine, so I can't remove any profiles for testing, but I've attached all of my profiles in windows\system32\spool\drivers\color\ if it helps.

su_v (suv-lp) wrote :

New related or duplicate report Bug #830308 “Windows7 Pro x64 Crash on file/inkscape preferences” has some additional comments about using the workaround with a multi-monitor setup on Windows (IIUC).

Günther Radlherr (mrbiki) wrote :

Sorry, but I don't understand the backtrace. What can be done? I have the same problem.

I uninstalled Inkscape and installed it again as administrator. I installed it in the default order. But the bug is the same. What can help difficult explanations, when the problem cannot be resolved?

Please could anyone give an answer in simple words?

Thanks

su_v (suv-lp) wrote :

Günther Radlherr wrote
> What can help difficult explanations, when the problem cannot be resolved?

Please keep in mind that a bug tracker is not a user support forum (the bug tracker is mainly a tool for developers to gather information about reported problems and track any progress in fixing it). The reported issue has been confirmed for current Inkscape versions (0.48.x) on Windows, seems to be triggered by certain color profiles installed on the affected systems (possibly in combination with certain locale settings), but has not yet been fixed.

As confirmed by several users there exists a workaround (to edit a certain value in Inkscape's preferences file):
1) quit any running Inkscape instances
2) make a backup copy of Inkscape's preferences file [1]
3) open 'preferences.xml' in a plain-text editor like Notepad
4) modify the group 'displayprofile' as described in earlier mentioned
   <https://bugs.launchpad.net/inkscape/+bug/608229/comments/9>
5) save the modified preferences file
6) start Inkscape again

A slightly different workaround involves installing Inkscape 0.47 temporarily:
 <https://bugs.launchpad.net/inkscape/+bug/623640/comments/17>

[1] usual location: '%APPDATA%\inkscape\preferences.xml'
    (you can enter this path including the variable directly into the address bar of the Explorer)

Johan Engelen (johanengelen) wrote :

Can someone please provide a new backtrace? The code has changed somewhat... Thanks.

su_v (suv-lp) on 2012-08-30
tags: added: win32
Sergey Tomilin (tomilin-sdlr) wrote :

Want to share my experience with this problem

I use Inkscape on Win-7 64bit Home Premium.
I have installed version 048.4.1 and developement version (no installation)
After update of Acer-monitor driver development version of Inkscape started to crash on opening Preferences
At the same time installed 048.4.1 worked normally. So in 048.4.1 I've opened preferences and found in
display profile->in dropdown list of available color profiles-> <not correct utf-8name> (or something like that)
Solved this problem following way:
On desktop of windows-> right mouse click->screen resolution->Advanced settings->
color management-> button 'color management..'->all profiles-> ICC profiles list
In this list I've found one funny profile: name= ' ¬@ ' filename= 'V173.ICM'
When this profile was removed by button in the same window, problem gone. All work fine again
It looks like the problem of error handling with profile name solved in official Inkscape 048.4.1 but still exist in developement versions

jazzynico (jazzynico) on 2013-07-04
summary: - Crash on opening "Inkscape Preferences..." dialog
+ Crash on opening "Inkscape Preferences..." dialog (color profiles)
Changed in inkscape:
status: Confirmed → Triaged
jazzynico (jazzynico) on 2013-12-09
Changed in inkscape:
assignee: nobody → jazzynico (jazzynico)
milestone: none → 0.49
status: Triaged → In Progress
jazzynico (jazzynico) wrote :

Tested on Windows XP, Inkscape trunk revision 12841 with the files attached comment #13 and #17.
The patch replaces the invalid profile names with (invalid UTF-8 string) in the profiles list so that it doesn't trigger a crash.
Please test.

jazzynico (jazzynico) wrote :

The patch probably fixes Bug #623640 "inkscape 0.48 crashes on startup in colorprofile_get_system_profile_handle()" too.

jazzynico (jazzynico) wrote :

Patch committed revision 12847.

Changed in inkscape:
status: In Progress → Fix Committed
jazzynico (jazzynico) wrote :

Backported patch tested on Crunchbang Waldorf, Inkscape 0.48.x revision 10005.

tags: added: backport-proposed
jazzynico (jazzynico) wrote :

Patch backported to the 0.48.x branch, revision 10006.

Changed in inkscape:
milestone: 0.49 → 0.48.5
tags: removed: backport-proposed
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers