You are not logged in.

#1 2024-06-20 08:43:53

ironcyborg
Member
Registered: 2014-04-10
Posts: 2

VLC crash under wayland with nvidia driver

On KDE Plasma 6, using thje Wayland display server, whenever I attempt to open a video file in VLC it crashes.

What I get is:

VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[00005f8eec7b05b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005f8eec854240] main playlist: playlist is empty
libEGL warning: egl: failed to create dri2 screen
[0000701eac001f30] glconv_vaapi_x11 gl error: vaDeriveImage: operation failed
[0000701eb0030040] main video output error: video output creation failed
[0000701ed8c17bd0] main decoder error: failed to create video output
libEGL warning: egl: failed to create dri2 screen
Segmentation fault (core dumped)

I tried to understand what's going on. I think the problem could be related to this: under Wayland, if I check with eglinfo, I get that for GBM, Wayland, and Surfaceless platforms, EGL vendor string is NVIDIA. Same thing for Device #0. But I also get that:

X11 platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
EGL driver name: zink

and

Device #1:

EGL device extensions string:
    EGL_EXT_device_drm, EGL_EXT_device_drm_render_node
Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

EGL device extensions string:
    EGL_EXT_device_drm_render_node, EGL_MESA_device_software
Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
EGL driver name: swrast

Instead, if I start an X11 session, VLC opens video files perfectly fine. If I run eglinfo, everything looks more or less the same, except:

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL

Do you have any suggestion? My guess is I should probably be able to use nvidia also on XWayland, but I'm not sure how. Am I on the right track?
Thank you!

Offline

Board footer

Powered by FluxBB