Playing HW accelerated media files crashes player (`The CS has been rejected (-22), but the context isn't robust`)
Description
Playing certain media files with MPV or VLC with VAAPI hardware acceleration crashes players.
Screenshots/video files
The file is too large to share
Log files (for system lockups / game freezes / crashes)
This is printed on the terminal after the crash:
amdgpu: The CS has been rejected (-22), but the context isn't robust.
amdgpu: The process will be terminated.
- Output of
dmesg
The last bit is of importance I think:
288.683987] ath: doing EEPROM country->regdmn map search
[ 288.683989] ath: country maps to regdmn code: 0x3a
[ 288.683992] ath: Country alpha2 being used: US
[ 288.683995] ath: Regpair used: 0x3a
[ 288.683997] ath: regdomain 0x8348 dynamically updated by country element
[ 288.833743] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[ 288.834160] wlp3s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 34:0a:33:8c:b4:35
[ 364.089755] [drm:amdgpu_uvd_cs_pass2 [amdgpu]] *ERROR* buffer (518) to small (4280320 / 4337248)!
[ 364.488707] show_signal_msg: 63 callbacks suppressed
Steps to reproduce
- Play some files with VAAPI hardware acceleration
System information
Please post inxi -GSC -xx
output (fenced with triple backticks) OR fill information below manually
System:
Host: arch Kernel: 6.2.10-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 12.2.1 Desktop: GNOME v: 44.0 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM
Distro: Arch Linux
CPU:
Info: dual core model: AMD E2-9000 RADEON R2 4 COMPUTE CORES 2C+2G bits: 64
type: MCP arch: Excavator rev: 0 cache: L1: 192 KiB L2: 2 MiB
Speed (MHz): avg: 1969 high: 2124 min/max: 1200/1800 boost: enabled cores:
1: 1815 2: 2124 bogomips: 7189
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Stoney [Radeon R2/R3/R4/R5 Graphics]
vendor: Acer Incorporated ALI driver: amdgpu v: kernel arch: GCN-3 ports:
active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 00:01.0 chip-ID: 1002:98e4
Device-2: Quanta VGA WebCam type: USB driver: uvcvideo bus-ID: 1-1.4:6
chip-ID: 0408:a031
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
dri: radeonsi gpu: amdgpu display-ID: 0
Monitor-1: eDP-1 model: ChiMei InnoLux 0x15db res: 1366x768 dpi: 101
diag: 394mm (15.5")
API: OpenGL v: 4.5 Mesa 22.3.6 renderer: AMD Radeon R2 Graphics (stoney
LLVM 15.0.7 DRM 3.49 6.2.10-arch1-1) direct-render: Yes
If applicable
N/A
Regression
Right now I'm on mesa 23.0.2, 22.3.4 is the furthest (due to a clang rebuild packages beyond that aren't compatible) I could downgrade to and the issue happens with that version as well.
API captures (if applicable, optional)
N/A
Further information (optional)
vainfo
Trying display: wayland
vainfo: VA-API version: 1.18 (libva 2.17.1)
vainfo: Driver version: Mesa Gallium driver 23.0.2 for AMD Radeon R2 Graphics (stoney, LLVM 15.0.7, DRM 3.49, 6.2.10-arch1-1)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
The file info:
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)```