GNOME Bugzilla – Bug 62520
crash on launch
Last modified: 2004-12-22 21:47:04 UTC
Package: Gnumeric Severity: blocker Version: 0.71 Synopsis: crash on launch Bugzilla-Product: Gnumeric Bugzilla-Component: General Description: compile gnumeric 0.71 on redhat 7.1 with ximian gnome installed ans updated for evolution beta (daily snapshot, version 0.16.99 ) impossible to use crash at every time Debugging Information: [New Thread 1024 (LWP 26666)] 0x40880209 in __wait4 () from /lib/i686/libc.so.6
+ Trace 11844
Thread 1 (Thread 1024 (LWP 26666))
------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-10-17 10:56 ------- Reassigning to the default owner of the component, jgoldberg@home.com.
I can patch that crash be checking for invalid fonts, but it does not solve the real problem. Why are the fonts not defined ? Are there any other messages ?
*** Bug 63256 has been marked as a duplicate of this bug. ***
The patch in 0.72 avoids the crash. You'll need to figure out what is wrong with your gnome-print installation.
with gnumeric 0.72 ,it's the same. I have "gnome-print-0.31" (of ximian) and I crash when $LANG = fr_FR@euro but it works when LANG = fr_FR (without euro) maybe I have somethings bad with euro in font gnumeric tell that on the console Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation maybe the ISO8859 charset of the font are bad, but I don't understand why.
Can you get a back trace for 0.72 ? I'm working blind trying to guess what is broken in you font installation so that gnumeric can protect against it.
I've been able to reproduce this. I figured all the gdb output might be useful, so I'm including it. LANG=fr_FR@euro $ gdb gnumeric GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (no debugging symbols found)... (gdb) r Starting program: /usr/bin/gnumeric Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-15 Gdk-WARNING **: ISO8859-15 [New Thread 1024 (LWP 18229)] ** CRITICAL **: file gnome-rfont.c: line 990 (gnome_display_font_height): assertion `gdf->gdk_font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion `font != NULL' failed. ** CRITICAL **: file gnome-rfont.c: line 990 (gnome_display_font_height): assertion `gdf->gdk_font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion `font != NULL' failed. ** CRITICAL **: file gnome-rfont.c: line 990 (gnome_display_font_height): assertion `gdf->gdk_font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion `font != NULL' failed. ** CRITICAL **: file gnome-rfont.c: line 990 (gnome_display_font_height): assertion `gdf->gdk_font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 318 (gdk_string_width): assertion `font != NULL' failed. Program received signal SIGSEGV, Segmentation fault.
+ Trace 12664
Thread 1024 (LWP 18229)
I see the problem. Gnome-print uses gdk_fontset_new to create matching display font for given GnomeFont. For some reason, using fr_FR@euro locale, fontset creation fails, and NULL font is delivered. Adding fallback to default should help, although not nice always: If gdk_fontset_new fails, try gdk_font_new - i.e. find FIRST matching font, if that fails, gdk_font_new ("fixed") It is difficult to support all people with different locale preferences. I have always suspected fontsets to be half-solution, and that seems to be true. Anyways, I'll add fallback to gnome-print 0.32.
Thanks, for looking at this Lauris. Do you have an eta on 0.32 ?