wasmer-js icon indicating copy to clipboard operation
wasmer-js copied to clipboard

`Failed to instantiate WASI: RuntimeError`

Open X7md opened this issue 3 years ago • 4 comments

I try to run qjs but I facing this error.

image

Uncaught Error: Failed to instantiate WASI: RuntimeError: `
    at B2.wbg.__wbg_new_342a24ca698edd87 (Library.esm.min.js:25:11051)
    at 0024ee5a:0x7c9d3
    at 0024ee5a:0x19d5a
    at s.instantiate (Library.esm.min.js:25:6746)
    at main.mjs:20:12

reproduction: https://github.com/X7md/wasmer-js-test

X7md avatar Jul 15 '22 12:07 X7md

Related: https://github.com/wasmerio/wasmer-js/issues/302 Wasmer-js currently fails to instantiate larger wasm modules on the main thread in Chrome.

ankoh avatar Jul 16 '22 09:07 ankoh

Related: wasmerio/wasmer-js#302 Wasmer-js currently fails to instantiate larger wasm modules on the main thread in Chrome.

Yeah, I try on Worker, can't run qjs unfortunately...

but my main.wasm (Golang Hello World using TinyGo to wasi)... work fine, still don't know why.

X7md avatar Jul 16 '22 11:07 X7md

Related: wasmerio/wasmer-js#302 Wasmer-js currently fails to instantiate larger wasm modules on the main thread in Chrome.

Yeah, I try on Worker, can't run qjs unfortunately...

but my main.wasm (Golang Hello World using TinyGo to wasi)... work fine, still don't know why.

reproduction (With Worker):

https://github.com/X7md/wasmer-js-test/tree/with-worker

X7md avatar Jul 16 '22 11:07 X7md

Related: wasmerio/wasmer-js#302 Wasmer-js currently fails to instantiate larger wasm modules on the main thread in Chrome.

Yeah, I try on Worker, can't run qjs unfortunately... but my main.wasm (Golang Hello World using TinyGo to wasi)... work fine, still don't know why.

reproduction (With Worker):

https://github.com/X7md/wasmer-js-test/tree/with-worker

Also can't bundle it in vite build (RollUp), but work on vite dev (esBuild)

X7md avatar Jul 16 '22 11:07 X7md

This is weird.

We have published a new version 1.1.0... could someone verify that the issue is fixed or is still happening? Thanks!

syrusakbary avatar Aug 30 '22 21:08 syrusakbary

for now, no more error.

but also no output for wasi.getStdoutString() but I think this form my side so... I will close this as fixed.

X7md avatar Aug 31 '22 04:08 X7md