{"record":{"id":"ff0c7554c523d5a5","repo":"wasmerio/wasmer","slug":"no-store-context-installed-on-this-thread","errorCode":null,"errorMessage":"No store context installed on this thread","messagePattern":"No store context installed on this thread","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/api/src/backend/sys/entities/function/mod.rs","lineNumber":172,"sourceCode":"    where\n        FT: Into<FunctionType>,\n        F: Fn(AsyncFunctionEnvMut<T>, &[Value]) -> Fut + 'static,\n        Fut: Future<Output = Result<Vec<Value>, RuntimeError>> + 'static,\n    {\n        let function_type = ty.into();\n        let func_ty = function_type.clone();\n        let func_env = env.clone().into_sys();\n        let store_id = store.objects_mut().id();\n        let wrapper = move |values_vec: *mut RawValue| -> HostCallOutcome {\n            unsafe {\n                let mut context = StoreContext::try_get_current_async(store_id);\n                let mut store_mut = match &mut context {\n                    crate::GetStoreAsyncGuardResult::Ok(wrapper) => StoreMut {\n                        inner: wrapper.guard.as_mut().unwrap(),\n                    },\n                    crate::GetStoreAsyncGuardResult::NotAsync(ptr) => ptr.as_mut(),\n                    crate::GetStoreAsyncGuardResult::NotInstalled => {\n                        panic!(\"No store context installed on this thread\")\n                    }\n                };\n                let id = store_mut.as_store_ref().objects().id();\n                let mut args = Vec::with_capacity(func_ty.params().len());\n\n                for (i, ty) in func_ty.params().iter().enumerate() {\n                    args.push(Value::from_raw(\n                        &mut store_mut,\n                        *ty,\n                        values_vec.add(i).read_unaligned(),\n                    ));\n                }\n                let store_async = match context {\n                    crate::GetStoreAsyncGuardResult::Ok(wrapper) => {\n                        AsyncFunctionEnvMutStore::Async(StoreAsync {\n                            id,\n                            inner: crate::LocalRwLockWriteGuard::lock_handle(\n                                wrapper.guard.as_mut().unwrap(),","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/api/src/backend/sys/entities/function/mod.rs#L154-L190","documentation":"Error \"No store context installed on this thread\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/api/src/backend/sys/entities/function/mod.rs:172 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":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}