emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

still waiting on run dependencies: dependency: wasm-instantiate , end of list

Open yangfangfang1204 opened this issue 4 years ago • 7 comments

In windows server , there is an error still waiting on run dependencies: dependency: wasm-instantiate , end of list ?

yangfangfang1204 avatar Nov 17 '21 06:11 yangfangfang1204

I am also getting this same error. I suspect It is because it is not able to get *.worker.js file from the server.

owais-kali avatar Dec 20 '21 19:12 owais-kali

I have the same problem in Windows 10 + Firefox. It works fine in Chrome!

I'm just launching with emrun.

tuket avatar Mar 02 '22 13:03 tuket

i also have the same pb , wasm-instantiate

lld1995 avatar Sep 03 '23 14:09 lld1995

Can you try building with -O0 and/or -sASSERTIONS=2? Do you see any other errors in the console?

sbc100 avatar Sep 06 '23 23:09 sbc100

is happening on godot https://github.com/godotengine/godot/issues/70652

PeterMarques avatar Oct 28 '23 01:10 PeterMarques

I'm also getting this inside a Web Worker in Firefox with emsdk 3.1.67 . In Chrome it works fine. I have linked my code with "MODULARIZE" and "ASSERTIONS". This is the code from the 'classic' mode worker:

importScripts('module.js');
let module = await Module();

When launching lots of workers, it appears to work properly ( most of the time ) when the module initialization code is inside the onmessage handler like so:

self.onmessage = async function (event) {
  let module = await Module();
  // ...
}

From my understanding, importScripts('module.js'); should be fully synchronous.

kevle avatar Sep 25 '24 20:09 kevle

I also encountered a similar error when enabling multi-threading. I resolved the issue by upgrading emsdk to the latest version.

kevingpqi123 avatar Nov 05 '24 08:11 kevingpqi123