Certain shader code reliably crashes whole macOS #11530
Open
Description
Bevy version
0.12.1
Relevant system information
- rustc 1.77.0-nightly (7ffc697ce 2024-01-24)
- macOS 13.6.3 (22G436)
`2024-01-25T18:30:25.412580Z INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon Pro 560", vendor: 0, device: 0, device_type: DiscreteGpu, driver: "", driver_info: "", backend: Metal }`
I tested the same setup on two separate physical machines running the same macOS and rustc versions.
Both machines reliably crash.
What you did
- Clone https://github.com/janhohenheim/wind-waker-shader/ at
e9a7205f1f8617260239a69040b8181aad5be787
- Run with
cargo run --features bevy/dynamic_linking
(don't know if the dynamic linking is relevant)
What went wrong
The entire OS except the mouse movement freezes, forcing a reboot by holding down the power button
Additional information
The issue is exactly on https://github.com/janhohenheim/wind-waker-shader/blob/e9a7205f1f8617260239a69040b8181aad5be787/assets/shaders/extended_material.wgsl#L55. Uncomment the line // out.color = main_pass_post_lighting_processing(pbr_input, out.color);
and the crash is fixed. This might be a wgpu and not a Bevy issue, but that's hard for me to tell as debugging a whole OS crash is rather painful.