{"record":{"id":"892752b8071b36c0","repo":"ruvnet/ruflo","slug":"failed-to-initialize-wasm-module-error-instance","errorCode":null,"errorMessage":"Failed to initialize WASM module: ${error instanceof Error ? error.message : 'Unknown error'}","messagePattern":"Failed to initialize WASM module: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/prime-radiant/src/plugin.ts","lineNumber":92,"sourceCode":"\n    try {\n      // Dynamic import of the WASM module\n      // In production, this would load from 'prime-radiant-advanced-wasm'\n      // For scaffold, we create mock implementations\n      const wasmModule = await this.loadWasmModule();\n      this.wasmModule = wasmModule;\n\n      // Create engine instances\n      this.cohomologyEngine = this.createCohomologyEngine();\n      this.spectralEngine = this.createSpectralEngine();\n      this.causalEngine = this.createCausalEngine();\n      this.quantumEngine = this.createQuantumEngine();\n      this.categoryEngine = this.createCategoryEngine();\n      this.hottEngine = this.createHottEngine();\n\n      this.initialized = true;\n    } catch (error) {\n      throw new Error(\n        `Failed to initialize WASM module: ${error instanceof Error ? error.message : 'Unknown error'}`\n      );\n    }\n  }\n\n  isInitialized(): boolean {\n    return this.initialized;\n  }\n\n  async dispose(): Promise<void> {\n    // Cleanup WASM resources\n    this.cohomologyEngine = null;\n    this.spectralEngine = null;\n    this.causalEngine = null;\n    this.quantumEngine = null;\n    this.categoryEngine = null;\n    this.hottEngine = null;\n    this.wasmModule = null;","sourceCodeStart":74,"sourceCodeEnd":110,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/prime-radiant/src/plugin.ts#L74-L110","documentation":"PrimeRadiantPlugin.initialize() hit an unexpected failure while loading the WASM module or constructing the engines. The original message (or 'Unknown error') is embedded; the plugin stays uninitialized and subsequent calls will fail the readiness guard.","triggerScenarios":"Thrown at v3/plugins/prime-radiant/src/plugin.ts:92 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the underlying initialization error; verify the WASM asset exists, is compatible, and required dependencies are loaded.","Retry initialization after fixing the root cause; make the failure surface the original error message."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}