Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#67054 - [libva] SIGSEGV instead of failing

Attached to Project: Arch Linux
Opened by Benjamin Terrier (bterrier) - Saturday, 20 June 2020, 10:20 GMT
Last edited by freswa (frederik) - Sunday, 21 June 2020, 23:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


I am trying to run Chiaki with VA-API enabled on a PC with an nvidia GPU.
I end up with an error because `av_hwdevice_ctx_create()` failed.
I tried to set LIBVA_DRIVER_NAME=vdpau but then Chiaki crashes with SIGSEGV inside `av_hwdevice_ctx_create()`.
I could also make VLC crash by forcing it to use VA-API.

I was able to build libva-vdpau-driver in debug and see that it SIGSEGV because ctx->native_dpy is NULL, therefore driver_data->x11_dpy is NULL, and finally XDisplayString(driver_data->x11_dpy) crashes (see vdpau_driver.c:188).

I have then rebuilt libva in debug, but could not start Chiaki: chiaki: symbol lookup error: /usr/lib/ undefined symbol: vaSetErrorCallback being owned by ffmpeg, I have rebuilt ffmpeg.

And now, it still does not work but it does not crashes anymore.
Regardless of `LIBVA_DRIVER_NAME=vdpau` being set Chiaki fails at `avcodec_get_hw_config()` and does not even attempts to call `av_hwdevice_ctx_create()` (see videodecoder.cpp:63).

Given that just by rebuilding the packages I went from SIGSEGV to a simple error, it seems that at least these packages need to be rebuilt.

Additional info:
* libva 2.7.1-1
* libva-vdpau-driver 0.7.4-4
* ffmpeg 2:4.2.3-1
* config and/or log files etc.
This task depends upon