Closed adrien-turiot-maxa closed 2 years ago
Similar error in gfx-rs/naga#226
This is happening to me as well on an M1 Mac in my own projects whenever I add .add_plugin(RapierDebugRenderPlugin::default())
Note that I don't even have to be using any physics at all, just adding the debug renderer causes the crash.
Corresponding upstream report: https://github.com/gfx-rs/wgpu/issues/4526
@sebcrozet If there is anything I can do to help debug this, please let me know. I have access to several different Macs, both M1 and Intel.
Just confirming that it works now thanks to the fix from @sebcrozet ! Thanks a lot π
Works for me on M1 as well ππ»
If we could get this in a patch release, that would be fantastic.
@CleanCut In the meantime, you can set your Cargo.toml
to point to a fixed version of the master
branch:
bevy_rapier2d = { git = "https://github.com/dimforge/bevy_rapier", rev = "9386e32" }
ππ» Absolutely, I'm tracking the master
branch at the moment and it works. However, I won't be able to cut a release if I'm depending on a version outside of crates.io. I'm probably not going to be ready to cut a release for several days, so it's not a rush--it would just be nice if it happened sometime this week.
On my machine (macOS), all the examples for the
bevy_rapier2d
panics whereas the ones inbevy_rapier3d
work fine.For instance:
The output is:
It seems to be caused by the
RapierDebugRenderPlugin
as it's a shader issue and mostly because it works when removing the plugin from the example.I also tested with
--release
but the error remains.I unfortunately do not know about the status of other platforms.