Crash in MacOS when clicking font drop-down

Bug #183753 reported by SteveCoast
8
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
JiHO

Bug Description

When I click the font box to get a list of fonts it crashes. This is with 0.45.1 on MacOS X 10.4.

It happens every time.

(inkscape-bin:2442): Pango-WARNING **: Error loading GSUB table 85
cairo-ft-font.c:688: failed assertion `error == 0'

Emergency save activated!

Emergency save document locations:
  New document 1.2008_01_17_12_31_38.0
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.

Tags: fonts osx
Revision history for this message
SteveCoast (steve-asklater) wrote :

Tried build 16997 and it appears to be working.

Not closing the bug so that a maintainer can check if it's still valid or what as I don't know what your build / release policy is.

Revision history for this message
DeaconMacMillan (deaconmacmillan) wrote :

same crash here... if I even think about clicking on the font menu KABAM! big old crash. bu thats the only time it happens to me. maybe it dosnt like one of my fonts, maybe corrupt or something. here is what the console tells me

im running inkscape on leotard... I mean leaphard... err 10.5.1 on x11 2.1.1 on a macbook pro 15 inch the led screen model. It seems like it used to work. but cant remember properly. im running english and japanese if that makes any difference

1/22/08 8:44:52 AM [0x0-0x83083].org.inkscape.Inkscape[2651] (inkscape-bin:2652): Gtk-WARNING **: Locale not supported by C library.
1/22/08 8:44:52 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Using the fallback 'C' locale.
1/22/08 8:44:54 AM [0x0-0x83083].org.inkscape.Inkscape[2651] ** (inkscape-bin:2652): WARNING **: Unknown verb name: FullScreen
1/22/08 9:40:31 AM [0x0-0x83083].org.inkscape.Inkscape[2651] (inkscape-bin:2652): Pango-WARNING **: Error loading GDEF table 85
1/22/08 9:40:31 AM [0x0-0x83083].org.inkscape.Inkscape[2651] (inkscape-bin:2652): Pango-WARNING **: Error loading GPOS table 85
1/22/08 9:40:31 AM [0x0-0x83083].org.inkscape.Inkscape[2651] (inkscape-bin:2652): Pango-WARNING **: Error loading GSUB table 85
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] cairo-ft-font.c:688: failed assertion `error == 0'
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Unable to find: FullScreen
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Unable to find: FullScreen
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Unable to find: FullScreen
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Unable to find: FullScreen
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Emergency save activated!
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Emergency save document locations:
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] IMG_734X.2008_01_22_09_40_32.0
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] heade34X.2008_01_22_09_40_32.1
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] Emergency save completed. Inkscape will close now.
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] If you can reproduce this crash, please file a bug at www.inkscape.org
1/22/08 9:40:32 AM [0x0-0x83083].org.inkscape.Inkscape[2651] with a detailed description of the steps leading to the crash, so we can fix it.

Revision history for this message
Olaf Klinke (olf-aatal-apotheke) wrote :

Same bug happens to me each time I select the font dropdown menu.
OS X 10.5.1, Inkscape 0.45.1
The application freezes, displaying a X11 message window without any text.
Probably Inkscape tries to display an error message but does not succeed?
As a workaround I change the font family using the xml editor. Cumbersome, but no crash.

Revision history for this message
JiHO (jiho) wrote : Re: [Bug 183753] Re: Crash in MacOS when clicking font drop-down

On 2008-January-26 , at 23:22 , Olaf Klinke wrote:
> As a workaround I change the font family using the xml editor.
> Cumbersome, but no crash.

Try the text and font palette. I should work better. It should also
allow you to detect wether it's a specific font that causes the crash
(try to preview all fonts and check wether it crashes or not).

Bryce Harrington (bryce)
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
DeaconMacMillan (deaconmacmillan) wrote :

font pallet seems to work fine, I can view all my fonts without it crashing. just dont go near the dropdown

Revision history for this message
katdeas (katdeas) wrote :

indeed, font pallet works fine, but is there any chance to get the bug fixed? i have the same problem, running inkscape on Leopard, prgm crashes as soon as the "Chalkboard" font hits the drop-down window, leaving me with an empty X11 report log window. looking at crash log there's no trace of inkscape ever crashing.

Revision history for this message
JiHO (jiho) wrote :

so the problem is confirmed to be caused by a specific font?
Chalkboard? What type of font is this (dfont, true type, open type,
etc.?)

On 2008-February-05 , at 14:52 , katdeas wrote:
> looking at crash log
> there's no trace of inkscape ever crashing.

could you look at console log please? there usually are traces of
crashes somewhere.

Revision history for this message
SteveCoast (steve-asklater) wrote :

On 5 Feb 2008, at 14:23, JiHO wrote:
> On 2008-February-05 , at 14:52 , katdeas wrote:
>> looking at crash log
>> there's no trace of inkscape ever crashing.
>
>
> could you look at console log please? there usually are traces of
> crashes somewhere.

See opening text of the bug for my console output

have fun,

SteveC | <email address hidden> | http://www.asklater.com/steve/

Revision history for this message
katdeas (katdeas) wrote :

On Feb 5, 2008, at 3:23 PM, JiHO wrote:

> so the problem is confirmed to be caused by a specific font?
> Chalkboard? What type of font is this (dfont, true type, open type,
> etc.?)
well, that's until where i can scroll, and not one font beyond - so
please take into consideration that the next font up might be the
culprit, but as the Inkscape font list does not correspond to the
Fonts folder in the Mac I can't tell you which one should be coming
next. As my computer is new i have never manipulated the Font folder,
all is in it's original prefabricated order.
>
>
> On 2008-February-05 , at 14:52 , katdeas wrote:
>> looking at crash log
>> there's no trace of inkscape ever crashing.
>
>
> could you look at console log please? there usually are traces of
> crashes somewhere.
please help me out here where to look exactly as i'm new to mac. thanks.
>
>
> --
> Crash in MacOS when clicking font drop-down
> https://bugs.launchpad.net/bugs/183753
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Inkscape: A Vector Drawing Tool: Confirmed
>
> Bug description:
> When I click the font box to get a list of fonts it crashes. This is
> with 0.45.1 on MacOS X 10.4.
>
> It happens every time.
>
> (inkscape-bin:2442): Pango-WARNING **: Error loading GSUB table 85
> cairo-ft-font.c:688: failed assertion `error == 0'
>
> Emergency save activated!
>
> Emergency save document locations:
> New document 1.2008_01_17_12_31_38.0
> 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.

Revision history for this message
katdeas (katdeas) wrote :

aha! found the console log, getting there. It's attached.

Revision history for this message
Tom Davidson (tjd-mit) wrote :

This sounds a bit like bug 168320. That one is not a crash bug, and not Mac specific, but details weird font drop-down menu behavior if you open a file containing a reference to a font that you don't have installed. (Or if your the 'default' font specified in preferences.xml is not installed). There's a test file at that bug with a non-existent font name that you could try and see if it gives the same crash...

Revision history for this message
Noah Balmer (noahbalmer) wrote :

Some more information to help troubleshooting, a workaround for anyone who really wants to use "Chalkboard", and some issues with "Charcoal CY"
OSX 10.5.1
Default system fonts
Inkscape 45.1
If I set the default font to something toward the end of the alphabet, say verdana, and click the font dropdown, the crash happens.
If I set the default font to something near the beginning of the list, say Arial, everthing works until I start scrolling down. The crash happens whenI try to scoll "Chalkboard" into the window. If I set the default font to "Chalkboard", then select the text tool, I get a crash too.
Here's where things get interesting.
If I then restart Inkscape and select the text tool, Chalkboard is the default font, and I can use it. I typed every character on the keyboard and they all displayed correctly, so it seems the font itself works.
Here's where things get more interesting.
The font after Chalkboard is "Charcoal CY".
If I choose Charcoal CY as the default font, I get a little yellow warning "!" next to the font dropdown. Hovering on it, a tooltip says "This font is currently not installed on your system. Inkscape will use the default font instead." If I try to use it, Inkscape switches to Sans, and won't use anything else until I restart.
Charcoal CY is, in fact, installed on my system, and works fine in other programs. I even see a correct preview of it in the Inkscape "Text and Font" window, but it bounces to Sans as soon as I try adding it to a drawing.

Revision history for this message
katdeas (katdeas) wrote :

Here's another one: On my PC i created a file in freehand using "Adler__.tff". As I've migrated to Mac and trying to use only open source I tend to install fonts as i go along, one of them being Adler. With this one installed in my "Font Book" application, Inksape would crash at start up, giving me an empty error message (as if speechless!). Installing other fonts hasn't been a problem. Taking Adler out again let's Inkscape work again. What's going on?

Revision history for this message
JiHO (jiho) wrote :

On 2008-February-14 , at 14:44 , katdeas wrote:
> Here's another one: On my PC i created a file in freehand using
> "Adler__.tff". As I've migrated to Mac and trying to use only open
> source I tend to install fonts as i go along, one of them being Adler.
> With this one installed in my "Font Book" application, Inksape would
> crash at start up, giving me an empty error message (as if
> speechless!).
> Installing other fonts hasn't been a problem. Taking Adler out again
> let's Inkscape work again. What's going on?

Adler is known to cause this problem. Why it causes it is another
matter. What does the three underscores in the file name stand for?
Are there special characters in the font name (i.e. the name displayed
in other programs)?

JiHO
---
http://jo.irisson.free.fr/

Revision history for this message
JiHO (jiho) wrote :

Can you test again with this build: http://inkscape.modevia.com/macosx-snap/Inkscape-17373-10.5-i386.dmg please. Thanks in advance.

Revision history for this message
Noah Balmer (noahbalmer) wrote :

JiHO,
I just tried that build and I can't replicate the bug in any of the test cases I posted before.

Revision history for this message
katdeas (katdeas) wrote :

about the adler font: no idea why it comes with the underscores, that's how it shows up in my font book. i took them away, and it doesn't make any change whatsoever.

about your build: EXCELLENT and well done, even works with Adler. the drop down takes a while to load, but when once it's loaded it scrolls comfortably.

Revision history for this message
JiHO (jiho) wrote :

On 2008-February-18 , at 16:42 , katdeas wrote:

> about your build: EXCELLENT and well done, even works with Adler. the
> drop down takes a while to load, but when once it's loaded it scrolls
> comfortably.

it needs to render the fonts so a delay is to be expected compared to
a regular menu. I don't know the details of the implementation i.e.
wether it renders all fonts on first load or renders them as the
cursor scrolls down. given previous reports with chalkboard crashing
inkscape only when it was shown I am betting for the second
implementation, in which case there's nothing much to be done to
reduce the delay. I still tend to prefer the text and font palette
with a larger preview anyway ;)

I'm glad to know the new build works fine, that's a huge spine out of
our foot for the release. I was starting to have doubts about the
quality of this release.

Revision history for this message
JiHO (jiho) wrote :

This is solved by using recent versions of Pango and Cairo. Using Cairo+ATSUI may prove useful too, but it leads to a change in UI font rendering (more blurry).

Changed in inkscape:
assignee: nobody → jiho
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.