GNOME Bugzilla – Bug 664099
0.11 new to use new floating ref annotation
Last modified: 2011-12-12 12:16:35 UTC
Created attachment 201427 [details] Test application I haven't been able to make any python applications work with 0.11 lately. I get errors as seen bellow, talking about stuff not being initialized. The attached test application used to work fine for me 3-4 weeks ago. python gst-gi-test.py Traceback (most recent call last):
+ Trace 229065
src.set_property('num-buffers', 10)
(python:23796): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed (python:23796): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Same old issue of having to set (transfer none) instead of (transfer full) for methods returning a newly created floating object. Find the relevant bug in gobject-introspection and/or pygi and mark this one as a duplicate of the other one.
There's bug #657202 and bug #656205 . It needs to be fixed in pygi.
*** This bug has been marked as a duplicate of bug 657202 ***
Re-opening, because even if the upstream gobject-introspection bug in 657202 is fixed, we still need to do this annotation in GStreamer 0.11
Hope this fixes it (didn't test myself since I'm still on g-i 1.31.0): commit a81abdeee5a761f63c7740c7948e9b38107a7b68 Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Mon Dec 12 12:11:40 2011 +0000 elementfactory: use new 'transfer floating' annotation for gst_element_factory_make() Requires gobject-introspection 1.31.1 (older versions will error out with that). https://bugzilla.gnome.org/show_bug.cgi?id=664099