Getting SIGSEGV with the sinkelement.py example

Anthony Alba ascanio.alba7 at gmail.com
Wed Jul 22 13:30:31 UTC 2020


gstreamer: 1.16 on Fedora 32

Problem: Getting a SIGSEGV when running the demo python element
sinkelement .py from

https://gitlab.freedesktop.org/gstreamer/gst-python/-/blob/master/examples/plugins/python/sinkelement.py

GST_DEBUG=python:4 gst-launch-1.0 fakesrc num-buffers=10 ! mysink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.086013672 788791 0x55f1a5123120 INFO                  python
sinkelement.py:43:do_render: timestamp(buffer):CLOCK_TIME_NONE

(gst-launch-1.0:788791): GStreamer-CRITICAL **: 21:28:24.850:
Trying to dispose element sinkelement+mysink0, but it is in PLAYING
instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

sys:1: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
Caught SIGSEGV
#0  0x00007fb2f369eb6f in poll () at /lib64/libc.so.6
#1  0x00007fb2f37e6ace in g_main_context_iterate.constprop ()
#2  0x00007fb2f37e6e53 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3  0x00007fb2f39620c0 in gst_bus_poll () at /lib64/libgstreamer-1.0.so.0
#4  0x000055f1a4ada803 in event_loop ()
#5  0x000055f1a4ad964e in main ()
Spinning.  Please run 'gdb gst-launch-1.0 788791' to continue
debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:05.740798767
Setting pipeline to PAUSED ...
sys:1: Warning: g_value_set_object: assertion 'G_IS_OBJECT (v_object)' failed

(gst-launch-1.0:788791): GStreamer-CRITICAL **: 21:28:30.591:
gst_object_unref: assertion '((GObject *) object)->ref_count > 0'
failed
Segmentation fault (core dumped)

Filed here: https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/39

Cheers

Anthony Alba


More information about the gstreamer-devel mailing list