GNOME Bugzilla – Bug 628732
GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Last modified: 2010-09-04 11:10:05 UTC
Created attachment 169456 [details] sample spreadsheet new gnumeric open the attached ODF file quit The console shows: GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed I have marked this as a charting issue since the problem appears deep in the charting library, when a hash table is freed, but of course it could as easily be the result of some error when importing the ODF file. This issue seems to be specifically related to the fill image included in the chart in this file.
+ Trace 223544
We need reference overship annotations for go_doc_get_image go_doc_add_image go_doc_image_fetch
The GOStyle should own a reference to the image. This might be an ODF import issue. Morten, I don't understand, overship?
Jean, I think Morten means "ownership". In the ODF import we have: pixbuf = gdk_pixbuf_loader_get_pixbuf (loader); g_object_ref (G_OBJECT (pixbuf)); if (style->fill.image.image != NULL) g_object_set (G_OBJECT (style->fill.image.image), "pixbuf", pixbuf, NULL); else style->fill.image.image = go_image_new_from_pixbuf (pixbuf); so I could see it responsible for a leak (of pixbuf) but not how it could be responsible for this issue. By the way the "else" clause is used in this specific situation.
I would like docs for whether the caller owns a reference to the result.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.