0.46 not starting on MacOSX 10.5.8 X11 2.4.0

Bug #415900 reported by le.waldman
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Inkscape version 0.46 Stopped to start after I upgraded X-Quartz to version 2.4.0.

It was working fine on 2.3.2 (But I also did a system update and didn't used inkscape after it).

The output on console:
=========
leon@leon-note:~> /Applications/Inkscape.app/Contents/MacOS/Inkscape ; exit;
2009-08-19 15:32:38.750 defaults[2988:10b]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2009-08-19 15:32:38.768 defaults[2989:10b]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
=========

And on GDB:
=========
(gdb) run
Starting program: /Applications/Inkscape.app/Contents/MacOS/Inkscape
Reading symbols for shared libraries ++++++++....................................................................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ....... done
Reading symbols for shared libraries .. done
2009-08-19 15:35:53.183 defaults[3139:10b]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2009-08-19 15:35:53.201 defaults[3140:10b]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist
Reading symbols for shared libraries . done

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
^C
Program received signal SIGINT, Interrupt.
0x93391286 in mach_msg_trap ()
(gdb) The program is running. Exit anyway? (y or n) y
=========

If I can do any thing else regarding this issue:
le.waldman at gmail

Thanks! :P

Tags: crash fonts osx
Revision history for this message
su_v (suv-lp) wrote :

I can't yet comment on XQuartz 2.4.0 (I hesitated to upgrade, still using 2.3.3.2) - but to rule out other known issues:
1) Do you have MacPorts installed/upgraded since you last ran Inkscape before updating OS X and XQuartz?
   Any files in '/opt/local/var/cache/fontconfig'?
   see bug #400165 “Binary Inkscape dist crashes when MacPorts is installed”
2) Does '~/.fontconfig/' exist?
   if not, quit X11, open Terminal.app, type 'mkdir ~/.fontconfig' and restart Inkscape
3) Did you try and reset the preferences?
   open Terminal.app, type 'mv ~/.inkscape ~/.inkscape.old', restart Inkscape

If the error still persists, could you attach a recent crash report of inkscape-bin?

tags: added: crash osx
Revision history for this message
su_v (suv-lp) wrote :

I can confirm the crash of Inkscape 0.46-2 after upgrading to XQuartz 2.4.0 (xorg-server 1.5.3-apple14) on OS X 10.5.8

steps:
1) install XQuartz 2.4.0
2) start X11 first (without Inkscape)
3) test run: current 0.46+devel (r22148) build starts ok
4) test run: Inkscape 0.46-2 from sf.net: crashes before opening application window
5) inkscape-bin and the Platypus launcher app don't quit by themselves and stay active in the dock

attachment: sample of inkscape-bin (taken with 'Activity Monitor.app' while Inkscape hangs)
quick fix: after cleaning the fontcache with 'rm ~/.fontconfig/*' Inkscape 0.46 starts ok.

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
tags: added: fonts
Revision history for this message
su_v (suv-lp) wrote :

Is this caused by the changed library versions in X11/XQuartz 2.4.0 resulting in incompatible fontconfig caches?

<http://xquartz.macosforge.org/trac/wiki/X112.4.0#Changesin2.4.0>
# fontconfig 2.7.1
# freetype
    * no longer built --with-old-mac-fonts in order to prevent linking against CoreFoundation.

Revision history for this message
su_v (suv-lp) wrote :

From comments to bug #424124:
there are similar bug reports on the X11-users mailinglist <http://lists.apple.com/archives/X11-users/2009/Sep/threads.html#00011> and on the Wireshark bug tracker <https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3969>.

Since 'FcStrListCreate' belongs to fontconfig <http://www.fontconfig.org/fontconfig-devel/fcstrlistcreate.html> this is most likely a bug caused by upstream changes in X11 shared libraries. I don't know if the Inkscape launcher could detect font cache conflicts and automatically clear and rebuild them when launched?

Revision history for this message
Michael Wybrow (mjwybrow) wrote :

I can't reproduce this, but it may not be a problem for me because some of the Macports x11 related ports clear and regenerate the fontcaches when they are updated.

Anyway, if it is a problem we will likely see a flurry of reports in response to the new Inkscape-0.47pre2-1.LEOPARD.dmg. If this occurs, then the easiest thing to do is just clear the fontcaches and let them get regenerated the first time Inkscape-0.47 is run on their machine.

Revision history for this message
nico80 (box-nicolasius) wrote :

Hi, i also had an issue with the 0.47pre2 Leopard+ that has just been released on oct. 20th.
i'm running on 10.5.8 32bit leopard, with macports installed, therefore i think i'm using quartz 2.4.0 already - how can i find out about it?

There's three errors, the first i do not know about is; missing extension 'randr', don't think it's of an issue,
the 2nd is critical and i do not know how to fix it,
i tried to get rid of the 3rd (most icons are missing when the app starts up) by fetching the high-color theme via

$ sudo port install hicolor-icon-theme
---> Computing dependencies for hicolor-icon-theme
---> Fetching hicolor-icon-theme
---> Attempting to fetch hicolor-icon-theme-0.11.tar.gz from http://arn.se.distfiles.macports.org/hicolor-icon-theme
---> Verifying checksum(s) for hicolor-icon-theme
---> Extracting hicolor-icon-theme
---> Configuring hicolor-icon-theme
---> Building hicolor-icon-theme
---> Staging hicolor-icon-theme into destroot
---> Installing hicolor-icon-theme @0.11_0
---> Activating hicolor-icon-theme @0.11_0
---> Cleaning hicolor-icon-theme

but this did not help fixing it. i also deleted files under /opt/local/var/cache/fontconfig
with no luck either.

Inkscape starts up and shows a window with missing icons, if i load a bitmap file and want to start vectorizing it, it crashes.

Does anybody have an idea, or can lead me on how to build my own stable version, macosx/packaging fails for the svn checkout
and i am not used doing compiling/build stuff on mac
i'm willing to help debug this on my machine (have some experience on debian and gentoo)
regards nico

this is inkscape's output.

$ ./inkscape
Warning: AppleCollationOrder setting not found, using AppleLocale.
Setting Language: de_DE.UTF-8
Xlib: extension "RANDR" missing on display "/tmp/launch-MiKDe9/:0".

** (inkscape-bin:47154): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed

** (inkscape-bin:47154): WARNING **: Unable to read keys file Contents/Resources/keys/default.xml
Unable to find: org.inkscape.help.manual
Unable to find: org.inkscape.help.keys
Unable to find: org.inkscape.help.askaquestion
Unable to find: org.inkscape.help.commandline
Unable to find: org.inkscape.help.faq
Unable to find: org.inkscape.help.relnotes
Unable to find: org.inkscape.help.reportabug
Unable to find: org.inkscape.help.svgspec

(inkscape-bin:47154): Gtk-WARNING **: Could not find the icon 'object-visible'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
 http://icon-theme.freedesktop.org/releases
terminate called after throwing an instance of 'Gtk::IconThemeError'

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Abort trap

Revision history for this message
su_v (suv-lp) wrote :

> $ ./inkscape
Don't launch Inkscape.app this way - thus it misses the essential environment configuration and can't find its needed resources. AFAICS all errors you report (missing icons and other resource files, crash when loading a bitmap) are cause by launching Inkscape this way. If you use the pre-built package from sf.net, and still want to use the command line to launch inkscape please see earlier reports like bug #435812 and bug #181639 on how to call the correct script. Else if you need full commandline support for Inkscape (e.g. for scripts) please use one of the available portfiles for Inkscape from MacPorts. However keep in mind that a macports installation won't give you a bundled version that integrates with the dock and can be launched by double-clicking its application icon.

- Installed Xquartz version: like with every other osx application use the 'About X11...' entry of the X11 menu in the top menubar when X11 is running.
- The error about missing RANDR and missing 'hicolor' theme can be ignored - they are just warnings but don't have any negative effect.
- latest prerelease version is Inkscape 0.47pre4-1 Leopard+ (<http://sourceforge.net/projects/inkscape/files/inkscape/0.47pre4/>). Keep in mind though that any of the Inkscape 0.47pre versions are still 'unstable' prerelase versions.

Revision history for this message
nico80 (box-nicolasius) wrote :

Well, i launched inkscape that way because i wanted a console to see what is going wrong.
I am using the latest available version http://sourceforge.net/projects/inkscape/files/inkscape/0.47pre4/
Inkscape 0.47pre4-1 Leopard+
I am sorry to inform you that this version does not run at all if i just click on Inkscape.app but simply hangs.
i referred to the bugs you described and used the 'open' command but no luck either, .svg is associated

Where can i get an error log or something (without running from console), so i can see what's wrong with it (and eventually post it here).

It did not work with the X11 that came with the 10.5.8 osx and i then installed the quartz 2.4.0 x11, where it doesn't work either.
can it be that the application interferes with some macports thing i installed?

The error i described earlier is strange, "default.xml" apparently is part of the package.
** (inkscape-bin:47154): WARNING **: Unable to read keys file Contents/Resources/keys/default.xml
Unable to find: org.inkscape.help.manual
Unable to find: org.inkscape.help.keys
Unable to find: org.inkscape.help.askaquestion
Unable to find: org.inkscape.help.commandline
Unable to find: org.inkscape.help.faq
Unable to find: org.inkscape.help.relnotes
Unable to find: org.inkscape.help.reportabug
Unable to find: org.inkscape.help.svgspec

/me would be happy for any idea or comment on this.

inkscape simply keeps lingering in the dock but does not even show a menu line or something

Regards Nico

Revision history for this message
su_v (suv-lp) wrote :

Preliminary fontcache reset

1) Quit any running instances of Inkscape and X11
2a) clear the X11 font cache: 'rm ~/fontconfig/*'
2b) if '~/.fontconfig/' doesn't exist, create it: 'mkdir ~/.fontconfig'

A) using OS X tools

 3) open 'Applications > Utilities > Console', select 'All messages'
    from the Log List
 4) use 'Clear Display' to get an empty window
 5) start Inkscape by double-clicking the *application* icon in the finder
 6) watch the console window, copy&paste the console messages into TextEdit
    and attach the file to this bug report, as well as any crash reports
    (use the Log List to find the most recent) from inkscape and X11/Xquartz.

B) using shell / Terminal.app:

If you want to use the terminal to catch the console messages, you need to call the launcher script with its full path (as described in bug #435812 and bug #181639): assuming you installed 'Inkscape.app' into '/Applications', type:

 3) '/Applications/Inkscape.app/Contents/Resources/script'
 4) save the console output into a file and attach it to this bug report
 5) attach any recent crash reports for 'inkscape-bin' or X11 you can find
    in '~/Library/Logs/CrashReporter'

> can it be that the application interferes with some macports thing
> i installed?
It is possible, but the known issues that had prevented earlier versions of Inkscape 0.47pre from launching have been fixed in the latest prerelease builds.

Revision history for this message
su_v (suv-lp) wrote :

oops - correcting typo:
- 2a) clear the X11 font cache: 'rm ~/fontconfig/*'
+ 2a) clear the X11 font cache: 'rm ~/.fontconfig/*'

Revision history for this message
nico80 (box-nicolasius) wrote :

i removed the ~/.fontconfig/* files and also those in /usr/X11/var/cache/fontconfig/
here come the crashdumps
hope this is helpful
as i can see from the dumps, this really has to do with the hicol icon set, doesn't it?
kind regards

Revision history for this message
su_v (suv-lp) wrote :

The crash reports you attached are 2 days older then the console log and most likely from your earlier attempts to launch inkscape from the command line:

crash report: 2009-11-03 21:08:51.764 +0100
console log: 05.11.09 10:05:44

Please attach the most recent crash reports created at the time when you monitored the console output.

Revision history for this message
nico80 (box-nicolasius) wrote :

Well it doesn't crash, it simply won't open.
I'm sorry if this was a misunderstanding
> 6) watch the console window, copy&paste the console messages into TextEdit
> and attach the file to this bug report, as well as any crash reports
> (use the Log List to find the most recent) from inkscape and X11/Xquartz.
these were the most recent! There are no other crash reports although the log shows 'Emergency save activated!'
if i start it via the dock it doesnt open.
via the command line, it opens but without icons, as seen in the screenshot i attached earlier:

i think it is _clear_ that it neither finds the icon theme nor can it read the keys in default.xml (which i left untouched)

but i'm unsure how to fix it, please advise.
Regards nico

$ /Applications/Inkscape.app/Contents/Resources/bin/inkscape
Warning: AppleCollationOrder setting not found, using AppleLocale.
Setting Language: de_DE.UTF-8
Xlib: extension "RANDR" missing on display "/tmp/launch-MiKDe9/:0".

** (inkscape-bin:36143): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed

** (inkscape-bin:36143): WARNING **: Unable to read keys file Contents/Resources/keys/default.xml
Unable to find: org.inkscape.help.manual
Unable to find: org.inkscape.help.keys
Unable to find: org.inkscape.help.askaquestion
Unable to find: org.inkscape.help.commandline
Unable to find: org.inkscape.help.faq
Unable to find: org.inkscape.help.relnotes
Unable to find: org.inkscape.help.reportabug
Unable to find: org.inkscape.help.svgspec

(inkscape-bin:36143): Gtk-WARNING **: Could not find the icon 'object-visible'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
 http://icon-theme.freedesktop.org/releases

Revision history for this message
nico80 (box-nicolasius) wrote :

...it only crashes if i open it via the console (with the broken icons) and then load a bitmap image, then try to open the vectorize dialog,
most likely because it doesn't find icon images.

Revision history for this message
su_v (suv-lp) wrote :

> ...it only crashes if i open it via the console
i.e. it works as expected when you launch it as any other OS X application?

> $ /Applications/Inkscape.app/Contents/Resources/bin/inkscape
You are still using the wrong script to launch Inkscape.app from the command line. use one of these:

  /Applications/Inkscape.app/Contents/Resources/script

or

 /Applications/Inkscape.app/Contents/MacOs /Inkscape

> most likely because it doesn't find icon images
…because the environment for 'inkscape-bin' isn't properly set up when you launch it with the wrong script.

Revision history for this message
su_v (suv-lp) wrote :

typo:
- /Applications/Inkscape.app/Contents/MacOs /Inkscape
+ /Applications/Inkscape.app/Contents/MacOS/Inkscape

Revision history for this message
nico80 (box-nicolasius) wrote :

Ok
/Applications/Inkscape.app/Contents/MacOS/Inkscape made it.
i'm sorry for the inconvenience this might have caused
all icons are available and the application is now functioning properly
thanks for all the help

Revision history for this message
su_v (suv-lp) wrote :

:) glad it worked out for you!

Revision history for this message
Guillaume Mandil (gmandil) wrote :

I have the same issue using
Mac OS X 10.6.3
X11 : XQuartz 2.3.5 (xorg-server 1.4.2-apple53) (Last Apple X11 version for SnowLeopard)
Inkscape : Inkscape-0.47-1.LEOPARD

here is the crash report :
gmandil$ /Applications/Inkscape.app/Contents/MacOS/Inkscape
2010-04-13 15:59:02.838 defaults[1763:903]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2010-04-13 15:59:02.849 defaults[1764:903]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist
dyld: Library not loaded: /usr/lib/libxml2.2.dylib
  Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
  Reason: Incompatible library version: DictionaryServices requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0

Note : I had to create manually the directories with the super user rights before obtaining this crash
gmandil$ sudo mkdir ~/.inkscape ~/.fontconfig ~/.inkscape-etc
gmandil$ sudo chown gmandil ~/.inkscape ~/.fontconfig ~/.inkscape-etc

Revision history for this message
su_v (suv-lp) wrote :

@Guillaume - you did not subscribe to this report, but in case you return to read any new comments: please verify that you indeed started the latest release version Inkscape 0.47: what you describe strongly indicates that you have been trying to launch Inkscape 0.46 which is known to fail to launch on Snow Leopard:

1) ~/.inkscape is no longer used by Inkscape 0.47 (the preferences folder is now ~/.config/inkscape)
2) libxml2.2.dylib provided and loaded by Inkscape 0.47 does provide version 10.0.0
3) Inkscape.app 0.47 has been changed from using DYLD_LYBRARY_PATH to rewriting the paths to the linked shared libraries, exactly to avoid the kind of library version conflict your crash reports indicates.

That aside - I don't know why you would have to use 'sudo' to create folders in your own home directory, AFAIK this is not the default setup on OS X - did you change access rights and deny yourself write permissions to your own home folder?. Certainly it is not related to or caused by Inkscape.app.

If the latest released version for Mac OS X Leopard and Snow Leopard (download file name: Inkscape-0.47-1.LEOPARD+.dmg from <http://sourceforge.net/projects/inkscape/files/inkscape/0.47/>) indeed fails on your updated Snow Leopard system, please file a new report with as much information you can provide about your setup as well as attaching the full most recent crash report for inkscape-bin you can find in ~/Library/Logs/CrashReporter or ~/Library/Logs/DiagnosticReports.

Does the same crash happen if you launch Inkscape.app by double-clicking it in the Finder? (You might have some env settings in your shell that are inherited by the inkscape process when launching it from the command line and potentially could have unintended side-effects).

Revision history for this message
su_v (suv-lp) wrote :

Closing - no longer an issue with current versions of Apple's X11 and Inkscape.

Feel free to reopen if you think this was done in error.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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