GNOME Bugzilla – Bug 603004
Exporting a document to png without --size crashes dia
Last modified: 2009-11-28 21:27:51 UTC
Created attachment 148506 [details] backtrace OS: Fedora 12 , fully updated. Dia version: 0.97 Exporting a file to png without --size as: dia --export=image.png --filter=png --nosplash image.dia will result in a crash, the gdb crash log is attached. However if i use --size as: dia --export=image.png --filter=png --nosplash --size=100x100 image.dia it seems to work. Distro bug: https://bugzilla.redhat.com/show_bug.cgi?id=541319 Note: I am the Fedora maintainer for dia. It seems this problem was fixed in 0.91 and hence looks like a regression.
Created attachment 148552 [details] [review] avoid dialog creation on non-interactive use The so called regression bug #81367 is only 7 years old and at first glance has nothing to do with this crash. This one results from unconditional use of GUI code in plug-ins/libart/export_png.c(export_png) - the attached patch should fix it, but is not yet tested on X11.
This works for me, Thanks. Will this be committed to the latest tree?
Yes. And to dia-0-97: commit 5e649eb8976140cc7decd7af95c77aeb3418b960 Author: Hans Breuer <hans@breuer.org> Date: Fri Nov 27 22:47:45 2009 +0100 Bug 603004 - Exporting a document to png without --size crashes Only show the size dialog when running interactive. Introduces a dependencies to app/ but crashing is worse. (cherry picked from commit 93f1efad1e0336da83bd3789a0c8e505b0daac6c)