GNOME Bugzilla – Bug 773024
Mulitiple pipelines stuck at main_loop_run
Last modified: 2016-11-11 11:44:22 UTC
We run many pipelines in different threads more than 50. Once we hit ~30 threads we get this warning: (java:10828): GStreamer-WARNING **: failed to create thread: Error creating thread: Resource temporarily unavailable Once this warning appears g_main_loop_run stuck, pipeline not playing and we got no error indication. We create a new context and a main loop for each thread.
You're probably running out of file descriptors. Try to increase the per-process limit. Each main context has 2 fds, each bus has another one, each thread also, and there might be others for whatever is done in your pipeline. It's generally not a good idea to have a new thread and main context per pipeline.
Hi Sebastian, We have checked ulimit -a and got open files set to 1024, which seams high enough. Do you mean that we should use the same context for all the main loops/piplines? Thanks
Yes, and set a higher fd limit or otherwise confirm that you're actually running out of fds.
Not sure what to do about this. Doesn't seem like a GStreamer bug. Please re-open if there's something specific you wanted fixed in GStreamer, thanks!