Example sinkelement.py assertion failure: 'G_IS_OBJECT (object)' failed
gstreamer1 version: gstreamer1-1.16.2-2.fc32.x86_64
When running the sinkelemement.py example I am getting an assertion failure.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.086683707 787858 0x5624f848b520 INFO python sinkelement.py:35:do_render: timestamp(buffer):CLOCK_TIME_NONE
(gst-launch-1.0:787858): GStreamer-CRITICAL **: 21:15:33.403:
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 0x00007fd5faae4b6f in poll () at /lib64/libc.so.6
#1 0x00007fd5fac2cace in g_main_context_iterate.constprop ()
#2 0x00007fd5fac2ce53 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#3 0x00007fd5fada80c0 in gst_bus_poll () at /lib64/libgstreamer-1.0.so.0
#4 0x00005624f6bc0803 in event_loop ()
#5 0x00005624f6bbf64e in main ()
Spinning. Please run 'gdb gst-launch-1.0 787858' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
For reference fakesink is working:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.000055733
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Edited by Tim-Philipp Müller