Open
Description
If you build the node package (built using this bash file, invoked by npm build
) and try to run the wasm demo (npm run start
in wasm-demo), it succeeds by default, but it fails if you remove the RUSTFLAGS in the build file.
The failure shows up as "memory access out of bounds" error. The JS web debugger points to a non-heap write for this, I don't fully trust this but it does point to it being a max stack error / stack overflow.
It still succeeds if the RUSTFLAGS are actually just set to the empty string.
We should investigate this.
Things to try:
- Reduce the invocation and try to repro the discrepancy with a simpler set of flags
- Try a newer compiler
- Try reproducing this in pure node. I suspect the website is needed since the website does a lot more at once.
Couple notes:
- Rerunning the build requires deleting
lib
and rerunningnpm build
, followed by deleting/reinstallingnode_modules
in the wasm-build folder vianpm i
- Worth clearing out the locally-created target dir to prevent incremental compilation from being a factor