Native Inkscape build crashes on Mac OS X Tiger (Intel)

Bug #183322 reported by birdsaregood
10
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Michael Wybrow

Bug Description

I'm using Mac OS X 10.4.11 on an Intel Core 2 Duo iMac. I downloaded and tested Inkscape-17015-i386-native_exprimental.dmg. I copied Inkscape.app to the desktop (though I also tried it from the Applications folder). I double-clicked the icon, it appeared in to dock with a bounce, and quickly disappeared without opening Inkscape. Nothing even showed up in the menubar. I attached the crash log.

My hunch is that it has something to do with the fact it was compiled on Leopard, because X11 builds made on Leopard also don't work in Tiger, but I don't know for sure.

Tags: crash osx
Revision history for this message
birdsaregood (ariel36) wrote :
Revision history for this message
JiHO (jiho) wrote : Re: [Bug 183322] Re: Native Inkscape build crashes on Mac OS X Tiger (Intel)

Inkscape complains that some library is missing while it is available
in the app bundle so I suspect something is wrong with the relocation
of resources in the executable or in setting the paths in this new app
bundle. I won't have time to look into this but it would be great if
someone else could (before release preferentially).

Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Undecided → High
milestone: none → 0.46
status: New → Confirmed
Revision history for this message
Bryce Harrington (bryce) wrote :

In order for this to remain milestoned, we must have an assignee for the bug, who will take ownership of getting it fixed.

We cannot block the release on platform-specific bugs that have no owner.

Revision history for this message
JiHO (jiho) wrote :

I won't have time to tackle this for 0.46 so I set it for 0.47. If someone else steps in and solves the issue before 0.46, that would be great, otherwise Inkscape will be native on OS X in another 6 months.

Changed in inkscape:
assignee: nobody → jiho
milestone: 0.46 → 0.47
Revision history for this message
industrie13 (industrie13) wrote : Re: Native Inkscape build crashes on Mac OS X Leopard (Intel)

I tried version Inkscape-17892-10.5-i386.dmg from http://inkscape.modevia.com/macosx-snap/ on an Intel iMac with Leopard 10.5.2 and the current XQuartz-version and it crashes here too with: Dyld Error Message: Library not loaded: /usr/X11/lib/libXrandr.2.dylib.
So I can confirm it for this configuration too.

Revision history for this message
freespace (s-launchpad) wrote :

This issue is due to the fact the app bundle includes a whole bunch of .dynlibs in Inkscape.app/Contents/Resources/lib which the inkscape binary uses. However the included libfontconfig.1.dylib is version 4, while system dylib is version 5.

See http://lists.macosforge.org/pipermail/xquartz-dev/2008-April/000491.html for a discussion of this problem.

The solution is as the above suggests:

cd Inkscape.app/Contents/Resources/lib
mv libfontconfig.1.dylib libfontconfig.1.dylib.bak
ln -s /usr/X11R6/lib/libfontconfig.1.3.0.dylib ./libfontconfig.1.dylib

So the quick fix is to simply replace the file in the disk image with a symlink. The long term fix is to reconsider how the package is created and rely on system provided libs where suitable.

With the above fix I am able to use the latest dmg available from the website with Xquartz 2.3.1 on 10.5.5.

Cheers,
Steve

Revision history for this message
khinester (norman-khine) wrote :

Hello,
I downloaded the latest dmg file from the site and on launching Inkscape for the first time I get a crash. Report attached.

I am on 10.4.11 Power Book.

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

> the latest dmg file from the site
You mean 'Inkscape-0.46-3.TIGER.UNIVERSAL.dmg'?

1) Did Inkscape previously run on your system? If yes - what has changed since? Any new fonts installed?
2) Any X11 or Inkscape related console messages before the crash happens?
Could you:
- quit X11 and Inkscape
- open Console.app (in Utilities), look for console.log in it and display it (logs button in the toolbar)
- clear the log (brush button in the toolbar)
- Open Inkscape and look for messages in console.log
- copy paste the messages in here.
3) Anything special in your system setup (fink or macports install, other?)

Revision history for this message
khinester (norman-khine) wrote :

>1) Did Inkscape previously run on your system? If yes - what has changed since? Any new fonts installed?

No, as I recently installed a new HDD and rebuild my OS clean. I removed the Inkscape-0.46-3.TIGER.UNIVERSAL.dmg and I am currently running Inkscape-0.45.1-2-UNIVERSAL.dmg and this seems to work without any issues.

>2) Any X11 or Inkscape related console messages before the crash happens?
Not really, I just have this in my console
Mac OS X Version 10.4.11 (Build 8S165)
2009-07-27 06:16:04 +0100
2009-07-27 06:16:06.256 SystemUIServer[89] lang is:en
Workaround Bonjour: Unknown error: 0

XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
[DRI] screen 0 installation complete
Screen 0 added: 1024x768 @ (0,0)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!

>- quit X11 and Inkscape
>- open Console.app (in Utilities), look for console.log in it and display it (logs button in the toolbar)
>- clear the log (brush button in the toolbar)
>- Open Inkscape and look for messages in console.log
>- copy paste the messages in here.

===== Monday, 27 July 2009 06:31:22 Europe/London =====

XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
[DRI] screen 0 installation complete
Screen 0 added: 1024x768 @ (0,0)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
bash: no job control in this shell
2009-07-27 06:31:38.218 defaults[270]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2009-07-27 06:31:38.296 defaults[272]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist

(inkscape-bin:231): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

Emergency save activated!
Jul 27 06:31:49 araweelo crashdump[295]: inkscape-bin crashed
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.
Jul 27 06:31:51 araweelo crashdump[295]: crash report written to: /Users/khine/Library/Logs/CrashReporter/inkscape-bin.crash.log

>3) Anything special in your system setup (fink or macports install, other?)

Yes, I have Macports installed.

$ /opt/local/bin/pkg-config --list-all | grep gtk
gtk+-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
gtk-doc gtk-doc - API documentation generator
gtk+-x11-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
gtk+-unix-print-2.0 GTK+ - GTK+ Unix print support
pygtk-2.0 PyGTK - Python bindings for GTK+ and related libraries

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

just to make sure that it's not a recently fixed conflict with macports fontconfig - do you have any files installed in
 /opt/local/var/cache/fontconfig
 /opt/local/share/fonts

Revision history for this message
khinester (norman-khine) wrote :

$ tree -L 2 /opt/local/var/cache/
/opt/local/var/cache/
`-- fontconfig
    |-- 06967e83801ccef301685ecdd941333e-m68k.cache-2
    |-- 0fe0af1d5898cfe43064332244d1dc15-m68k.cache-2
    |-- 1bd20f0f0c9d7d1d5fd55b69fcc2b3a3-m68k.cache-2
    |-- 2af923cce7fec1bbb75a77e5fca92fdc-m68k.cache-2
    |-- 2cee944125173ffd13126fb55c9a0dc1-m68k.cache-2
    |-- 5f8a31ba1251860f467474ac49442f64-m68k.cache-2
    |-- 68418e0da60dfe4003a8c2435e92b1d3-m68k.cache-2
    |-- 6ac606a6cc613b1dd45fa75d9315a55e-m68k.cache-2
    |-- 79f278965e048e4c74571700d917da15-m68k.cache-2
    |-- 8b934b58f0acb2e86a0bbbb5d24d97c0-m68k.cache-2
    |-- 90acf7d99f5044d4df0432f2d0f16b42-m68k.cache-2
    |-- 9e011f40b294f3fc614441db2c5a8a04-m68k.cache-2
    |-- be2547a64937fd44a1f33dfd1eea53e8-m68k.cache-2
    |-- d929d2c542e4f6652ca46d613e4b360e-m68k.cache-2
    `-- f8033d5e4c6effb98c84b18a50eef42d-m68k.cache-2

1 directory, 15 files

$ tree -L 2 /opt/local/share/fonts
/opt/local/share/fonts [error opening dir]

0 directories, 0 files

Revision history for this message
khinester (norman-khine) wrote :

OK we are talking about https://bugs.launchpad.net/inkscape/+bug/400165

Here is my output for
Inkscape-0.45.1-2-UNIVERSAL.dmg

$ otool -L /Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin

http://paste.lisp.org/+1T0L

and

Inkscape-0.46-3.TIGER.UNIVERSAL.dmg

$ otool -L /Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin

http://paste.lisp.org/+1T0L#1

I will follow https://bugs.launchpad.net/inkscape/+bug/400165/comments/4 and see if this works

Revision history for this message
khinester (norman-khine) wrote :

OK,
I commented out the

$ sudo vim /Applications/Inkscape.app/Contents/Resources/etc/fonts/fonts.conf

<!-- Font cache directory list -->

<!-- <cachedir>/opt/local/var/cache/fontconfig</cachedir> -->

Now Inkscape 0.46, built Apr 6 2008 (Inkscape-0.46-3.TIGER.UNIVERSAL.dmg) works on OS X 10.4.11 Tiger

Although the console.log returns some warnings.

XFree86 Version 4.4.0 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
[DRI] screen 0 installation complete
Screen 0 added: 1024x768 @ (0,0)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
bash: no job control in this shell
2009-07-27 07:53:31.549 defaults[281]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAquaColorVariant) does not exist
2009-07-27 07:53:31.612 defaults[282]
The domain/default pair of (kCFPreferencesAnyApplication, AppleHighlightColor) does not exist

(inkscape-bin:239): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.

(inkscape-bin:239): Pango-WARNING **: Error loading GDEF table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GSUB table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GPOS table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GDEF table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GSUB table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GPOS table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GDEF table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GSUB table 28333

(inkscape-bin:239): Pango-WARNING **: Error loading GPOS table 28333

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

sorry that I didn't provide the link to bug #400165 right away - but glad this solves your current issue.

The prerelease build 0.47-pre1-1 TIGER on <http://sourceforge.net/projects/inkscape/files/> probably needs to be patched the same way in case you want to test the new features of 0.47. Newer versions will included the updated 'fonts.conf' from SVN revision 21860.

Console messages: nothing unexpected.
I get the same Pango-WARNINGs with 0.46-2 on Leopard, but not with 0.47pre1-2 (Leopard) which has a newer version of the pango libraries included.
The 'defaults' message results from adapting the GTK+ theme to the Appearance setting in the System Preferences (Blue or Graphite) and indicates you never changed the default ;-) thus you don't have (need) an entry for 'AppleAquaColorVariant'.

hth, ~suv

Revision history for this message
khinester (norman-khine) wrote : Re: [Bug 183322] Re: Native Inkscape build crashes on Mac OS X Tiger (Intel)

Thanks for your time on this.

On Mon, Jul 27, 2009 at 7:17 AM, ~suv<email address hidden> wrote:
> sorry that I didn't provide the link to bug #400165 right away - but
> glad this solves your current issue.
>
> The prerelease build 0.47-pre1-1 TIGER on
> <http://sourceforge.net/projects/inkscape/files/> probably needs to be
> patched the same way in case you want to test the new features of 0.47.
> Newer versions will included the updated 'fonts.conf' from SVN revision
> 21860.
>
> Console messages: nothing unexpected.
> I get the same Pango-WARNINGs with 0.46-2 on Leopard, but not with 0.47pre1-2 (Leopard) which has a newer version of the pango libraries included.
> The 'defaults' message results from adapting the GTK+ theme to the Appearance setting in the System Preferences (Blue or Graphite) and indicates you never changed the default ;-) thus you don't have (need) an entry for 'AppleAquaColorVariant'.
>
> hth, ~suv
>
> --
> Native Inkscape build crashes on Mac OS X Tiger (Intel)
> https://bugs.launchpad.net/bugs/183322
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Confirmed
>
> Bug description:
> I'm using Mac OS X 10.4.11 on an Intel Core 2 Duo iMac. I downloaded and tested Inkscape-17015-i386-native_exprimental.dmg. I copied Inkscape.app to the desktop (though I also tried it from the Applications folder). I double-clicked the icon, it appeared in to dock with a bounce, and quickly disappeared without opening Inkscape. Nothing even showed up in the menubar. I attached the crash log.
>
> My hunch is that it has something to do with the fact it was compiled on Leopard, because X11 builds made on Leopard also don't work in Tiger, but I don't know for sure.
>

tags: added: crash osx
Revision history for this message
Michael Wybrow (mjwybrow) wrote :

This is a mixture of issues that are now fixed, e.g. https://bugs.launchpad.net/inkscape/+bug/400165. Closing.
The Inkscape-0.47pre2-1.LEOPARD.dmg has these fixes. A Tiger version is not yet available but should be forthcoming.

Changed in inkscape:
assignee: JiHO (jiho) → Michael Wybrow (mjwybrow)
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

Related questions

Remote bug watches

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