Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VK_ERROR_INCOMPATIBLE_DRIVER in WSL2, can't open GUI apps #341

Open
kiocosta opened this issue Jan 5, 2024 · 5 comments
Open

VK_ERROR_INCOMPATIBLE_DRIVER in WSL2, can't open GUI apps #341

kiocosta opened this issue Jan 5, 2024 · 5 comments

Comments

@kiocosta
Copy link

kiocosta commented Jan 5, 2024

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)
@All-Round-Tinkerer
Copy link

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.

@kiocosta
Copy link
Author

kiocosta commented Jan 10, 2024

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?

@byteframe
Copy link

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?

@kiocosta
Copy link
Author

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

@byteframe
Copy link

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.

hawkeye116477 added a commit to hawkeye116477/waterfox-deb-rpm-arch-AppImage that referenced this issue Jul 20, 2024
hawkeye116477 added a commit to hawkeye116477/waterfox-deb-rpm-arch-AppImage that referenced this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants