GNOME Bugzilla – Bug 148139
Dia crashes with file output by PostgreSQL Autodoc
Last modified: 2004-12-22 21:47:04 UTC
Open attached file. Crash. The file was generated by PostgreSQL Autodoc. GDB backtrace:
+ Trace 48747
GObject Warnings/Errors (these only show up when running Dia within GDB): (dia:11831): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): assertion `G_IS_OBJECT (object)' failed (dia:11831): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GObject' (dia:11831): GLib-GObject-CRITICAL **: file gobject.c: line 1579 (g_object_unref): assertion `G_IS_OBJECT (object)' failed (dia:11831): GLib-GObject-CRITICAL **: file gobject.c: line 1561 (g_object_ref): assertion `G_IS_OBJECT (object)' failed ** (dia:11831): CRITICAL **: file pango-layout.c: line 4207 (pango_layout_get_iter): assertion `PANGO_IS_LAYOUT (layout)' failed
Created attachment 29768 [details] bzip2-ed .dia that causes the crash This file decompresses to about 765 kB.
Thanks for the example, but could you make your attachments compressed in dia rather than bzip2'ing them? That way they can open in Dia directly.
I couldn't open it in Dia to begin with, so how could I have compressed it with Dia? (although, to be honest, I didn't know that you could in the first place.)
Oh. Right. You did do it with the other example, though. But yeah, gzip-compressed files with extension .dia can be read directly by dia. It used to be the only format, but CVS users complained.
Dia 0.92.2 is able to open, display and save the file. Current cvs still crashes (on both versions of it).
Created attachment 31701 [details] the file from above saved compressed with Dia 0.92.2
The instant crashing is fixed by the first change, but there appear to be more things broken with current cvs. (Anyway closing this bug as fixed ;) 2004-09-19 Hans Breuer <hans@breuer.org> * lib/diarenderer.c : don't try to draw lines which are so much degenerated that their point count became negative, fixes bug #148139 * lib/font.c(layout_cache_equals) : don't crash on nonexisting strings (NULL from g_strdup())