ruvnet/ruflo · error
WASM abort called
Error message
WASM abort called
What it means
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.
Source
Thrown at v3/plugins/prime-radiant/src/wasm-bridge.ts:317
console.log('[WASM]', this.readString(ptr, len));
}
},
console_error: (ptr: number, len: number) => {
console.error('[WASM]', this.readString(ptr, len));
},
// Math functions
sin: Math.sin,
cos: Math.cos,
sqrt: Math.sqrt,
exp: Math.exp,
log: Math.log,
pow: Math.pow,
random: Math.random,
// Abort handler
abort: () => {
throw new Error('WASM abort called');
}
}
};
}
/**
* Read string from WASM memory
*/
private readString(ptr: number, len: number): string {
if (!this.wasmModule?.memory) return '';
const buffer = new Uint8Array(this.wasmModule.memory.buffer, ptr, len);
return new TextDecoder().decode(buffer);
}
// ============================================================================
// Engine Accessors
// ============================================================================View on GitHub (pinned to fa13ee4ad6)
Solutions
- Inspect the WASM module's abort reason (stderr/assertion); fix the input or memory configuration that triggered it.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at v3/plugins/prime-radiant/src/wasm-bridge.ts:317 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/7fa7dca269fa542b.
Report an issue: GitHub.