GNOME Bugzilla – Bug 466755
pango hangul is crashing in gnome-about because it is failing to retrieve a font.
Last modified: 2007-09-02 17:36:27 UTC
This pango bug was noticed in gnome-about-me; Gnome-about crashes. This bug can be found if you run gnome-about manually. In this file, there is one name(which may be encoded incorrect), cause the problem in FcFreeTypeCharIndex. in hangul module, the case of NULL face haven't been considered. I just ran gnome-about from the commandline and waited about 1 minute. I got the following output : (gnome-about:2344): Pango-WARNING **: shape engine failure, expect ugly output. the offending font is 'LucidaSansLat5 Bold Not-Rotated 0' Looks like pango is failing to retrieve the font when one of the contributor's name is displayed. Additional info: Trace: 869: /usr/lib/gnome-about ff3450b4 waitid (0, 491, ffbfd930, 3) fed63314 libgnomeui_segv_handle (b, 0, 1, feda9a64, 46838, fedae22c) + ec ff343ccc __sighndlr (b, 0, ffbfdbd0, fed63228, 0, 0) + c ff3385dc call_user_handler (b, 0, ffbfdbd0, fd38b1c0, 47f08, ff380658) + 41c fab98e64 FT_Get_Char_Index (fd38b198, 30, 1, fd33c428, 2af7b8, fd38b118) + 18 fd32af24 _cairo_scaled_font_text_to_glyphs (fd38b198, 0, 1, ffbfdff0, 3, ffbfdf70) + 124 fd32ab10 cairo_scaled_font_text_extents (fd38b198, ffbfe4ae, ffbfe408, ffbfdff4, facf8570, ffbfdff0) + 28 face4160 _pango_cairo_font_get_hex_box_info (fd38b198, 4b0a20, 0, 1, facf8570, 4c4860) + 4e0 face4530 _pango_cairo_get_glyph_extents_missing (4b0a20, 10000043, 0, ffbfe570, face764c, 14054) + 18 fad5af80 fallback_engine_shape (4c1d30, 4abaf0, feeba708, 4c, 23bbc4, 10000043) + 94 fad6ec00 pango_shape (4abaf0, 10, 23bbc4, 4c1d30, 0, 22ec0) + 1f4 fad618b4 shape_run (4c3290, ffbfe778, 23bbb8, 4c1d30, feeb8684, 234af8) + 6c fad61a14 process_item (234af8, 4c3290, ffbfe778, 1, 0, 10000000) + 44 fad6213c process_line (234af8, ffbfe778, ffffffff, 23bbb8, fad918d0, 4c3290) + 114 fad62a38 pango_layout_check_lines (ffbfe778, 4abaf0, 234af8, 0, 10, 4abb00) + 3b8 fad60aac pango_layout_get_extents_internal (0, 0, ffbfe920, 0, 234af8, 0) + 13c fad6106c pango_layout_get_pixel_extents (234af8, 0, ffbfe920, 20, 308dc, 0) + 7c fad610cc pango_layout_get_pixel_size (234af8, 2102c8, 2102cc, 18, feeb8684, 49c040) + c fa9baa0c gnome_canvas_text_set_property (578, 14, ffbfebe8, 34, 80, fa9b9e80) + af0 febe4008 g_object_set_valist (2101d0, ffbfec08, ffbfed7c, 1400, 4b11d0, 47598) + 624 fa9c3654 gnome_canvas_item_set_valist (2101d0, 1824c, ffbfed64, 0, 1a024, 8fc80) + 84 fa9c35c0 gnome_canvas_item_set (2101d0, 1824c, 4abb10, 18214, ffffffff, 18224) + 1c 00013264 display_contributors (29800, 2, e0, 29800, 4abb10, 29950) + 22c 00012f4c animate_contributor (1f3590, f300, f30000, f3000000, f3, 12ca0) + 28c fee40f8c g_timeout_dispatch (239448, 12cc0, 1f3590, ff3a2000, 1, 0) + 4c fee3d634 g_main_dispatch (4cb80, 1, 0, feeba408, feeb8684, 4cb88) + 1e4 fee3ec80 g_main_context_dispatch (1, 1, feeba3f4, 2, feeba3f8, 4cb80) + c8 fee3f1a0 g_main_context_iterate (1, 1, 1, 4cb80, 8, 8) + 49c fee3faa4 g_main_loop_run (21e640, 0, 0, 2b690, 21e648, 1) + 3e4 fe98ea28 gtk_main (0, 0, 0, b498, febc5974, 21e640) + d8 00015718 main (1, ffbff2f4, 18400, 18400, 33c58, 67800) + 114 00012860 _start (0, 0, 0, 0, 0, 0) + 108
Created attachment 93683 [details] [review] patch fixing the problem.
2007-08-14 Behdad Esfahbod <behdad@gnome.org> Bug 466755 – pango hangul is crashing in gnome-about because it is failing to retrieve a font. * pango/pangofc-font.c (pango_fc_font_real_get_glyph), (pango_fc_font_kern_glyphs), (pango_fc_font_get_raw_extents): Protect against NULL face. * pango/shape.c (pango_shape): Improve error message by writing out shaping engine type name and the text too.
*** Bug 462405 has been marked as a duplicate of this bug. ***