crash (SIGSEGV) with some fonts

Bug #167252 reported by Vaclavjuza
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Richard Hughes
Debian
Fix Released
Unknown

Bug Description

I posted this error also on Debian BTS
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=349515
(for the case it is debian specific bug)

When I add some text to an image (even to the empty
one)
and want to change the font(I click the "A" button in
the toolbar).
When I select font Times or Helvetica or Lucida (or
some others),
the following dialog appears:

Inkscape encountered an internal error and will close
now.
Automatic backups of unsaved documents were done to the
following locations:
        New document 1.2006_01_23_15_19_46.0

It crashes also when opening an SVG file with a text in
some of these fonts.

Some other fonts work (Bitstream Vera, Free*, Nimbus)

Here there is a backtrace of the core when opening a
file with the Helvetica font:
#0 0x00000000 in ?? ()
#1 0x08139667 in inkscape_get_repr ()
#2 <signal handler called>
#3 0x0830035a in font_instance::SelectUnicodeCharmap
()
#4 0x082ff0bb in font_factory::Face ()
#5 0x082ff150 in font_factory::Face ()
#6 0x082ff4b2 in font_factory::Face ()
#7 0x0830d442 in
Inkscape::Text::Layout::InputStreamTextSource::
styleGetFontInstance ()
#8 0x083084a8 in
Inkscape::Text::Layout::Calculator::
_buildPangoItemizationForPara ()
#9 0x083091aa in Inkscape::Text::Layout::Calculator::
calculate ()
#10 0x08309928 in Inkscape::Text::Layout::calculateFlow
()
#11 0x0817bad8 in SPText::rebuildLayout ()
#12 0x0817bf03 in SPText::rebuildLayout ()
#13 0x08163db0 in SPObject::updateDisplay ()
#14 0x081579fe in SPGroup::setLayerDisplayMode ()
#15 0x08163db0 in SPObject::updateDisplay ()
#16 0x081579fe in SPGroup::setLayerDisplayMode ()
#17 0x08171bb3 in sp_root_get_type ()
#18 0x08163db0 in SPObject::updateDisplay ()
#19 0x08131841 in sp_document_ensure_up_to_date ()
#20 0x081b55d6 in SPDesktop::init ()
#21 0x0828edc8 in sp_desktop_widget_new ()
#22 0x081343e6 in sp_file_open ()
#23 0x0812da12 in sp_main_gui ()
#24 0x081fe265 in Inkscape::NSApplication::Application
::run ()
#25 0x0812d220 in main ()

and here the backtrace when having opened a new
document
and selecting "Times" in the text and fonts dialog:

#0 0x00000000 in ?? ()
#1 0x08139667 in inkscape_get_repr ()
#2 <signal handler called>
#3 0x0830035a in font_instance::SelectUnicodeCharmap
()
#4 0x082ff0bb in font_factory::Face ()
#5 0x082ff150 in font_factory::Face ()
#6 0x082ff510 in font_factory::FaceFromDescr ()
#7 0x08290e01 in sp_font_selector_get_type ()
#8 0xb7a39876 in _gtk_marshal_VOID__INT_INT_BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
#9 0xb737c839 in g_closure_invoke () from /usr/lib/
libgobject-2.0.so.0
#10 0xb738c0ea in g_signal_stop_emission () from /usr/
lib/libgobject-2.0.so.0
#11 0xb738d970 in g_signal_emit_valist () from /usr/
lib/libgobject-2.0.so.0
#12 0xb7a84518 in gtk_signal_emit () from /usr/lib/
libgtk-x11-2.0.so.0
#13 0xb79853a6 in gtk_clist_select_row () from /usr/
lib/libgtk-x11-2.0.so.0
#14 0x08290caa in sp_font_selector_get_type ()
#15 0xb7a39876 in _gtk_marshal_VOID__INT_INT_BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
#16 0xb737c839 in g_closure_invoke () from /usr/lib/
libgobject-2.0.so.0
#17 0xb738c0ea in g_signal_stop_emission () from /usr/
lib/libgobject-2.0.so.0
#18 0xb738d970 in g_signal_emit_valist () from /usr/
lib/libgobject-2.0.so.0
#19 0xb7a84518 in gtk_signal_emit () from /usr/lib/
libgtk-x11-2.0.so.0
#20 0xb79869ac in gtk_clist_undo_selection ()
from /usr/lib/libgtk-x11-2.0.so.0
#21 0xb798a91a in gtk_clist_set_selectable ()
from /usr/lib/libgtk-x11-2.0.so.0
#22 0xb7a37960 in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
#23 0xb737c179 in g_cclosure_new_swap () from /usr/lib/
libgobject-2.0.so.0
#24 0xb737c839 in g_closure_invoke () from /usr/lib/
libgobject-2.0.so.0
#25 0xb738c7f5 in g_signal_stop_emission () from /usr/
lib/libgobject-2.0.so.0
#26 0xb738d6de in g_signal_emit_valist () from /usr/
lib/libgobject-2.0.so.0
#27 0xb738dcd9 in g_signal_emit () from /usr/lib/
libgobject-2.0.so.0
#28 0xb7b291c4 in gtk_widget_activate () from /usr/lib/
libgtk-x11-2.0.so.0
#29 0xb7a35d8d in gtk_propagate_event () from /usr/lib/
libgtk-x11-2.0.so.0
#30 0xb7a36203 in gtk_main_do_event () from /usr/lib/
libgtk-x11-2.0.so.0
#31 0xb78c917a in _gdk_events_queue () from /usr/lib/
libgdk-x11-2.0.so.0
#32 0xb730fb8c in g_main_context_dispatch () from /usr/
lib/libglib-2.0.so.0
#33 0xb7312f6b in g_main_context_check () from /usr/
lib/libglib-2.0.so.0
#34 0xb73132c7 in g_main_loop_run () from /usr/lib/
libglib-2.0.so.0
#35 0xb7a353a1 in gtk_main () from /usr/lib/libgtk-x11-
2.0.so.0
#36 0xb7e66626 in Gtk::Main::run_impl () from /usr/lib/
libgtkmm-2.4.so.1
#37 0xb7e664d1 in Gtk::Main::run () from /usr/lib/
libgtkmm-2.4.so.1
#38 0x0812d998 in sp_main_gui ()
#39 0x081fe265 in Inkscape::NSApplication::Application
::run ()
#40 0x0812d220 in main ()

Changed in debian:
status: Unknown → 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.