[pygtk] pango crash
Jan Martinek
honza at dp.fce.vutbr.cz
Fri Aug 25 01:20:15 WST 2006
Hello,
I tried to find dimensions of rendered text and found this strange
behaviour:
import pango
c = pango.Context()
l = pango.Layout(c)
fd = pango.FontDescription()
l.set_font_description(fd)
l.set_text('crash')
l.get_pixel_size()
crashes with Segmentation Fault:
__main__:1: PangoWarning: pango_font_map_load_fontset: assertion `fontmap !=
NULL' failed
__main__:1: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)'
failed
__main__:1: Warning: g_object_set_qdata_full: assertion `G_IS_OBJECT
(object)' failed
__main__:1: PangoWarning: pango_font_map_get_shape_engine_type: assertion
`PANGO_IS_FONT_MAP (fontmap)' failed
__main__:1: Warning: g_quark_from_string: assertion `string != NULL' failed
Segmentation fault
Yes, I probably do something wrong but it should not crash this way, right?
--
Jan Martinek
More information about the pygtk
mailing list