GNOME Bugzilla – Bug 774814
ximagesrc crashes if its display is restarted.
Last modified: 2018-11-03 15:14:41 UTC
We have a pipeline that we wish to keep running as long as possible, even in the face of various failures. In particular, we sometimes need to restart X seervers. If we are currently using ximagesrc to capture from that X server, then restarting the server will crash ximagesrc: [root@chronos ~]# gst-launch-1.0 ximagesrc display-name=:46 ! fakesink sync=true Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock # pkill -fl -9 "Xorg :46" XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":46" after 51 requests (51 known processed) with 0 events remaining. This brings down our entire pipeline, even when we are handling dozens of video outputs and only one or two would be logically affected by the loss of the input. We would far rather have a black screen, possibly accompanied by an internal pipeline message, than a crash if an X server is rebooted.
Marking as an enhancement, don't feel offended, this just has never been supported. While doing do, maybe would be nice to add ximagesink and xvimagesink support.
Nah, not offended. I considered marking it as a Feature, but I feel that anything that causes an uncontrolled shutdown of the pipeline is a bug, whether or not its something that is actively reported. In any case, it would be nice if ximagesink and xvimagesink were also able to survive a server reset, but as we've been moving away from using those elements, the need for us isn't as high.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/328.