GNOME Bugzilla – Bug 144212
dia crashes when printing
Last modified: 2005-12-27 19:25:10 UTC
(probably specific to my system) 1. create a new diagram with a Text-Object with font=Helvetica 2. print diagram or export to "eps using pango fonts" Program received signal SIGSEGV, Segmentation fault.
+ Trace 47116
Thread 1024 (LWP 6263)
I guess FT_Get_Glyph fails for Helvetica, but then why does Helvetica show up in the font selection dialog? here is my sample dia file: <?xml version="1.0" encoding="UTF-8"?> <dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/"> <dia:diagramdata> <dia:attribute name="background"> <dia:color val="#ffffff"/> </dia:attribute> <dia:attribute name="pagebreak"> <dia:color val="#000099"/> </dia:attribute> <dia:attribute name="paper"> <dia:composite type="paper"> <dia:attribute name="name"> <dia:string>#A4#</dia:string> </dia:attribute> <dia:attribute name="tmargin"> <dia:real val="2.8222"/> </dia:attribute> <dia:attribute name="bmargin"> <dia:real val="2.8222"/> </dia:attribute> <dia:attribute name="lmargin"> <dia:real val="2.8222"/> </dia:attribute> <dia:attribute name="rmargin"> <dia:real val="2.8222"/> </dia:attribute> <dia:attribute name="is_portrait"> <dia:boolean val="true"/> </dia:attribute> <dia:attribute name="scaling"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="fitto"> <dia:boolean val="false"/> </dia:attribute> </dia:composite> </dia:attribute> <dia:attribute name="grid"> <dia:composite type="grid"> <dia:attribute name="width_x"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="width_y"> <dia:real val="1"/> </dia:attribute> <dia:attribute name="visible_x"> <dia:int val="1"/> </dia:attribute> <dia:attribute name="visible_y"> <dia:int val="1"/> </dia:attribute> <dia:composite type="color"/> </dia:composite> </dia:attribute> <dia:attribute name="color"> <dia:color val="#d8e5e5"/> </dia:attribute> <dia:attribute name="guides"> <dia:composite type="guides"> <dia:attribute name="hguides"/> <dia:attribute name="vguides"/> </dia:composite> </dia:attribute> </dia:diagramdata> <dia:layer name="Background" visible="true"> <dia:object type="Standard - Text" version="0" id="O0"> <dia:attribute name="obj_pos"> <dia:point val="5.4,6.4"/> </dia:attribute> <dia:attribute name="obj_bb"> <dia:rectangle val="5.4,5.78;6.37,6.84"/> </dia:attribute> <dia:attribute name="text"> <dia:composite type="text"> <dia:attribute name="string"> <dia:string>#test#</dia:string> </dia:attribute> <dia:attribute name="font"> <dia:font family="helvetica" style="0" name="Courier"/> </dia:attribute> <dia:attribute name="height"> <dia:real val="0.8"/> </dia:attribute> <dia:attribute name="pos"> <dia:point val="5.4,6.4"/> </dia:attribute> <dia:attribute name="color"> <dia:color val="#000000"/> </dia:attribute> <dia:attribute name="alignment"> <dia:enum val="0"/> </dia:attribute> </dia:composite> </dia:attribute> </dia:object> </dia:layer> </dia:diagram>
Interesting. I'm guessing that something is broek with freetype or that font, as the crash happens internally in freetype when it's looking at its own datastructures.
should I report a bug to freetype?
[btw: I could easily reproduce with a probably different freetype version] 2005-12-27 Hans Breuer <hans@breuer.org> * app/diapsft2renderer.c(draw_bezier_outline) : only call FT_Outline_Decompose() when FT_GLYPH_FORMAT_OUTLINE. Prefers no text output over crashing for bug #144212