{"record":{"id":"2271db7519925303","repo":"ruvnet/ruflo","slug":"wasm-initialization-failed-using-js-fallback","errorCode":null,"errorMessage":"WASM initialization failed, using JS fallback","messagePattern":"WASM initialization failed, using JS fallback","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/index.ts","lineNumber":1031,"sourceCode":"  }\n\n  private async initializeWasm(): Promise<void> {\n    try {\n      this.wasmLoader = new WasmLoaderAdapter();\n\n      if (this.config.wasm?.preload) {\n        await preloadWasmModules();\n      }\n\n      await this.wasmLoader.initialize();\n      this.wasmInitialized = this.wasmLoader.isInitialized();\n\n      if (this.wasmInitialized) {\n        const versions = await getWasmVersions();\n        this.logger.info('WASM modules initialized', { versions });\n      }\n    } catch (error) {\n      this.logger.warn('WASM initialization failed, using JS fallback', {\n        error: error instanceof Error ? error.message : String(error),\n      });\n      this.wasmInitialized = false;\n    }\n  }\n\n  private async checkCliAvailable(): Promise<boolean> {\n    try {\n      const { exec } = await import('child_process');\n      const { promisify } = await import('util');\n      const execAsync = promisify(exec);\n\n      await execAsync('which gt');\n      await execAsync('which bd');\n      return true;\n    } catch {\n      return false;\n    }","sourceCodeStart":1013,"sourceCodeEnd":1049,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/index.ts#L1013-L1049","documentation":"Log warning in initializeWasm: constructing/initializing the WASM loader failed, so the gastown plugin sets wasmInitialized=false and all WASM-backed operations run the JavaScript fallback paths.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/index.ts:1031 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the WASM initialization error; the JS fallback keeps functionality — rebuild or reinstall the WASM artifacts to restore performance."],"exampleFix":null,"handlingStrategy":"fallback","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"}