GNOME Bugzilla – Bug 674574
playbin about-to-finish signal Segfault with pygi
Last modified: 2012-12-17 11:43:00 UTC
Created attachment 212550 [details] The sound used to reproduce the bug Running this code http://paste.pocoo.org/show/585630/ results in this crash http://paste.pocoo.org/show/585628/ after the sound has been played. python-gst 0.10.22
Thanks!Thanks for taking the time to report this. Unfortunately, that stacktrace misses debug symbols for glib2 and gstreamer. Please install them first and paste an updated stacktrace as a comment in this bug report. See http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
I can do that but maybe you can reproduce the crash yourself so I don't have to go through all the compilation hassle?
Here you go on Fedora16: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb70ffb40 (LWP 3301)] 0x44d05189 in PyObject_Call (func=<function at remote 0xb7c4dfb4>, arg=(<__main__.GstPlayBin2 at remote 0xb7c61d24>,), kw=0x0) at /usr/src/debug/Python-2.7.2/Objects/abstract.c:2527 2527 if (Py_EnterRecursiveCall(" while calling a Python object")) (gdb) thread apply all bt
+ Trace 230121
Thread 3 (Thread 0xb70ffb40 (LWP 3301))
The paste site you used has shut down, could you attach the files here or use a different service?
André has already posted a much better traceback for the same bug.
I was looking for the code that you also pasted there.
Right, here you go from gi.repository import Gst Gst.init(None) def on_about_to_finish(playbin): pass playbin = Gst.ElementFactory.make('playbin2', 'playbin') playbin.set_property('uri', 'file:///jonas/stuff/noise.ogg') playbin.set_state(Gst.State.PLAYING) playbin.connect('about-to-finish', on_about_to_finish) # ausprobieren mit audio-sinks und dann bugreport filen import time while 1: time.sleep(.1)
> from gi.repository import Gst Not a gst-python bug then. Just to be sure, py-gi will never work right with GStreamer 0.10.x. The crash is also reproducable with GStreamer 0.11/1.0 though. Don't see anything wrong with our signal registration, so I would suspect a pygobject bug.
Closing this bug now, gst-python is only an extension module to pygi now and this bug doesn't make much sense anymore in this context.