crash if sans-serif font is a bitmap font

Bug #168874 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned

Bug Description

Crash when opening some svg files like add_user.svg from Oxygen project

Segmentation fault. Can`t debug using gdb, maybe because of HyperThreading.
Affects at least 0.45 and up to current svn. Linux-2.6.22.

Tags: svg
Revision history for this message
Bug Importer (bug-importer) wrote :
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Works for me.

Revision history for this message
Orivej Desh (orivej) wrote :

Originator: NO

I have checked again and found that the problem is weakly connected with
file add_user.svg.
In fact it is a very old bug, I sent a message to inkscape-devel mailing
list
(http://sourceforge.net/mailarchive/forum.php?thread_name=200701271320.27119.smpuj%40bk.ru&forum_name=inkscape-devel)
in the end of January describing the problem, but Bryce Harrington couldn`t
reproduce this, I hadn`t enough time to debug and to talk with developers
and simply wrote a script to overcome the problem: it changes the default
on my system bitmap font with ttf font and inkscape don`t crash.
The problem appeared again then I started using oxygen icons. At one step
installer runs this 'inkscape --without-gui --export-background-opacity=0
--export-width=128 --export-height=128 --file=${svg} --export-png=${png}'
and with some of icons it fails with SIGSEGV. Today I replaced in this
command inkscape with inkscape.sh (this is the name of my script, currently
I know it is simpler to use FONTCONFIG_FILE environment variable when to
substitute ~/.fonts.conf file) and the problem disappeared. It is strange
for my why 'inkscape --without-gui' wants to know my 'sans' font but I will
debug it. So I will debug inkscape myself and will send a good bug report
to this tracker soon, so you can close this bug.

PS. About hyperthreading: it is a problem not of inkscape but of gdb:
http://www.cygwin.com/ml/gdb/2007-07/msg00166.html.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

ok thanks

Revision history for this message
Orivej Desh (orivej) wrote :

Originator: NO

It is slightly strange for me that you have replaced the topic and closed
the bug at the same time. So I think it is not closed.

These are steps how to reproduce a bug.
Don`t know how to submit a file here so it is there:
http://files-upload.com/files/489380/inkscape.tar.gz
1. Extract inkscape.tar.gz in /tmp folder (this is important because path
is hardcoded in config)
2. cd /tmp/inkscape
3. Run "FONTCONFIG_FILE=/tmp/inkscape/fonts.conf inkscape add_user.svg" in
console. The program should fail.
4. In /tmp/inkscape/conf.d/50-fonts.conf replace "Helvetica" with
"Bitstream Vera Sans". The program should work ok.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

I cannot reproduce from your description. Inkscape starts up OK though all
fonts in the interface are different. It als says in the console:

Fontconfig error: Cannot load default config file

I also attached your archive to this bug.
File Added: inkscape.tar.gz

Revision history for this message
Orivej Desh (orivej) wrote :

Originator: NO

Thank you.
"Fontconfig error: Cannot load default config file" without any other
fontconfig error messages means that $FONTCONFIG_FILE don`t exist.

Bryce Harrington (bryce)
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
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.