That is very strange. Based on those link flags, you did not modify how the application starts up, so I have no idea how it could break like that. If it only happens in the Firefox debugger then perhaps it is a Firefox debugger bug somehow? That seems unlikely too. But maybe try debuggers in other browsers and other versions of Firefox (in particular I would try Firefox Nightly).
On Sun, Apr 14, 2024 at 11:06 PM キャロウ マーク <git...@callow.im> wrote: > When I try to load the .html for my compiled app under the debugger in > Firefox I get a runtime exception: > > native function `__main_argc_argv` called before runtime initialization > > If I run without the debugger, the app runs. > > I am using Emscripten’s default generated .html. Here are my Emscripten > link options: > > --source-map-base ./ > --exclude-file > '${PROJECT_SOURCE_DIR}/tests/testimages/cubemap*' > -s ALLOW_MEMORY_GROWTH=1 > -s DISABLE_EXCEPTION_CATCHING=0 > -s USE_SDL=2 > -s USE_WEBGL2=1 > > plus a few —preload-file options for some image files. > > Any idea why this is happening and how to fix it? > > Regards > > -Mark > > -- > 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-discuss+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/A5D9183C-ABB3-4D89-81DC-3DB38CFD6600%40callow.im > . > -- 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-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpThe1LhSJ%3DmiVjnyBc%3DHCYF7P7V-yKac1kYZ47arrztzA%40mail.gmail.com.