Sway + xdg-open ... libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

Hello,

I’m run on Fedora 37 + Sway (my dotfiles).

I have this error:

$ xdg-open https://getfedora.org/
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[37:37:0304/161142.686238:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[37:37:0304/161142.708875:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[37:37:0304/161142.718322:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
^C
[2:104:0304/161142.996091:FATAL:bus.cc(1226)] D-Bus connection was disconnected. Aborting.
[2:14:0304/161142.996122:FATAL:bus.cc(1226)] D-Bus connection was disconnected. Aborting.
[2:23:0304/161142.996290:FATAL:bus.cc(1226)] D-Bus connection was disconnected. Aborting.
[2:28:0304/161142.996371:FATAL:bus.cc(1226)] D-Bus connection was disconnected. Aborting.
[0304/161142.996268:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

Do you know why? How can I fix it? What is my error?

Best regards,
Stéphane


$ neofetch --stdout
stephane@stephane-p14s
----------------------
OS: Fedora Linux 37 (Workstation Edition) x86_64
Host: 21A0CTO1WW ThinkPad P14s Gen 2a
Kernel: 6.1.13-200.fc37.x86_64
Uptime: 3 days, 17 hours, 57 mins
Packages: 3180 (rpm), 46 (flatpak)
Shell: zsh 5.9
Resolution: 1920x1080
WM: sway
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: tmux
CPU: AMD Ryzen 5 PRO 5650U with Radeon Graphics (12) @ 2.300GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series
Memory: 7808MiB / 43966MiB

I assume this is chromium-based browser.
try this environment:

LIBVA_DRIVER_NAME=radeonsi xdg-open https://getfedora.org

(Chromium needs more tweaks to get hardware acceleration)

Also, please post output for

$ vainfo

1 Like

I’m having a similar problem with Chrome-based Vivaldi, so I tried this. It works without producing the usual error, provided the browser is already running. If it isn’t, I get

[chris@fedora]$ [12989:12989:0410/230029.753348:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[13037:13037:0410/230030.719582:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[13060:13060:0410/230031.394270:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

[chris@fedora ~]$ vainfo
bash: vainfo: command not found...
Similar command is: 'avinfo'
[chris@fedora ~]$ avinfo
avinfo - Audio/Video Info Tool ver 5.66
Usage:
	avinfo [options] <remote address>
Options:
	-h		Display help
	-i		Specify source interface

Although these errors look serious, starting Vivaldi from a terminal causes the same errors, so I’m going to assume they are harmless and ignore them.

You are missing vainfo. Please install it using sudo dnf install /usr/bin/vainfo and try running it again. The output should confirm my guess that you’re missing mesa-va-drivers or mesa-va-drivers-freeworld from RPM Fusion.