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

ggez does not work on WSL2 #1151

Open
wk1093 opened this issue Dec 14, 2022 · 2 comments
Open

ggez does not work on WSL2 #1151

wk1093 opened this issue Dec 14, 2022 · 2 comments

Comments

@wk1093
Copy link

wk1093 commented Dec 14, 2022

Describe the bug
I am attempting to make a cross-platform application on my windows computer. I can cargo run in cmd.exe, and the window opens.
When I cargo run in my Ubuntu terminal I get this error:
WARNING: lavapipe is not a conformant vulkan implementation, testing use only. and the app crashes

If I export VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json
then the program will run, but it is glitchy and shows this message:
Failed to initialize graphics, trying secondary backends.. Please mention this if you encounter any bugs!

To Reproduce
Run a ggez application in WSL2.

Expected behavior
A window should open, and stay open.

Hardware and Software:

  • ggez version: 0.8.1
  • OS: Windows 10 With Ubuntu WSL2
  • Graphics card: NVidia RTX 3070
@qwitwa
Copy link
Contributor

qwitwa commented Dec 15, 2022

Perhaps relevant, nannou-org/nannou#766

@PSteinhaus
Copy link
Member

Do any of the other backends work out for you?
The suggestion that was given in the mentioned issue of nannou of using OpenGL ES as a backend might not be very actionable, as ggez depends on somewhat more than what OpenGL ES can offer (higher limits, or something else, I'm not sure right now). The next best thing might be the Gl backend I'd guess.

If you happen to try this (using the latest rust compiler) then please make sure to use the devel branch, as there have been issues with 0.8.1 and 0.9.0-rc0 with the latest rustc versions: #1185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants