emscripten
emscripten copied to clipboard
still waiting on run dependencies: dependency: wasm-instantiate , end of list
In windows server , there is an error still waiting on run dependencies: dependency: wasm-instantiate , end of list ?
I am also getting this same error. I suspect It is because it is not able to get *.worker.js file from the server.
I have the same problem in Windows 10 + Firefox. It works fine in Chrome!
I'm just launching with emrun.
i also have the same pb , wasm-instantiate
Can you try building with -O0 and/or -sASSERTIONS=2? Do you see any other errors in the console?
is happening on godot https://github.com/godotengine/godot/issues/70652
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.
I also encountered a similar error when enabling multi-threading. I resolved the issue by upgrading emsdk to the latest version.