{"record":{"id":"033c06e784ccd919","repo":"bevyengine/bevy","slug":"system-0-does-not-have-a-registeredsystem-comp","errorCode":null,"errorMessage":"System {0:?} does not have a RegisteredSystem component. This only happens if app code removed the component.","messagePattern":"System (.+?) does not have a RegisteredSystem component\\. This only happens if app code removed the component\\.","errorType":"exception","errorClass":"RegisteredSystemError","httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/system/system_registry.rs","lineNumber":853,"sourceCode":"        self.run_system_with(id, input)\n    }\n}\n\n/// An operation with stored systems failed.\n#[derive(Error)]\npub enum RegisteredSystemError<I: SystemInput = (), O = ()> {\n    /// A system was run by id, but no system with that id was found.\n    ///\n    /// Did you forget to register it?\n    #[error(\"System {0:?} was not registered\")]\n    SystemIdNotRegistered(SystemId<I, O>),\n    /// A cached system was removed by value, but no system with its type was found.\n    ///\n    /// Did you forget to register it?\n    #[error(\"Cached system was not found\")]\n    SystemNotCached,\n    /// The `RegisteredSystem` component is missing.\n    #[error(\"System {0:?} does not have a RegisteredSystem component. This only happens if app code removed the component.\")]\n    MissingRegisteredSystemComponent(SystemId<I, O>),\n    /// A system tried to remove itself.\n    #[error(\"System {0:?} tried to remove itself\")]\n    SelfRemove(SystemId<I, O>),\n    /// System could not be run due to parameters that failed validation.\n    /// This is not considered an error.\n    #[error(\"System did not run due to failed parameter validation: {0}\")]\n    Skipped(SystemParamValidationError),\n    /// System returned an error or failed required parameter validation.\n    #[error(\"System returned error: {0}\")]\n    Failed(BevyError),\n    /// [`SystemId`] had different input and/or output types than [`SystemIdMarker`]\n    #[error(\"Could not get system from `{}`, entity was `SystemId<{}, {}>`\", DebugName::type_name::<SystemId<I, O>>(), .1.input_type_id.name, .1.output_type_id.name)]\n    IncorrectType(SystemId<I, O>, SystemIdMarker),\n    /// System is not present in the `RegisteredSystem` component.\n    // TODO: We should consider using catch_unwind to protect against the panic case.\n    #[error(\"The system is not present in the RegisteredSystem component. This can happen if the system was called recursively or if the system panicked on the last run.\")]\n    SystemMissing(SystemId<I, O>),","sourceCodeStart":835,"sourceCodeEnd":871,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/system/system_registry.rs#L835-L871","documentation":"RegisteredSystemError::MissingRegisteredSystemComponent: the SystemId points at an entity that lacks the RegisteredSystem marker component, which only happens if user/app code removed the component from that entity manually.","triggerScenarios":"Thrown at crates/bevy_ecs/src/system/system_registry.rs:853 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid despawning or stripping the RegisteredSystem component from system entities","Re-register the system to obtain a fresh, valid SystemId","If you intentionally removed the component, discard the stale SystemId"],"exampleFix":null,"handlingStrategy":"try-catch","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"}