--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2_jh9eYSYfJz8NDQhjOvTf4wjku1YO6K1Du6fusAnVgGA%40mail.gmail.com.
Figured it out -- my code had been setting Module.mainScriptUrlOrBlob without the relative path set, which somehow didn't cause any problems before :D but definitely caused loading the wrong URL (without subdirectory) with 3.1.58 when launching a worker.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTn2g8ESKw1RiDpeTfaHntTOe9U_%3DEaDymYHaoKEUOoKrg%40mail.gmail.com.
Glad you figured it out. We do have two other folks how are having similar issue:I have a fix one fix out that should help in some cases (specifically folks how use locateFile): https://github.com/emscripten-core/emscripten/pull/21829. Does this look like it would help in your case?
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va28Fvy7_ayPLvuTRT%2BFzE18e%2BRP5ODydQZkJ1jc%3D%2BgHPEw%40mail.gmail.com.
On Thu, Apr 25, 2024, 10:34 AM 'Sam Clegg' via emscripten-discuss <emscripte...@googlegroups.com> wrote:Glad you figured it out. We do have two other folks how are having similar issue:I have a fix one fix out that should help in some cases (specifically folks how use locateFile): https://github.com/emscripten-core/emscripten/pull/21829. Does this look like it would help in your case?It had no trouble finding the wasm binary for me, just with finding the JavaScript in the worker, which was because I was specifically giving it a wrong path in Module['mainScriptUrlOrBlob'] I think because that's what the prior behavior wanted because it loaded it in the worker's context, where the base URL for the main JS, worker JS, and binary were all in the same subdirectory.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAFnWYTn6dJJ4KXEGo3VN5un8A--10Lhyk4hOXqNJc75wno%2BC5g%40mail.gmail.com.
Can you confirm if you are now able to completely remove your usage of `mainScriptUrlOrBlob`? I'm hoping the number of cases where this is needed is now almost zero.