Open NicsTr opened 7 months ago
The same error comes in Ubuntu 23.10 with output: libGL error: DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '23.2.1-1ubuntu3.1')
Also reported in https://github.com/snapcrafters/alacritty/issues/27
I've found by accident that the command would run with sudo
, and normally in the "system" terminal.
After digging a bit, I found that LIBGL_DRIVERS_PATH
and LIBVA_DRIVERS_PATH
was set to the "snap" path (/snap/alacritty/ ...
), so I just reset it inline when running glxgears
(or any app that needs it).
I'm largely unfamiliar to snap packaging, but I hope it helps to fix this.
I can confirm these environment variables are to blame. By unsetting them or by setting them to the system installation, gui apps (e.g. glxgears) can be launched.
I've added the following to my .zshrc:
export LIBGL_DRIVERS_PATH="/usr/lib/x86_64-linux-gnu/dri"
export LIBVA_DRIVERS_PATH="/usr/lib/x86_64-linux-gnu/dri"
Describe the bug
When launching any application using mesa from alacritty, I get the following error message:
DRI driver not from this Mesa build ('23.2.1-1ubuntu3.1~22.04.2' vs '24.0.5-1ubuntu1')
.When I install alacritty through
cargo install alacritty
everything works as expected.To Reproduce
Steps to reproduce the behavior:
alacritty
from snap (snap install alacritty --classic
)glxinfo
from this terminalExpected behavior
No error should occur.
Environment (please complete the following information):
Additional context
Shell output:
LIBGL_DEBUG output (only if you have graphics related issue):