GNOME Bugzilla – Bug 648531
Segfaults with Gst.Discoverer (Python - GObject-Introspection)
Last modified: 2012-04-23 17:53:06 UTC
Created attachment 186538 [details] Python code to test GstDiscoverer through GObject-Introspection I'm currently trying to use GStreamer in python to obtain info from media (i.e. tag from audio files) and to do this I would use new feature such as GObject-Introspection Unluckly GstDiscoverer seem to be broken due to some type casting error. Running simple test code (attached) in python2.7, this is the result you get: /usr/lib/python2.7/site-packages/gi/types.py:44: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed return info.invoke(*args) Segmentation fault This is the result of running in python3.2: /usr/lib/python3.2/site-packages/gi/types.py:44: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed return info.invoke(*args) /usr/lib/python3.2/site-packages/gi/types.py:44: Warning: g_type_get_qdata: assertion `node != NULL' failed return info.invoke(*args) /usr/lib/python3.2/site-packages/gi/types.py:44: Warning: g_ascii_strncasecmp: assertion `s2 != NULL' failed return info.invoke(*args) Segmentation fault I don't know how is introspection supported in GStreamer, neither I can tell if type casting problems depends on GStreamer or PyGObject. --- gstreamer0.10-base-plugins : 0.10.32-4 py3gobject : 2.28.4-1
This looks more like a bug in g-i/pygobject... Might be related to the fact that the return type is a GstMiniObject subclass and pygobject does not support non-GObject fundamental types yet. Backtrace is this btw:
+ Trace 226884
(In reply to comment #1) > This looks more like a bug in g-i/pygobject... Might be related to the fact > that the return type is a GstMiniObject subclass and pygobject does not support > non-GObject fundamental types yet. Could be, see https://bugzilla.gnome.org/show_bug.cgi?id=631901
Most likely a duplicate of bug 631901, and introspection is not supported with Gstreamer 0.10, only with 0.11/1.0 (where it is reportedly working). So this is either a duplicate or invalid, marking as a dupe for now. *** This bug has been marked as a duplicate of bug 631901 ***