ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

VK_ERROR_INCOMPATIBLE_DRIVER in WSL2, can't open GUI apps

Open kiocosta opened this issue 1 year ago • 5 comments

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)

kiocosta avatar Jan 05 '24 16:01 kiocosta

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.

All-Round-Tinkerer avatar Jan 09 '24 08:01 All-Round-Tinkerer

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?

kiocosta avatar Jan 10 '24 14:01 kiocosta

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?

byteframe avatar Jan 10 '24 21:01 byteframe

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

kiocosta avatar Feb 16 '24 01:02 kiocosta

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.

byteframe avatar May 24 '24 02:05 byteframe