{"record":{"id":"4431a8d872f9122a","repo":"ruvnet/ruflo","slug":"wasm-loader-critical-path-failed-using-fallback","errorCode":null,"errorMessage":"[WASM Loader] critical_path failed, using fallback:","messagePattern":"\\[WASM Loader\\] critical_path failed, using fallback:","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/wasm-loader.ts","lineNumber":1079,"sourceCode":"\n  if (wasmModule) {\n    try {\n      const resultJson = wasmModule.critical_path(\n        JSON.stringify(nodes),\n        JSON.stringify(edges),\n        JSON.stringify(weights)\n      );\n      const parsed = JSON.parse(resultJson);\n      // Convert slack array back to Map\n      const result: CriticalPathResult = {\n        path: parsed.path,\n        totalDuration: parsed.totalDuration,\n        slack: new Map(Object.entries(parsed.slack).map(([k, v]) => [k, v as number])),\n      };\n      recordTiming('criticalPath', startTime, true);\n      return result;\n    } catch (error) {\n      console.warn('[WASM Loader] critical_path failed, using fallback:', error);\n    }\n  }\n\n  // JavaScript fallback\n  const result = criticalPathFallback(nodes, edges, weights);\n  recordTiming('criticalPath', startTime, false);\n  return result;\n}\n\n// ============================================================================\n// Module Management\n// ============================================================================\n\n/**\n * Preload all WASM modules.\n * Call this during initialization for best performance.\n *\n * @returns Object indicating which modules were loaded","sourceCodeStart":1061,"sourceCodeEnd":1097,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/wasm-loader.ts#L1061-L1097","documentation":"Log warning in criticalPath: the WASM critical_path computation threw (or its result JSON failed to parse); the JS fallback computes the critical path and slack values.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/wasm-loader.ts:1079 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the graph input and the WASM critical_path error; the JS fallback is used."],"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"}