"Fossies" - the Fresh Open Source Software Archive

Member "wasm3-0.5.0/docs/Troubleshooting.md" (2 Jun 2021, 1143 Bytes) of package /linux/www/wasm3-0.5.0.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

Wasm3 troubleshooting

Error: [trap] stack overflow

Increase the stack size:

wasm3 --stack-size 1000000 file.wasm

Error: missing imported function

This means that the runtime doesn't provide a specific function, needed for your module execution.
You need to implement the required functions, and re-build Wasm3.
Alternatively, you can use Python to define your environment. Check out pywasm3 module.

Note: If this happens with WASI functions like wasi_unstable.* or wasi_snapshot_preview1.*, please report as a bug.

Error: compiling function overran its stack height limit

Try increasing d_m3MaxFunctionStackHeight in m3_config.h and rebuilding Wasm3.

Error: [Fatal] repl_load: unallocated linear memory

Your module requires some Memory, but doesn't define/export it by itself.
This happens if module is built by Emscripten, or it's a library that is intended to be linked to some other modules.
Wasm3 currently doesn't support running such modules directly, but you can remove this limitation when embedding Wasm3 into your own app.