mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.76k stars 2.84k forks source link

Video won't show with waylandvk, segfaults with x11vk #14204

Closed DemonicSavage closed 1 month ago

DemonicSavage commented 1 month ago

mpv Information

mpv v0.38.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Apr 18 2024 06:31:17
libplacebo version: v6.338.2
FFmpeg version: n6.1.1
FFmpeg library versions:
   libavutil       58.29.100
   libavcodec      60.31.102
   libavformat     60.16.100
   libswscale      7.5.100
   libavfilter     9.12.100
   libswresample   4.12.100

Other Information

Reproduction Steps

mpv --no-config --vo=gpu-next --gpu-context=x11vk [FILE] mpv --no-config --vo=gpu-next --gpu-context=waylandvk [FILE]

Expected Behavior

File plays normally

Actual Behavior

With x11vk, there is a segfault. With waylandvk, the file plays, but shows no video (or even the mpv window)

Log File

Wayland: https://pastebin.com/rPC9VhH6 X11: https://pastebin.com/QwqZUATf

X11 segfault backtrace: https://pastebin.com/k2ipvy7r

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

DemonicSavage commented 1 month ago

An update: After a reboot, waylandvk also segfaults. New logs: https://pastebin.com/yx16r835 Backtrace: https://pastebin.com/WtCcRS5f

llyyr commented 1 month ago

The segfaults are in /usr/lib/libshaderc_shared.so.1, seems like a broken system. You also don't have debug symbols for shaderc so hard to say anything concrete

DemonicSavage commented 1 month ago

It does seem libshaderc was the culprit - apparently I was using a weird AUR version of it. Using the official shaderc from the [extra] repo made it work.