ruvnet/ruflo · error
[WASM Loader] cook_batch failed, using fallback:
Error message
[WASM Loader] cook_batch failed, using fallback:
What it means
Log warning in cookBatch: the WASM cook_batch call for the whole formula array threw; the batch is processed with the JavaScript fallback implementation.
Source
Thrown at v3/plugins/gastown-bridge/src/wasm-loader.ts:909
const startTime = performance.now();
if (formulas.length !== varsArray.length) {
throw new Error('formulas and varsArray must have the same length');
}
const wasmModule = await loadFormulaWasm();
if (wasmModule) {
try {
const resultJson = wasmModule.cook_batch(
JSON.stringify(formulas),
JSON.stringify(varsArray)
);
const result = JSON.parse(resultJson) as Formula[];
recordTiming('cookBatch', startTime, true);
return result;
} catch (error) {
console.warn('[WASM Loader] cook_batch failed, using fallback:', error);
}
}
// JavaScript fallback
const results = await Promise.all(
formulas.map((formula, i) => cookFormula(formula, varsArray[i]))
);
recordTiming('cookBatch', startTime, false);
return results;
}
// ============================================================================
// Public API - Graph Operations
// ============================================================================
/**
* Perform topological sort on a dependency graph.
* Uses WASM if available (150x faster), falls back to JavaScript.View on GitHub (pinned to fa13ee4ad6)
Solutions
- Check the batch input and the WASM cook_batch error; the JS fallback is used — verify the batch entries are valid.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at v3/plugins/gastown-bridge/src/wasm-loader.ts:909 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/cafe63e6816e53fa.
Report an issue: GitHub.