[Bug 779642] vaapi: direct download/upload crashes in gallium backends

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Aug 1 20:54:41 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=779642

Tomas Rataj <rataj28 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rataj28 at gmail.com

--- Comment #7 from Tomas Rataj <rataj28 at gmail.com> ---
Hi,

I have the same problem with mesa radeonsi. This one is working:

gst-launch-1.0 videotestsrc is-live=true ! video/x-raw,format=NV12 !
vaapipostproc ! video/x-raw,format=BGRx ! fakesink

This one is not:

gst-launch-1.0 videotestsrc is-live=true ! video/x-raw,format=BGRx !
vaapipostproc ! video/x-raw,format=NV12 ! fakesink

Causing a segfault or following error:

0x705efd0 ERROR          vaapipostproc
gstvaapipostproc.c:810:gst_vaapipostproc_process_vpp:<vaapipostproc0> failed to
apply VPP filters (error 2)

It is indeed caused by direct upload. When I disable direct upload flag it is
working correctly, here:

https://cgit.freedesktop.org/gstreamer/gstreamer-vaapi/tree/gst/vaapi/gstvaapipluginbase.c#n519

At least gstreamer-vaapi is not properly fallback as Julien mentioned. Maybe
adding env variable to be able to disable it until it is implemented in mesa?

Thanks

backtrace:
#0  0x00007fffe837d199 in  ()
#1  0x00007ffff5dac38b in video_orc_pack_BGRA (d1=0x7ffff7fede00 <error: Cannot
access memory at address 0x7ffff7fede00>, s1=0x7fffdc041800 '\377' <repeats 183
times>, n=320) at tmp-orc.c:4653
#2  0x00007ffff5fea696 in convert_hline_generic (p=<optimized out>,
frame=0x7fffd2ffc950, y=<optimized out>) at videotestsrc.c:1289
#3  0x00007ffff5fea348 in videotestsrc_convert_tmpline
(p=p at entry=0x7fffd2ffc840, frame=frame at entry=0x7fffd2ffc950, j=j at entry=22)
    at videotestsrc.c:273
#4  0x00007ffff5feac5e in gst_video_test_src_smpte (v=0x55555592d2a0
[GstVideoTestSrc], pts=<optimized out>, frame=0x7fffd2ffc950)
    at videotestsrc.c:351
#5  0x00007ffff5fe7951 in gst_video_test_src_fill (psrc=0x55555592d2a0
[GstVideoTestSrc], buffer=0x555555a97740)
    at gstvideotestsrc.c:1152
#6  0x00007ffff5b1acff in gst_base_src_default_create (src=0x55555592d2a0
[GstVideoTestSrc], offset=18446744073709551615, size=4096,
buffer=0x7fffd2ffcd20) at gstbasesrc.c:1474
#7  0x00007ffff5b1df6f in gst_base_src_get_range (src=src at entry=0x55555592d2a0
[GstVideoTestSrc], offset=offset at entry=18446744073709551615, length=<optimized
out>, buf=buf at entry=0x7fffd2ffcdf8) at gstbasesrc.c:2453
#8  0x00007ffff5b1f8af in gst_base_src_loop (pad=0x55555592e030 [GstPad]) at
gstbasesrc.c:2729
#9  0x00007ffff7b49aa1 in gst_task_func (task=0x55555593f290 [GstTask]) at
gsttask.c:335
#10 0x00007ffff73abeee in g_thread_pool_thread_proxy (data=<optimized out>) at
././glib/gthreadpool.c:307
#11 0x00007ffff73ab4f5 in g_thread_proxy (data=0x555555942e30) at
././glib/gthread.c:784
#12 0x00007ffff6d17494 in start_thread (arg=0x7fffd2ffd700) at
pthread_create.c:333
#13 0x00007ffff6a59a8f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:97

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list