emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.63k stars 3.28k forks source link

Runtime Link Error #22313

Closed MikhailGorobets closed 1 month ago

MikhailGorobets commented 1 month ago

I'm encountering the following runtime error when running my WASM application. wasm streaming compile failed: LinkError: WebAssembly.instantiate(): Import #33 "env" "_tzset_js": function import requires a callable What could be the cause? I didn't experience this error with version 3.1.61

sbc100 commented 1 month ago

This is JS function that is normally provided by the emscripten-generated code. The function itself was added way back in

16118 but its possible a more recent change caused your program to start depending on this JS function where in that past it didn't.

Are you using the generated JS code?

MikhailGorobets commented 1 month ago

This might sound strange, but it seems the linking issue occurred when a specific browser tab was open. After closing all tabs except the required webpage, the error stopped appearing.

sbc100 commented 1 month ago

That does sounds strange. Closing for, feel free to re-open if you see it again.