Open Indy2222 opened 11 months ago
Could you share a reproducer? This error message means that an entity was despawned, but clicking a button by itself shouldn't despawn anything.
I was not able to reproduce the issue myself so I do not have any small reproducer. It looks like the bundle was inserted by Bevy.
This is the button I was clicking https://github.com/DigitalExtinction/Game/blob/7202732eb9d1c9afbde1041476c68c585c368333/crates/controller/src/hud/actionbar.rs#L109
Thanks, that's helpful.
At a glance, it seems probably that this is some sort of system ordering issue between bevy's accessibility systems (button_changed
) and the update
in digital extinction which are both running in the PostUpdate
schedule.
I would guess that spawning a button after button_changed
and despawning it the next frame before the accessibility node is added could cause this. edit: not able to confirm this guess.
It would be nice to be able to confirm this with a minimal reproducer.
Bevy version
0.11.2
[Optional] Relevant system information
cargo 1.72.0 (103a7ff2e 2023-08-15)
AdapterInfo { name: "AMD Radeon RX 6700 XT (RADV NAVI22)", vendor: 4098, device: 29663, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 23.1.7-arch1.1", backend: Vulkan }
What you did
I was viciously clicking a UI button.
What went wrong
Unexpected panic: