(0.44 on Debian) crash when selecting font properties

Bug #168276 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
Unassigned

Bug Description

I run Inkscape 0.44 from backports.org on Debian stable.

Start Inkscape, and select the Font selector and properties tool from the
Command Bar: crash

gdb output
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1225439232 (LWP 4406)]
0xb70c7dd3 in __strtod_internal () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb70c7dd3 in __strtod_internal () from /lib/tls/libc.so.6
#1 0x08346b26 in sp_font_selector_get_type ()
#2 0xb7435688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#3 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0xb74351af in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#5 0xb743427c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#6 0xb74345f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#7 0xb79f4a4b in gtk_combo_box_set_active () from
/usr/lib/libgtk-x11-2.0.so.0
#8 0xb79f4907 in gtk_combo_box_set_active () from
/usr/lib/libgtk-x11-2.0.so.0
#9 0xb79f6421 in gtk_combo_box_entry_get_type () from
/usr/lib/libgtk-x11-2.0.so.0
#10 0xb7435688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#11 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0xb74351af in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#13 0xb743427c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#14 0xb74345f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#15 0xb7a14b0a in _gtk_entry_get_borders () from
/usr/lib/libgtk-x11-2.0.so.0
#16 0xb7a85ac1 in _gtk_marshal_VOID__STRING_INT_POINTER () from
/usr/lib/libgtk-x11-2.0.so.0
#17 0xb74233bb in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#18 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0xb7434c35 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#20 0xb743427c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#21 0xb74345f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#22 0xb7a144dc in _gtk_entry_get_borders () from
/usr/lib/libgtk-x11-2.0.so.0
#23 0xb7a10b29 in gtk_editable_insert_text () from
/usr/lib/libgtk-x11-2.0.so.0
#24 0xb7a173d5 in gtk_entry_set_text () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x083472b7 in sp_font_selector_set_font ()
#26 0x082fe80c in sp_get_text_dialog_style ()
#27 0x082fd9cb in sp_text_edit_dialog ()
#28 0x0839de7f in sp_action_perform ()
#29 0xb7435688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#30 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb743503a in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#32 0xb743427c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#33 0xb7434506 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb79be655 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7b23b1c in gtk_toggle_button_get_inconsistent () from
/usr/lib/libgtk-x11-2.0.so.0
#36 0xb7435688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#37 0xb7423349 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#38 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#39 0xb7434a31 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#40 0xb743427c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#41 0xb7434506 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#42 0xb79be5c5 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#43 0xb79bf383 in _gtk_button_paint () from /usr/lib/libgtk-x11-2.0.so.0
#44 0xb7a8499e in _gtk_marshal_BOOLEAN__BOXED () from
/usr/lib/libgtk-x11-2.0.so.0
#45 0xb7423349 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#46 0xb7423075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#47 0xb7434c35 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#48 0xb743406c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#49 0xb7434506 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#50 0xb7b73d87 in gtk_widget_send_expose () from
/usr/lib/libgtk-x11-2.0.so.0
#51 0xb7a834b2 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#52 0xb7a82306 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#53 0xb7922825 in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#54 0xb73b0dd2 in g_main_depth () from /usr/lib/libglib-2.0.so.0
#55 0xb73b1e48 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#56 0xb73b2180 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#57 0xb73b2723 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#58 0xb7a81bb3 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#59 0xb7e98809 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1
#60 0xb7e98514 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#61 0x0816f087 in sp_main_gui ()
#62 0x0825afb0 in Inkscape::NSApplication::Application::run ()
#63 0x0816ec05 in main ()
(gdb)

Tags: fonts
Revision history for this message
Momo-33 (momo-33) wrote :
Download full text (5.1 KiB)

Originator: NO

I upgraded to Inkscape 0.44.1
The Inkscape package compiled cleanly. For that I upgraded the following
packages, built from source:

libsigc++-2.0-0c2a_2.0.17-0_i386.deb libsigc++-2.0-dev_2.0.17-0_i386.deb
libgc1c2_6.8-0_i386.deb libgc-dev_6.8-0_i386.deb
libgtkmm-2.4-1_2.4.10-0_i386.deb libgtkmm-2.4-dev_2.4.10-0_i386.deb

The problem remains:
Start Inkscape, and select the Font selector and properties tool from the
Command Bar: crash

The gdb backtrace is the same (as far as I can see):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227079552 (LWP 27025)]
0xb6f0bdd3 in __strtod_internal () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb6f0bdd3 in __strtod_internal () from /lib/tls/libc.so.6
#1 0x0834e906 in sp_font_selector_get_type ()
#2 0xb73af688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#3 0xb739d075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0xb73af1af in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#5 0xb73ae27c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#6 0xb73ae5f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#7 0xb7729a4b in gtk_combo_box_set_active () from
/usr/lib/libgtk-x11-2.0.so.0
#8 0xb7729907 in gtk_combo_box_set_active () from
/usr/lib/libgtk-x11-2.0.so.0
#9 0xb772b421 in gtk_combo_box_entry_get_type () from
/usr/lib/libgtk-x11-2.0.so.0
#10 0xb73af688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#11 0xb739d075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0xb73af1af in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#13 0xb73ae27c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#14 0xb73ae5f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#15 0xb7749b0a in _gtk_entry_get_borders () from
/usr/lib/libgtk-x11-2.0.so.0
#16 0xb77baac1 in _gtk_marshal_VOID__STRING_INT_POINTER () from
/usr/lib/libgtk-x11-2.0.so.0
#17 0xb739d3bb in g_cclosure_new_swap () from
/usr/lib/libgobject-2.0.so.0
#18 0xb739d075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#19 0xb73aec35 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#20 0xb73ae27c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#21 0xb73ae5f6 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#22 0xb77494dc in _gtk_entry_get_borders () from
/usr/lib/libgtk-x11-2.0.so.0
#23 0xb7745b29 in gtk_editable_insert_text () from
/usr/lib/libgtk-x11-2.0.so.0
#24 0xb774c3d5 in gtk_entry_set_text () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x0834f097 in sp_font_selector_set_font ()
#26 0x083061ac in sp_get_text_dialog_style ()
#27 0x08305327 in sp_text_edit_dialog ()
#28 0x083a60af in sp_action_perform ()
#29 0xb73af688 in g_cclosure_marshal_VOID__VOID () from
/usr/lib/libgobject-2.0.so.0
#30 0xb739d075 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb73af03a in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#32 0xb73ae27c in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#33 0xb73ae506 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb76f3655 in gtk_button_clicked () from /usr/lib/libgtk-x1...

Read more...

Revision history for this message
Momo-33 (momo-33) wrote :

Originator: NO

I found something that might be of interest for the font selection
system.

All fonts of one family in type1 and opentype can only be selected via
their family name (correct). If I try to select one shape, Inkscape
crashes.
If I copy only one shape of the family to .fonts/ , I can use that font
(e.g. Helvetica Black). If I save the drawing, the reference is
incorrect.

fontfile: HelveticaNeueLTPro-Blk.otf

xls reference, without the correct shape (95 Black):

style="font-size:32px;font-style:normal;font-variant:normal;font-weight:300;
font-stretch:condensed;text-align:start;line-height:100%;writing-mode:lr-tb;
text-anchor:start;fill:black;fill-opacity:1;stroke:none;stroke-width:1px;
stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;
font-family:Helvetica Neue LT Pro"

Revision history for this message
Bryce Harrington (bryce) wrote :

Is this issue still occurring on 0.45?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Philippe Coval (rzr) wrote : 0.45.1-1 on debian unstable : ok

If it helps I've just installed and tested 0.45.1-1 on debian unstable
the fonts' properties box works flawlessly...

Maybe next backported version will fix the bug,
watch out :

http://packages.debian.org/sarge-backports/inkscape

--
http://rzr.online.fr/q/svg

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks for letting us know the issue is resolved with 0.45.

Changed in inkscape:
status: Incomplete → 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.