Crash when trying to stop pipeline containing encodebin
Sebastian Dröge
sebastian at centricular.com
Wed May 11 06:09:12 UTC 2016
On Mi, 2016-05-11 at 02:07 -0400, Michael Guinzbourg wrote:
> I've set GST_DEBUG to "encodebin:6". I've got all kinds of all good
> info during encodebin initialization (I will copy it below my
> report). All the debug messages were posted before pipeline started
> to run and there was absolutely nothing until the sudden crash at the
> bold line in my code below. The piece of code that produces the crash
> is here (in the bus callback):
>
> case GST_MESSAGE_EOS:
> g_print("EOS received on OBJ NAME
> %s\n",GST_OBJECT_NAME(msg->src));
> gst_element_set_state (pipeline, GST_STATE_READY);
> gst_element_set_state (pipeline,
> GST_STATE_PLAYING);
> break;
>
> If I change my encoding to H264 - this code runs normally and restart
> the pipeline without any problem.
> Below is the debug output - there's nothing at all after the pipeline
> starts running.
>
> Again, if I replace gst_element_set_state (pipeline,
> GST_STATE_READY); line with gst_element_set_state (<element_name>,
> GST_STATE_READY); where <element_name> is any element except for
> encodebin then gstreamer doesn't crash. It only crashes when I
> command the pipeline or encodebin to stop. It looks to me that
> gstreamer crashes when I try to bring encodebin to the stopped state,
> which is something to do with inability to sync the encodebin clock
> with the rest of the pipeline.
> Below is the copy of the debug output.
Can you get a backtrace (of all threads) of the crash with gdb?
It's a bit curious that you don't get any further debug output. Can you
also share your code, or simplified code that reproduces the problem?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160511/590e97f3/attachment-0001.sig>
More information about the gstreamer-devel
mailing list