-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
screenshot example crashes on Linux, Wayland with Nvidia GPU #8604
Comments
For precision: it works on Linux X11/AMD. |
Not sure if this is related, or a separate issue, but all of the examples crash for me on Linux + Nvidia + Wayland, with error:
If I don't enable the Wayland feature everything works as normal. |
@A-Walrus Hi! I can run bevy's many examples on Linux + Nvidia + Wayland, like
Bevy works well with Nvidia + Wayland on most scenarios now so your "Parent device is lost" should be another bug of Bevy or a desktop environment configuration error. Did run this example from an X11 session? |
I'm definently on Wayland, will check if this is an issue with Turns out it's a known issue gfx-rs/wgpu#2519 |
# Objective Fix #8604 ## Solution Use `.add_srgb_suffix()` when creating the screenshot texture. Allow converting `Bgra8Unorm` images. Only a two line change for the fix, the `screenshot.rs` changes are just a bit of cleanup.
Bevy version
Bevy 0.11-dev: a35ed55
System information
rustc 1.71.0-nightly (2a8221dbd 2023-05-11), Arch Linux with kernel 6.3, Gnome 44 with Wayland
What you did
Run Bevy's screenshot example on Wayland:
What went wrong
After I pressed SPC, the app crashed.
Additional information
Full log: https://gist.github.com/VitalyAnkh/df177b789fac6b4b676864772c173a60
Line 13551 in the log shows:
The text was updated successfully, but these errors were encountered: