{"record":{"id":"7fa7dca269fa542b","repo":"ruvnet/ruflo","slug":"wasm-abort-called","errorCode":null,"errorMessage":"WASM abort called","messagePattern":"WASM abort called","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/prime-radiant/src/wasm-bridge.ts","lineNumber":317,"sourceCode":"            console.log('[WASM]', this.readString(ptr, len));\n          }\n        },\n        console_error: (ptr: number, len: number) => {\n          console.error('[WASM]', this.readString(ptr, len));\n        },\n\n        // Math functions\n        sin: Math.sin,\n        cos: Math.cos,\n        sqrt: Math.sqrt,\n        exp: Math.exp,\n        log: Math.log,\n        pow: Math.pow,\n        random: Math.random,\n\n        // Abort handler\n        abort: () => {\n          throw new Error('WASM abort called');\n        }\n      }\n    };\n  }\n\n  /**\n   * Read string from WASM memory\n   */\n  private readString(ptr: number, len: number): string {\n    if (!this.wasmModule?.memory) return '';\n\n    const buffer = new Uint8Array(this.wasmModule.memory.buffer, ptr, len);\n    return new TextDecoder().decode(buffer);\n  }\n\n  // ============================================================================\n  // Engine Accessors\n  // ============================================================================","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/prime-radiant/src/wasm-bridge.ts#L299-L335","documentation":"The WASM import object's abort handler fired, meaning the compiled Prime Radiant module called abort() (e.g. panic, unreachable, allocation failure, or unreachable trap inside the guest). The host bridge converts the raw abort callback into a JS Error so the trap propagates to callers of the bridge instead of silently killing execution.","triggerScenarios":"Thrown at v3/plugins/prime-radiant/src/wasm-bridge.ts:317 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the WASM module's abort reason (stderr/assertion); fix the input or memory configuration that triggered it."],"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-14T05:17:10.506Z"}