Opened 11 years ago

Closed 11 years ago

#41599 closed defect (duplicate)

Inkscape crashes on startup

Reported by: hanche Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: inkscape

Description

Inkscape crashes on startup. Here is the exception and backtrace, from gdb:

(gdb) run
Starting program: /opt/local/bin/inkscape 
[…]
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000000002b0
0x00000001022239d9 in TT_Load_Simple_Glyph ()
(gdb) back
#0  0x00000001022239d9 in TT_Load_Simple_Glyph ()
#1  0x000000010222587b in load_truetype_glyph ()
#2  0x000000010221e413 in tt_glyph_load ()
#3  0x000000010220f97d in FT_Load_Glyph ()
#4  0x00000001021e051f in FcFreeTypeCheckGlyph ()
#5  0x00000001021dfc69 in FcFreeTypeCharSetAndSpacingForSize ()
#6  0x00000001021df08c in FcFreeTypeQueryFace ()
#7  0x00000001021df621 in FcFreeTypeQuery ()
#8  0x00000001021dbda1 in FcFileScanConfig ()
#9  0x00000001021dc00d in FcDirScanConfig ()
#10 0x00000001021dc149 in FcDirCacheScan ()
#11 0x00000001021d635e in FcConfigAddDirList ()
#12 0x00000001021d62a6 in FcConfigBuildFonts ()
#13 0x00000001021e117a in FcInitLoadOwnConfigAndFonts ()
#14 0x00000001021d5b96 in FcConfigEnsure ()
#15 0x00000001021d6e23 in FcConfigSubstituteWithPat ()
#16 0x0000000101ce1670 in pango_cairo_fc_font_map_fontset_key_substitute ()
#17 0x0000000102123b79 in pango_fc_font_map_load_fontset ()
#18 0x0000000102141bb7 in itemize_state_process_run ()
#19 0x00000001021416d6 in pango_itemize_with_base_dir ()
#20 0x0000000102146dd4 in pango_layout_check_lines ()
#21 0x0000000102148b07 in pango_layout_get_unknown_glyphs_count ()
#22 0x00000001012734f9 in find_invisible_char ()
#23 0x0000000101272470 in gtk_entry_init ()
#24 0x000000010219ee17 in g_type_create_instance ()
#25 0x000000010218f5f5 in g_object_new_internal ()
#26 0x000000010218edde in g_object_newv ()
#27 0x00000001018c4479 in Glib::Object::Object ()
#28 0x0000000100e5ed3c in Gtk::Object::Object ()
#29 0x0000000100ec540c in Gtk::Widget::Widget ()
#30 0x0000000100e32bd0 in Gtk::Entry::Entry ()
#31 0x0000000100e88031 in Gtk::SpinButton::SpinButton ()
#32 0x000000010047ba0c in Inkscape::UI::Widget::SelectedStyle::SelectedStyle ()
#33 0x00000001002c12e2 in SPDesktopWidget::init ()
#34 0x000000010219ee3e in g_type_create_instance ()
#35 0x000000010218f5f5 in g_object_new_internal ()
#36 0x000000010218edde in g_object_newv ()
#37 0x000000010218eba5 in g_object_new ()
#38 0x00000001002c43cf in SPDesktopWidget::createInstance ()
#39 0x00000001002c4395 in sp_desktop_widget_new ()
#40 0x000000010005c139 in sp_file_new ()
#41 0x000000010005c34d in sp_file_new_default ()
#42 0x0000000100011603 in sp_main_gui ()
#43 0x0000000100010ef0 in main ()

Perhaps the bug is in some library, and not in inkscape itself? But if so, I don't know what library to blame, so I file this ticket against inkscape itself.

I am on OS X 10.8.5, last ran port selfupdate and port upgrade outdated yesterday. But I use inkscape quite rarely, so the problem may have existed a long time.

The exact port version is inkscape @0.48.4_19+python27+x11. And I have XQuartz 2.7.5.

Change History (8)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: crash removed
Owner: changed from macports-tickets@… to devans@…

The mention of "FT" makes me wonder if the recent freetype 2.5.1 update is implicated. We already know freetype 2.5.1 causes inkscape to fail to build, which needs to be fixed, but crash on startup is a different problem which will need a different fix. Possibly just a rebuild, possibly more. Once I fix the first problem I'll see if I can reproduce the second.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Well I can't reproduce the crash.

comment:3 Changed 11 years ago by hanche

Okay, then … what should I try? Force a rebuild of all dependencies? Build with a different compiler? And is there an easy way to find out which ports were installed from binary packages and which have been compiled locally?

comment:4 in reply to:  3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to hanche@…:

Okay, then … what should I try? Force a rebuild of all dependencies? Build with a different compiler?

I don't know. Perhaps the maintainer has a suggestion.

And is there an easy way to find out which ports were installed from binary packages and which have been compiled locally?

Not that I'm aware of.

comment:5 Changed 11 years ago by su-v

I'd also check for recently installed fonts which might be broken. Inkscape launches ok for me (on OS X 10.7.5), no matter which version of freetype is installed.

Version 2, edited 11 years ago by su-v (previous) (next) (diff)

comment:6 Changed 11 years ago by hanche

It appears that the only recently installed fonts came with XQuartz 2.7.5. Downgrading to XQuartz 2.7.4 does not help, however.

comment:7 Changed 11 years ago by su-v

Possibly the same issue as tracked in #41645 and #41655?

comment:8 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed

Yes, I think so. Should be fixed in freetype @2.5.1_1.

Note: See TracTickets for help on using tickets.