Bevy + Rapier2d change scenes cause panic #4024
-
So i'm using Bevy 0.6 and bevy_rapier2d ="0.12.0". I'm trying to switch scenes from MainMenu > InGame > Mainmenu again. I'm using manual cleanup, to clean the MainMenu scene and it works good(code snipper which leads to clean on scene exit and setup scene on enter): .add_system_set(SystemSet::on_exit(AppState::MainMenu).with_system(cleanup)) .add_system_set(SystemSet::on_enter(AppState::MainMenu).with_system(setup)) But when i'm trying to enter the main memnu from InGame stage(with cleaning up using same approach my InGame scene) app gets cloed and panic. There is my backtrace. 2022-02-23T13:30:08.509172Z INFO bevy_render::renderer: AdapterInfo { name: "Intel(R) Iris(TM) Plus Graphics 655", vendor: 0, device: 0, device_type: IntegratedGpu, backend: Metal } as core::future::future::Future>::poll There is my repo So to me it seems like Rapier still tries to keep on working with deleted entities. Can not resolve that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So that was a problem with my rapier2d physics plugin! cargo update -p bevy_rapier2d update from 0.12.0 to 0.12.1 solved my problem! |
Beta Was this translation helpful? Give feedback.
So that was a problem with my rapier2d physics plugin!
cargo update -p bevy_rapier2d
update from 0.12.0 to 0.12.1 solved my problem!