ArchWSL
ArchWSL copied to clipboard
VK_ERROR_INCOMPATIBLE_DRIVER in WSL2, can't open GUI apps
Describe the issue I can't open GUI apps such as Chrome, Cypress or VSCode through ArchWSL. This is the error I get when I try to open Cypress:
$ cypress open --env testEnvironment=dev,FAIL_FAST_PLUGIN=false --config-file cypress.config.opp.js
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
glx: failed to create drisw screen
failed to load driver: zink
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Chrome and VSCode do not open and don't return any message.
Firefox WORKS in ArchWSL. Ubuntu works fine in my WSL and I can open Chrome and VSCode with Ubuntu.
To Reproduce Try to open a GUI application such as Chrome, Chromium or VSCode.
Expected behavior The program should open as usual.
Enviroment:
- Windows build number: Microsoft Windows [Version 10.0.19044.3803]
- Security Software: [e.g. ESET Internet Security]
- WSL version: WSL2
- ArchWSL version: 5.15.133.1-microsoft-standard-WSL2
- ArchWSL Installer type: zip
- Launcher version: wsldl2, version 22020900 (amd64)
Hi, had the same issue, I solved it with:
export LIBGL_ALWAYS_INDIRECT=1
in the shell.
Add this to your .bashrc file to have it done every time bash is launched.
Hi, had the same issue, I solved it with:
export LIBGL_ALWAYS_INDIRECT=1
in the shell.Add this to your .bashrc file to have it done every time bash is launched.
it works! Thank you! Btw, could you tell me how you found out this would solve the issue?
After updating my Arch system I wasn't able to get to the gui again, I had to run wsl --update and was able to connect again, but the gui performance is much worse, and I get the zink errors. I was already using LIBGL_ALWAYS_INDIRECT though. Is there a xorg driver package I should be installing?
After updating my Arch system I wasn't able to get to the gui again, I had to run wsl --update and was able to connect again, but the gui performance is much worse, and I get the zink errors. I was already using LIBGL_ALWAYS_INDIRECT though. Is there a xorg driver package I should be installing?
Although I dont know the answer for your question, I'd suggest having a look at here if you havent already. I'm sorry I don't know more than what's been written here already
I was able to get my archlinux xfce4 working snappy again by putting
export LIBGL_ALWAYS_INDIRECT=0 export GALLIUM_DRIVER=llvmpipe
into my relevant starter script.