-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
segfault on WSL2 using the WgpuPlugin #2922
Comments
Note that this may be related to #2661, as @kacystocks suggests his example segfaults when adding the |
I assume that wgpu doesn't support wslg yet, or at least not in 0.8/0.9 which we use Have you tried a wgpu example (both 0.8 and the latest main)? If neither of those segfault, it's our problem. If only the former fails, all is good, and if the latter fails too, it would be a wgpu issue. |
I also managed to reproduce the same issue on
Not yet, but I was just about to! I will report back with any findings. If I manage to nail it down to a wgpu issue I'll open a ticket there and report back. |
Yep. Looks like WSLg support is unavailable at this time. It looks like D3D12 support (rather, DirectX 12 support on Linux) is required before wgpu-rs can work as per gfx-rs/wgpu#1443 and https://github.com/microsoft/wslg#opengl-accelerated-rendering-in-wslg
I'm going to close this as an upstream issue. I'd suggest closing #2661 as well if you can nail it down to gfx-rs/wgpu#1443. Thanks for the pointer! |
Bevy version
Operating system & version
Windows 11, running WSL2 with WSLg enabled
What you did
Given the following
main.rs
:Execution returns a segmentation fault:
If you change it to using all of the default plugins:
A little more information is provided:
What you expected to happen
A more informative error message explaining why the WgpuPlugin failed to initialize would be great. Having a working WgpuPlugin system on WSLg would be even better!
What actually happened
Segmentation fault.
Additional information
Example app can be found here: https://github.com/bacongobbler/bevy-wgpu-segfault-test
The text was updated successfully, but these errors were encountered: