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 170972 - GLib's errors on a convertion from .dia to .png
GLib's errors on a convertion from .dia to .png
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
CVS head
Other All
: High critical
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-20 09:18 UTC by crux
Modified: 2005-03-20 22:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description crux 2005-03-20 09:18:10 UTC
Steps to reproduce:
1. 
2. 
3. 


Stack trace:
$ dia -e file.png file.dia
idmap.dia --> idmap.png
(dia:9926): GLib-GObject-WARNING **: invalid cast from
`-g-type-private--GTypeFlags' to `GObject'
(dia:9926): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
(object)' failed


This patch removes errors:

--- dia/app/app_procs.c 2005-03-20 12:08:30 +0300
+++ dia-new/app/app_procs.c     2005-03-20 12:22:46 +0300
@@ -240,6 +240,7 @@
   }

   diagdata = g_object_new (DIA_TYPE_DIAGRAM_DATA, NULL);
+  g_object_ref(diagdata);

   if (!inf->import_func(infname,diagdata,inf->user_data)) {
     g_error(_("%s error: need valid input file %s\n"),


Other information:
Comment 1 Lars Clausen 2005-03-20 22:36:07 UTC
Indeed.  Thanks for the patch, it is now applied.