Error while unref the pipeline

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while unref the pipeline

张若
Hi!

I have a pipeline:
imxv4l2src->capsfilter->queue1->imxenc(h264)->parse-------\__tsmux___filesink
                                                  appsrc(klv)->queue2------/
When I am going to stop this pipeline, I stop the klv data input first, then set the pipeline to NULL status. For this two steps, there is no problem. However, when I start to unref this pipeline, it shows errors (each time may be different), sometimes are something related to core dump.

I don't know what is the reason. What I thought is the pipeline is already set to NULL, it should be no problem to unref this pipeline.

So I need your help! Thanks in advance!

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error while unref the pipeline

张若
Mostly, it will show:

GLib (gthread-posix.c): Unexpected error from C library during 'pthread_mutex_lock': Invalid argument.  Aborting.
Aborted (core dumped)

2016-11-23 19:37 GMT+01:00 张若 <[hidden email]>:
Hi!

I have a pipeline:
imxv4l2src->capsfilter->queue1->imxenc(h264)->parse-------\__tsmux___filesink
                                                  appsrc(klv)->queue2------/
When I am going to stop this pipeline, I stop the klv data input first, then set the pipeline to NULL status. For this two steps, there is no problem. However, when I start to unref this pipeline, it shows errors (each time may be different), sometimes are something related to core dump.

I don't know what is the reason. What I thought is the pipeline is already set to NULL, it should be no problem to unref this pipeline.

So I need your help! Thanks in advance!


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error while unref the pipeline

Sebastian Dröge-3
On Thu, 2016-11-24 at 11:07 +0100, 张若 wrote:
> Mostly, it will show:
>
> GLib (gthread-posix.c): Unexpected error from C library during
> 'pthread_mutex_lock': Invalid argument.  Aborting.
> Aborted (core dumped)

Get a backtrace with gdb (make sure to have debug symbols). This means
something is locking an invalid (probably freed?) mutex somewhere.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment