After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 794080 - glupload causes gstreamer crash
glupload causes gstreamer crash
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal critical
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-03-05 13:11 UTC by Vavooon
Modified: 2018-11-03 12:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Vaapi debug (26.84 KB, text/plain)
2018-03-05 14:03 UTC, Vavooon
Details
Vaapi and Gl debug (160.12 KB, text/plain)
2018-03-05 14:13 UTC, Vavooon
Details

Description Vavooon 2018-03-05 13:11:24 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.

Thread 140736924555008 (LWP 2656)

  • #0 __memmove_sse2_unaligned_erms
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S line 491
  • #1 memcpy
    at /usr/include/x86_64-linux-gnu/bits/string_fortified.h line 34
  • #2 gst_gl_buffer_upload_cpu_write
    at gstglbuffer.c line 195
  • #3 _gl_buffer_map
    at gstglbuffer.c line 212
  • #4 _map_data_gl
    at gstglbasememory.c line 277

Comment 1 Matthew Waters (ystreet00) 2018-03-05 13:22:49 UTC
Does it work without vaapi?

Could you attach a GST_DEBUG=gl*7,*vaapi*:7,3 log please?
Comment 2 Nicolas Dufresne (ndufresne) 2018-03-05 13:51:36 UTC
Which gst version is this?
Comment 3 Vavooon 2018-03-05 14:03:55 UTC
Created attachment 369338 [details]
Vaapi debug
Comment 4 Matthew Waters (ystreet00) 2018-03-05 14:08:40 UTC
(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
Comment 5 Vavooon 2018-03-05 14:12:48 UTC
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?
Comment 6 Vavooon 2018-03-05 14:13:21 UTC
Created attachment 369341 [details]
Vaapi and Gl debug
Comment 7 Hyunjun Ko 2018-03-06 05:10:23 UTC
@Vavooon, Could you test with vaapipostproc instead of videoconvert?
Comment 8 Vavooon 2018-03-06 09:23:16 UTC
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.
Comment 9 Matthew Waters (ystreet00) 2018-05-05 12:09:47 UTC
I guess this not a bug without vaapipostproc?
Comment 10 Víctor Manuel Jáquez Leal 2018-05-05 13:12:21 UTC
(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...
Comment 11 GStreamer system administrator 2018-11-03 12:03:56 UTC
-- 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.