-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Panic in wgpu when no adapters are available #36
Comments
same error for the wgpu-rs default example and the gfx-rs with vulkan, but gfx-rs with gl (opengl) works fine. So it seems the problem is that currently the wrong (vulkan) backend is chosen? I need to go out now, I can add more backtraces later or check if I just need to install these deps from: https://github.com/gfx-rs/gfx/blob/master/info/getting_started.md#vulkan-dependencies
|
Sure, no worries. This is really helpful info, so far. If the problem does get resolved by installing Vulkan dependencies, that might be a reasonable workaround for now. But I'm considering to option of surfacing this to the They recently announced that For now I'm going to label this as an upstream bug. When you get a chance, let me know how that testing goes. |
We don't support GL at the moment. So if your Linux system can't initialize Vulkan, it's not supported yet. Do you expect a nicer error message/handling? |
Leaving this here as a reminder for myself: If |
So I installed all the stuff from the gfx-getting started link and also from https://wiki.archlinux.org/index.php/Vulkan for my graphics card and I now get a slightly different error where it seems that my graphic card is too old. Rest of the error message is still the same 🤔 Not sure what else I can try :-D
|
Maybe try updating libdrm.so? Maybe that will need a kernel update too. |
This is all very much outside of my zone of familiarity. If your machine cannot do Vulkan, the best I can do on my end is request an adapter that supports OpenGL. We'll just have to see how OpenGL support improves in |
@caemor try some basic Vulkan demos, like |
Hi 👋 I ran into the same issue on my Ubuntu. Having a crappy Intel GPU, I eventually searched for Intel+Vulkan+Ubuntu issues and ended with a fix:
Good to know however that our category of end-users won't support current implementation of wgpu out of the box. I'd naively expect 2D stuff especially to work out of the box, without installing dependencies, but it's gonna be the job of OS distributions I guess 🙂 @joshtriplett as you seemed to have this exact issue. Does this added dependency solve it? |
This should be fixed on |
@parasyte I also have a similar issue in a fresh Ubuntu 20.04 install (
The panic happens when I call The binary runs on my dev machine (also Ubuntu). But it didn't work on my friend's laptop. So, I executed the binary in VirtualBox for testing and saw this output. I suspect this maybe due to a missing shared library. I tried |
@AnEnigmaticBug It looks like you need to install a Vulkan driver for your GPU. |
I searched a bit and got to know that Vulkan doesn't work properly in VirtualBox. The |
Original report: #29 (comment)
Debug Backtrace
The text was updated successfully, but these errors were encountered: