After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 65109 - Crash if no XftConfig file
Crash if no XftConfig file
Status: RESOLVED WONTFIX
Product: pango
Classification: Platform
Component: general
0.x
Other All
: Normal normal
: future
Assigned To: Alexander Larsson
Alexander Larsson
: 69645 79616 84830 85394 86204 90089 93102 99161 99648 99991 100741 101236 101427 101868 101879 (view as bug list)
Depends on:
Blocks: 69645
 
 
Reported: 2001-11-22 10:10 UTC by padraig.obriain
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description padraig.obriain 2001-11-22 10:10:48 UTC
When I ran the libgnomecanvas test program canvas_demo on Solaris it output
the message 

cannot open file "/usr/X11R6/lib/X11/XftConfig"

and then crashed with the dbx stack trace as below.

I realized that there are probably fonts missing on Solaris but programs
should not crash.

=>[1] MiniXftPatternFind(0x0, 0xfec9bb08, 0x0, 0x0, 0x0, 0xb4), at
0xfec96a74
  [2] MiniXftPatternGet(0x0, 0xfec9bb08, 0x0, 0xffbed4b8, 0x675f71, 0x0),
at 0xfec97188
  [3] MiniXftPatternGetString(0x0, 0xfec9bb08, 0x0, 0xffbed54c, 0x0,
0xfebb266c), at 0xfec973e4
  [4] pango_ft2_pattern_hash(0x0, 0xfec87fc0, 0x0, 0xff3e0000, 0x17578,
0x0), at 0xfec87ff4
  [5] g_hash_table_lookup_node(0xb22d0, 0x0, 0xffbed6a4, 0x1, 0xff3e0000,
0xff330ba4), at 0xfea30668
  [6] g_hash_table_lookup(0xb22d0, 0x0, 0x0, 0x1d, 0x0, 0xcc638), at
0xfea2eda0
  [7] pango_ft2_font_map_new_font(0x2edf0, 0x0, 0x0, 0xfec9bb68,
0xfec9bc40, 0xcc638), at 0xfec89040
  [8] pango_ft2_font_map_load_fontset(0x2edf0, 0xb2280, 0xb2348, 0x99bb8,
0xfec89164, 0xfe840d48), at 0xfec89530
  [9] pango_font_map_load_fontset(0x2edf0, 0xb2280, 0xb2348, 0x99bb8, 0x0,
0xcc631), at 0xfebcba70
  [10] add_engines(0xb2280, 0xb5b70, 0x0, 0xa, 0xb5b88, 0xb5ba0), at
0xfebc9c88
  [11] pango_itemize(0xb2280, 0xb5b70, 0x0, 0xa, 0xb5b88, 0xb5ba0), at
0xfebc9060
  [12] pango_layout_check_lines(0xcc480, 0xfe8b6000, 0xcc4d0, 0xfe8b6000,
0x21de8, 0xfe841b68), at 0xfebd46a8
  [13] pango_layout_get_extents_internal(0xcc480, 0x0, 0xffbedbb8, 0x0,
0x21dc0, 0xfea4a4d4), at 0xfebd1eb8
  [14] pango_layout_get_extents(0xcc480, 0x0, 0xffbedbb8, 0x1e, 0x0,
0xcc4d0), at 0xfebd2370
  [15] pango_layout_get_pixel_size(0xcc480, 0xc3140, 0xc3144, 0xc3048, 0x0,
0xc3130), at 0xfebd27c4
  [16] get_bounds(0xc3048, 0xc3068, 0xc3070, 0xc3078, 0xc3080, 0xb5b70), at
0xff35fbec
  [17] recalc_bounds(0xc3048, 0xb5b58, 0xffffffff, 0x2d74c, 0x0, 0x0), at
0xff35ffa4
  [18] gnome_canvas_text_set_property(0xc3048, 0x1, 0xffbede20, 0x3ff30,
0xff360208, 0x3a), at 0xff360638
  [19] object_set_property(0xc3048, 0x3ff30, 0xffbedf30, 0x381d8,
0xfeb623d4, 0xffbedf59), at 0xfeb39124
  [20] g_object_set_valist(0xc3048, 0x1a5f8, 0xffbee0e8, 0x0, 0x1,
0xff37dd68), at 0xfeb3397c
  [21] gnome_canvas_item_construct(0xc3048, 0x2eab0, 0x1a5f8, 0xffbee0e8,
0x0, 0x74), at 0xff36e048
  [22] gnome_canvas_item_new(0x2eab0, 0x2314, 0x1a5f8, 0x1a688, 0x1a600,
0x40590000), at 0xff36d7d0
  [23] setup_heading(0x2eab0, 0x1a688, 0x0, 0xb5a98, 0x1a628, 0x1a638), at
0x12a28
  [24] setup_divisions(0x2ea60, 0x2e848, 0x0, 0x0, 0x0, 0x0), at 0x12ee8
  [25] create_canvas_primitives(0x1, 0x1114, 0x4f398, 0x0, 0x0, 0x0), at
0x156f8
  [26] create_canvas(0x0, 0x3e4d8, 0xfe8b8588, 0x5, 0x21dc0, 0x12540), at
0x1239c
  [27] main(0x1, 0xffbee3ec, 0xffbee3f4, 0x2c124, 0x0, 0x0), at 0x12548
Comment 1 Alexander Larsson 2001-11-24 20:11:25 UTC
You need a XftConfig file, but i agree that it should be robust enough
to not crash.
Comment 2 Sven Neumann 2001-12-03 16:21:49 UTC
Pango and GTK+ also crash awfully if there is a config file, but no
fonts are found. Unfortunately there are a lot of places that need to
be changed to fix this issue.
Comment 3 Owen Taylor 2002-02-01 20:14:08 UTC
Fri Feb  1 14:50:36 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkrc.c (gtk_rc_parse_string): Handle reparsing
        any strings if the theme changes. (#69465)

        * tests/testgtk.c: Add a test for gtk_rc_parse_string().
Comment 4 Owen Taylor 2002-02-03 03:07:09 UTC
Oops, didn't mean to close this one.
Comment 5 Owen Taylor 2002-02-27 17:48:54 UTC
Don't really know what to do to fix this one short term.
Comment 6 Alexander Larsson 2002-02-27 19:13:19 UTC
I don't see a way to "fix" it, since there is just no way to render
text, get extents or anything if there are no fonts. And a lot of code
depends on getting at least some font.

We could add a g_warning() somewhere though, so you get some sort of
warning instead of just segfaulting later.
Comment 7 Owen Taylor 2002-03-22 17:59:30 UTC
Probably the only real way to fix this one would be to ship
a font with Pango.
Comment 8 Anders Carlsson 2002-04-09 08:34:21 UTC
*** Bug 69645 has been marked as a duplicate of this bug. ***
Comment 9 Luis Villa 2002-04-29 13:40:19 UTC
*** Bug 79616 has been marked as a duplicate of this bug. ***
Comment 10 Hidetoshi Tajima 2002-06-10 20:44:38 UTC
Do we still need XftConfig file on the HEAD with 
fontconfig?
Comment 11 Alexander Larsson 2002-06-11 08:14:28 UTC
You should need /etc/fonts/fonts.conf (or something like that) instead.
Comment 12 Hidetoshi Tajima 2002-06-11 17:38:08 UTC
Yes, and installing etc/fonts.conf to the proper install directory
and tuning the contents of the file is each platform's packaging
issue. 

If we're sure XftConfig file is no longer needed and if Sun's
sure that they will use post pango-1.0 for their package, 
I suggest this bug should be closed.
Comment 13 Owen Taylor 2002-06-12 15:34:04 UTC
*** Bug 84830 has been marked as a duplicate of this bug. ***
Comment 14 Luis Villa 2002-06-16 14:27:49 UTC
*** Bug 85394 has been marked as a duplicate of this bug. ***
Comment 15 Luis Villa 2002-06-24 14:42:47 UTC
*** Bug 86204 has been marked as a duplicate of this bug. ***
Comment 16 Owen Taylor 2002-08-07 12:14:39 UTC
*** Bug 90089 has been marked as a duplicate of this bug. ***
Comment 17 John Fleck 2002-11-21 15:42:08 UTC
*** Bug 99161 has been marked as a duplicate of this bug. ***
Comment 18 Owen Taylor 2002-11-21 22:23:24 UTC
*** Bug 93102 has been marked as a duplicate of this bug. ***
Comment 19 Elijah Newren 2002-11-26 20:59:50 UTC
*** Bug 99648 has been marked as a duplicate of this bug. ***
Comment 20 David Kennedy 2002-11-30 17:01:00 UTC
*** Bug 99991 has been marked as a duplicate of this bug. ***
Comment 21 David Kennedy 2002-12-09 14:43:06 UTC
*** Bug 100741 has been marked as a duplicate of this bug. ***
Comment 22 Luis Villa 2002-12-13 16:07:09 UTC
Marking this WONTFIX based on alexl's comment. I don't really like
this (to be honest)- we should make it as easy as possible to install
things from source, since that is how we attract developers. But...
that's probably a bigger-picture question than is appropriate for
bugzilla.
Comment 23 Alex Duggan 2002-12-15 02:42:39 UTC
*** Bug 101236 has been marked as a duplicate of this bug. ***
Comment 24 Heath Harrelson 2002-12-17 13:12:49 UTC
*** Bug 101427 has been marked as a duplicate of this bug. ***
Comment 25 Alex Duggan 2002-12-23 17:31:18 UTC
*** Bug 101868 has been marked as a duplicate of this bug. ***
Comment 26 Alex Duggan 2002-12-23 22:58:43 UTC
*** Bug 101879 has been marked as a duplicate of this bug. ***