{"record":{"id":"ec6a8d1ca2d597bd","repo":"emilk/egui","slug":"failed-to-spawn-thread","errorCode":null,"errorMessage":"failed to spawn thread","messagePattern":"failed to spawn thread","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/egui_extras/src/loaders/file_loader.rs","lineNumber":136,"sourceCode":"                            let mut cache = cache.lock();\n                            if let std::collections::hash_map::Entry::Occupied(mut entry) = cache.entry(uri.clone()) {\n                                let entry = entry.get_mut();\n                                *entry = Poll::Ready(result);\n                                log::trace!(\"Finished loading {uri:?}\");\n                                true\n                            } else {\n                                log::trace!(\"Canceled loading {uri:?}\\nNote: This can happen if `forget_image` is called while the image is still loading.\");\n                                false\n                            }\n                        };\n                        // We may not lock Context while the cache lock is held (see ImageLoader::load\n                        // for details).\n                        if repaint {\n                            ctx.request_repaint();\n                        }\n                    }\n                })\n                .expect(\"failed to spawn thread\");\n\n            Ok(BytesPoll::Pending { size: None })\n        }\n    }\n\n    fn forget(&self, uri: &str) {\n        let _ = self.cache.lock().remove(uri);\n    }\n\n    fn forget_all(&self) {\n        self.cache.lock().clear();\n    }\n\n    fn byte_size(&self) -> usize {\n        self.cache\n            .lock()\n            .values()\n            .map(|entry| match entry {","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/emilk/egui/blob/d802a982ce959839d92f4f6718fdffa41143110e/crates/egui_extras/src/loaders/file_loader.rs#L118-L154","documentation":"Error \"failed to spawn thread\" thrown in emilk/egui.","triggerScenarios":"Thrown at crates/egui_extras/src/loaders/file_loader.rs:136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d802a982ce959839d92f4f6718fdffa41143110e","analyzedAt":"2026-08-16T20:07:53.954Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}