Open
Description
I'm running into some pretty serious issues using wasm2js. It looks to me like the entire wasm memory is getting corrupted. Sometimes they result in clean-ish aborts like this:
➜ node index.js
allocating pages: 4
allocating pages: 4
allocating pages: 7
first done
allocating pages: 13
Error calling wasm function: Error: abort
at wasm2js_trap (file:///home/rmstorm/Documents/rust/wasm2js-memory-problem/pkg/wasm2js_memory_problem_bg.wasm.js:25:33)
at __rust_start_panic (file:///home/rmstorm/Documents/rust/wasm2js-memory-problem/pkg/wasm2js_memory_problem_bg.wasm.js:4319:3)
at rust_panic (file:///home/rmstorm/Documents/rust/wasm2js-memory-problem/pkg/wasm2js_memory_problem_bg.wasm.js:4218:3)
at std__panicking__rust_panic_with_hook__he5c089ac7305193e
But sometimes they result in just complete corruption and I get output like:
I%@�<#�f�M@.C�n~I%@��r�f�M@q��$~I%@�><�f�M@�a�}
I've made a repo with a minimal reproducible example. The wasm file that I'm using is generated using wasm-bindgen. I have tested with versions 0.2.90
, 0.2.91
and 0.2.92
I have also tested with wasm2js version 105 (the one I originally had installed) and the latest version (119). It occurs in all situations!
Metadata
Metadata
Assignees
Labels
No labels