crash in "Open file" dialog in zh_CN.UTF-8 locales
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
High
|
Unassigned | ||
inkscape (Debian) |
Fix Released
|
Unknown
|
Bug Description
Launching inkscape with LANG=zh_CN.UTF-8, crashes reproducibly every time in File -> Open...
I've seen it also crashing with zh_TW.UTF-8 after browsing some .svg files (with and without preview enabled).
This bug affect both 0.46 stable and recent svn devel versions. Below the backtrace, attached a full backtrace too.
Moreover pango_ft2_
It was originally reported in debian BTS, see http://
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6203700 (LWP 4030)]
font_instance:
349 theFace=
(gdb) bt
#0 font_instance:
#1 0x083e9ed0 in font_factory::Face (this=0xa0370b0, descr=0xc3ca100, canFail=false) at libnrtype/
#2 0x083ea132 in font_factory::Face (this=0xa0370b0, descr=0xc3ca100, canFail=true) at libnrtype/
#3 0x083f806b in Inkscape:
at libnrtype/
#4 0x083f990a in Inkscape:
#5 0x083f9f2d in Inkscape:
#6 0x080f5657 in SPText:
#7 0x080f5936 in sp_text_update (object=0xb1bd1b8, ctx=0xbf88b1a8, flags=<value optimized out>) at sp-text.cpp:248
#8 0x080d8856 in SPObject:
#9 0x080c79df in CGroup::onUpdate (this=0xc414800, ctx=0xbf88b2e8, flags=92) at sp-item-
#10 0x080d8856 in SPObject:
#11 0x080c79df in CGroup::onUpdate (this=0xc414da8, ctx=0xbf88b42c, flags=28) at sp-item-
#12 0x080e8ce1 in sp_root_update (object=0x9ac4410, ctx=0xbf88b648, flags=27) at sp-root.cpp:553
#13 0x080d8856 in SPObject:
#14 0x0808c038 in SPDocument:
#15 0x0808c132 in sp_document_
#16 0xb73b9381 in ?? () from /usr/lib/
#17 0x0965bea0 in ?? ()
#18 0x0c410bf0 in ?? ()
#19 0xbf88b718 in ?? ()
#20 0xb74364a8 in ?? () from /usr/lib/
#21 0xb686a3f0 in ?? () from /lib/i686/
#22 0xb74364a8 in ?? () from /usr/lib/
#23 0xbf88b768 in ?? ()
#24 0xb73bb2e1 in g_main_
Backtrace stopped: frame did not save the PC
Changed in inkscape: | |
status: | Unknown → Confirmed |
Changed in inkscape: | |
status: | Confirmed → Fix Released |
Other related details: the culprit is LC_CTYPE, looks like something (our font handler or pango) goes wrong when it is set to chinese. Inkscape crashes in similar ways in other points of libnrtype, too. Chinese .po contains a character for the open dialog translation which always trigger the crash. I'm trying a patch to prevent the crash, but I can't understand why it fails to get proper faces under chinese.