GNOME Bugzilla – Bug 794080
glupload causes gstreamer crash
Last modified: 2018-11-03 12:03:56 UTC
In some cases gst-launch crashes when I'm trying to display video without X11 using kmssink or glimagesink. Local video plays well (pipeline is gst-launch-1.0 filesrc location=bbb_sunflower_1080p_30fps_normal.mp4 ! decodebin ! glupload ! glimagesink ) however, when I'm trying to play RTSP stream using gst-launch-1.0 udpsrc port=9001 ! application/x-rtp, encoding-name=H264 ! rtph264depay ! h264parse ! vaapih264dec low-latency=true ! videoconvert ! glupload ! glimagesink it fails with following message: Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayGBM\)\ gldisplaygbm0"; Got context from element 'vaapidecode_h264-0': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm1"; Setting pipeline to PLAYING ... New clock: GstSystemClock Redistribute latency... Caught SIGSEGV And here's the stack: Thread 5 "gstglcontext" received signal SIGSEGV, Segmentation fault.
+ Trace 238456
Thread 140736924555008 (LWP 2656)
Does it work without vaapi? Could you attach a GST_DEBUG=gl*7,*vaapi*:7,3 log please?
Which gst version is this?
Created attachment 369338 [details] Vaapi debug
(In reply to Matthew Waters (ystreet00) from comment #1) > GST_DEBUG=gl*7,*vaapi*:7,3 Oops, that's missing a colon and should be: GST_DEBUG=gl*:7,*vaapi*:7,3
The issue happens on master. Indeed, it works with avdec gst-launch-1.0 rtspsrc location=rtsp://10.42.0.236:9001/stream latency=100 ! rtph264depay ! h264parse ! avdec_h264 ! glupload ! glimagesink sync=false For some reason nothing is shown when I use it in pair with qmlglsink, but I believe I should create another report when we deal with this one, shouldn't I?
Created attachment 369341 [details] Vaapi and Gl debug
@Vavooon, Could you test with vaapipostproc instead of videoconvert?
Yes, it does work. BTW I forgot to mention that such pipelines work well in X11 mode (output to glimagesink and vaapisink) on the same hardware.
I guess this not a bug without vaapipostproc?
(In reply to Matthew Waters (ystreet00) from comment #9) > I guess this not a bug without vaapipostproc? AFAIU, the pipeline works replacing videoconvert with vaapipostproc. Perhaps it is related with bug #794574 dunno...
-- 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-base/issues/423.