Panic calling DynamicScene::write_to_world
with MapEntities
and ComponentHooks
#14300
Labels
A-ECS
Entities, components, systems, and events
A-Scenes
Serialized ECS data stored on the disk
C-Bug
An unexpected or incorrect behavior
S-Needs-Design
This issue requires design work to think about how it would best be accomplished
Milestone
Bevy version
0.14.0
What you did
DynamicScene::write_to_world
with two components:MapEntities
world.commands().spawn_empty()
inComponentHooks::on_add
What went wrong
Panics at
bevy_ecs::entity::Entities::verify_flushed
, traced back toscene::write_to_world
Additional information
I dont know enough about the ecs internals to understand whats happening, possibly commands from the DeferredWorld in
ComponentHooks::on_add
are being called at an inappropriate time?Full reproducible
The text was updated successfully, but these errors were encountered: