{"record":{"id":"bc089a653a23dcb0","repo":"bevyengine/bevy","slug":"requested-non-send-resource-does-not-exist-in-t","errorCode":null,"errorMessage":"Requested non-send resource {} does not exist in the `World`.\\n                Did you forget to add it using `app.insert_non_send` / `app.init_non_send`?\\n                Non-send resources can also be added by plugins.","messagePattern":"Requested non-send resource (.+?) does not exist in the `World`\\.\\\\n                Did you forget to add it using `app\\.insert_non_send` / `app\\.init_non_send`\\?\\\\n                Non-send resources can also be added by plugins\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_ecs/src/world/mod.rs","lineNumber":2385,"sourceCode":"    pub fn resource_entity<R: Resource>(&self) -> Option<Entity> {\n        let component_id = self.component_id::<R>()?;\n        self.resource_entities().get(component_id)\n    }\n\n    /// Gets an immutable reference to the non-send data of the given type, if it exists.\n    ///\n    /// # Panics\n    ///\n    /// Panics if the data does not exist.\n    /// Use [`get_non_send`](World::get_non_send) instead if you want to handle this case.\n    ///\n    /// This function will panic if it isn't called from the same thread that the resource was inserted from.\n    #[inline]\n    #[track_caller]\n    pub fn non_send<R: 'static>(&self) -> &R {\n        match self.get_non_send() {\n            Some(x) => x,\n            None => panic!(\n                \"Requested non-send resource {} does not exist in the `World`.\n                Did you forget to add it using `app.insert_non_send` / `app.init_non_send`?\n                Non-send resources can also be added by plugins.\",\n                DebugName::type_name::<R>()\n            ),\n        }\n    }\n\n    /// Gets a mutable reference to the non-send data of the given type, if it exists.\n    ///\n    /// # Panics\n    ///\n    /// Panics if the data does not exist.\n    /// Use [`get_non_send_mut`](World::get_non_send_mut) instead if you want to handle this case.\n    ///\n    /// This function will panic if it isn't called from the same thread that the resource was inserted from.\n    #[inline]\n    #[track_caller]","sourceCodeStart":2367,"sourceCodeEnd":2403,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_ecs/src/world/mod.rs#L2367-L2403","documentation":"Error \"Requested non-send resource {} does not exist in the `World`.\\n                Did you forget to add it using `app.insert_non_send` / `app.init_non_send`?\\n                Non-send resources can also be added by plugins.\" thrown in bevyengine/bevy.","triggerScenarios":"Thrown at crates/bevy_ecs/src/world/mod.rs:2385 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the data with app.insert_non_send(...) / app.init_non_send::<R>()","Use world.get_non_send::<R>() to handle absence gracefully","Only touch non-send data from the main thread"],"exampleFix":null,"handlingStrategy":"type-guard","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"}