{"record":{"id":"00e09ed3e37c05ec","repo":"bevyengine/bevy","slug":"more-bevy-world-s-have-been-created-than-is-sup","errorCode":null,"errorMessage":"More `bevy` `World`s have been created than is supported","messagePattern":"More `bevy` `World`s have been created than is supported","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/world/mod.rs","lineNumber":132,"sourceCode":"    /// The byte index in [`Self::command_queue`] at which unapplied command start.\n    ///\n    /// This is nonzero while running commands to allow the same buffer to be shared by nested commands.\n    command_queue_start: usize,\n    /// The world's command queue.\n    ///\n    /// This is stored inside a [`SyncUnsafeCell`] to allow mutable access to\n    /// commands from an [`UnsafeWorldCell`] without being invalidated by `&World`\n    /// references used for metadata.\n    ///\n    /// This must not be exposed as a `&mut` to untrusted code,\n    /// as calling `apply()` on it could execute commands before [`Self::command_queue_start`].\n    command_queue: SyncUnsafeCell<CommandQueue>,\n}\n\nimpl Default for World {\n    fn default() -> Self {\n        let mut world = Self {\n            id: WorldId::new().expect(\"More `bevy` `World`s have been created than is supported\"),\n            entities: Entities::new(),\n            entity_allocator: EntityAllocator::default(),\n            components: Default::default(),\n            resource_entities: Default::default(),\n            archetypes: Archetypes::new(),\n            storages: Default::default(),\n            bundles: Default::default(),\n            observers: Observers::default(),\n            removed_components: Default::default(),\n            // Default value is `1`, and `last_change_tick`s default to `0`, such that changes\n            // are detected on first system runs and for direct world queries.\n            change_tick: AtomicU32::new(1),\n            last_change_tick: Tick::new(0),\n            last_check_tick: Tick::new(0),\n            last_trigger_id: 0,\n            command_queue_start: 0,\n            command_queue: SyncUnsafeCell::new(CommandQueue::silent()),\n            component_ids: ComponentIds::default(),","sourceCodeStart":114,"sourceCodeEnd":150,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/world/mod.rs#L114-L150","documentation":"Guard panic in World::new/from_world: the number of simultaneously-live Worlds exceeded the maximum the Entity id generation supports (the world index bit budget), so a new World cannot be created.","triggerScenarios":"Thrown at crates/bevy_ecs/src/world/mod.rs:132 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Drop existing Worlds before creating new ones (often caused by leaking worlds in tests or loops)","Reuse a single World instead of allocating many","Avoid creating a World per iteration in long-running loops"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}