You are not logged in.

#1 2023-12-25 10:30:10

azmeuk
Member
Registered: 2012-06-30
Posts: 27
Website

VLC segfault with GNOME Wayland and nvidia proprietary drivers

I used to run GNOME (45) on X.org with proprietary nvidia drivers (545.29.06-7). A few days back I made the switch to wayland, following the instructions on the wiki (basically early module loading, and GDM udev rule overwriting). For the moment everything is fine, except that VLC crashes when it tries to play a video:

$ vlc whatever.mkv
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[000055d88f29e430] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[000055d88f372010] main audio output error: too low audio sample frequency (0)
[00007f8120cd6de0] main decoder error: failed to create audio output
[000055d88f372010] vlcpulse audio output error: digital pass-through stream connection failure: Input/Output error
[000055d88f372010] main audio output error: module not functional
[00007f8120cd6de0] main decoder error: failed to create audio output
libEGL warning: egl: failed to create dri2 screen
zsh: segmentation fault (core dumped)  env LANG=C vlc

A few clues:
- I tried all the hardware acceleration options in VLC, including disabling it, but this has not solved the crash.
- I tried to install libva-vdpau-driver or libva-nvidia-driver, but the behavior is the same for both.
- Running `vlc -V x11` works.

Not sure where to search now.
Any ideas?

Last edited by azmeuk (2023-12-25 10:37:43)

Offline

#2 2023-12-25 15:04:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,582

Re: VLC segfault with GNOME Wayland and nvidia proprietary drivers

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Do you?

libEGL warning: egl: failed to create dri2 screen
eglinfo -B

Not sure where to search now.

zsh: segmentation fault (core dumped)  env LANG=C vlc

https://wiki.archlinux.org/title/Core_d … _core_dump

Offline

#3 2024-01-02 20:15:26

azmeuk
Member
Registered: 2012-06-30
Posts: 27
Website

Re: VLC segfault with GNOME Wayland and nvidia proprietary drivers

Do you?

It behaves the same way and displays the very same message when running with:

env QT_QPA_PLATFORM=wayland vlc video.mkv

With vlc-git, this is better though even if there are glitches (the video is played besides the UI).

$ eglinfo -B
GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 545.29.06
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 545.29.06
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 545.29.06
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 545.29.06
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 545.29.06
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 545.29.06
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

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
zsh: segmentation fault (core dumped)  eglinfo -B

Offline

#4 2024-01-02 20:41:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,582

Re: VLC segfault with GNOME Wayland and nvidia proprietary drivers

eglinfo might just crash because of the mesa 23.3.2-1 swrast bug, but that does not explain the original vlc segfault (your OP predates that mesa release)
=> Make sure to be at 23.3.2-2

Does vlc-git also misplace the video of you don't enforce native wayland support?

Offline

Board footer

Powered by FluxBB