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 144212 - dia crashes when printing
dia crashes when printing
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.93
Other Linux
: Normal normal
: 0.95
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-12 15:02 UTC by fnatter
Modified: 2005-12-27 19:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description fnatter 2004-06-12 15:02:05 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.

Thread 1024 (LWP 6263)

  • #0 FT_Outline_Decompose
    at /home/felix/newsrc/freetype-2.1.8/src/base/ftoutln.c line 86
  • #1 draw_bezier_outline
    at diapsft2renderer.c line 310
  • #2 draw_string
    at diapsft2renderer.c line 258
  • #3 draw_text
    at diarenderer.c line 395
  • #4 text_draw
    at text.c line 421
  • #5 textobj_draw
    at textobj.c line 205
  • #6 draw_object
    at diarenderer.c line 177
  • #7 normal_render
    at diagramdata.c line 423
  • #8 layer_render
    at diagramdata.c line 462
  • #9 data_render
    at diagramdata.c line 412
  • #10 print_page
    at paginate_psprint.c line 115
  • #11 paginate_psprint
    at paginate_psprint.c line 169
  • #12 diagram_print_ps
    at paginate_psprint.c line 375
  • #13 file_print_callback
    at commands.c line 115
  • #14 gtk_item_factory_callback_marshal
    at gtkitemfactory.c line 230
  • #15 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #16 g_closure_invoke
    at gclosure.c line 437
  • #17 signal_emit_unlocked_R
    at gsignal.c line 2822
  • #18 g_signal_emit_valist
    at gsignal.c line 2554
  • #19 g_signal_emit
    at gsignal.c line 2612
  • #20 gtk_widget_activate
    at gtkwidget.c line 3301
  • #21 gtk_menu_shell_activate_item
    at gtkmenushell.c line 900
  • #22 gtk_menu_shell_button_release
    at gtkmenushell.c line 527
  • #23 gtk_menu_button_release
    at gtkmenu.c line 1980
  • #24 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 82
  • #25 g_type_class_meta_marshal
    at gclosure.c line 514
  • #26 g_closure_invoke
    at gclosure.c line 437
  • #27 signal_emit_unlocked_R
    at gsignal.c line 2860
  • #28 g_signal_emit_valist
    at gsignal.c line 2564
  • #29 g_signal_emit
    at gsignal.c line 2612
  • #30 gtk_widget_event_internal
  • #31 gtk_widget_event
    at gtkwidget.c line 3075
  • #32 gtk_propagate_event
    at gtkmain.c line 2254
  • #33 gtk_main_do_event
    at gtkmain.c line 1503
  • #34 gdk_event_dispatch
    at gdkevents-x11.c line 2064
  • #35 g_main_dispatch
    at gmain.c line 1751
  • #36 g_main_context_dispatch
    at gmain.c line 2299
  • #37 g_main_context_iterate
    at gmain.c line 2380
  • #38 g_main_loop_run
    at gmain.c line 2600
  • #39 gtk_main
    at gtkmain.c line 1093
  • #40 main
    at main.c line 45

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>
Comment 1 Lars Clausen 2004-06-12 19:17:37 UTC
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. 
Comment 2 fnatter 2004-06-15 08:21:08 UTC
should I report a bug to freetype?
Comment 3 Hans Breuer 2005-12-27 19:25:10 UTC
[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