-
Notifications
You must be signed in to change notification settings - Fork 969
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
Crash with ruining examples on debug mode #5086
Comments
What happens here is that wgpu tries to initialize the Vulkan backend but fails because we enable validation layers in dev/debug mode, which are not installed on your system. If you want to fix this, install the With Vulkan broken, wgpu falls back to OpenGL. OpenGL works in the
|
If you only see problems in the |
Good thought, but all the examples got combined into one binary some time ago, and the specific example is now specified by a command line argument. Also happens with other examples, maybe there's a pattern. |
Oh, the |
Bisected with |
Couple notes:
This is actually even deeper than that. We run without the validation layers fine, but this is the vulkan loader failing to initialize a layer that it thinks should be there and aborting instance creation.
The hello-triangle example is special in that it doesn't use the standard init functions, so doesn't listen to the WGPU_BACKEND env. Maybe that should change |
After i install |
Let's not because OpenGL is completely broken on OpenGL, and that seems glaring to me. |
If there are still gl issues on trunk, please file another issue. Closing this as solved |
Description
Some example don't work on debug mode.
Repro steps and Expected vs observed behavior
hello_triangle
cargo run --bin wgpu-examples hello_triangle
cube
cargo run --bin wgpu-examples cube
Everything works fine in release mode
Platform
OS: Fedora 39 with Wayland
GPU: Intel(R) HD Graphics 620
Rust: 1.75.0
The text was updated successfully, but these errors were encountered: