I stumbled over an "interesting" problem yesterday when doing some fixes for the Dear ImGui emscripten sample code:
https://github.com/ocornut/imgui/tree/master/examples/example_emscripten On Chrome 73 and Canary 75, Windows only (tested on Win7 and Win10), the sample immediately Aw Snaps when compiled with -O2 and -O3, but works alright when compiled with -Os or -O1. Firefox works, Chrome on Mac and Linux works too. Here are the various links: -Os (works): http://floooh.github.io/oryol-sticky-tests/emsc-imgui-test/example_emscripten.html -O1 (works): http://floooh.github.io/oryol-sticky-tests/emsc-imgui-test/example_emscripten_o1.html -O2 (Aw Snap): http://floooh.github.io/oryol-sticky-tests/emsc-imgui-test/example_emscripten_o2.html -O3 (Aw Snap): http://floooh.github.io/oryol-sticky-tests/emsc-imgui-test/example_emscripten_o2.html Compiled with emscripten 1.38.30 I'm currently suspecting that the problem is somehow caused by SDL2, because that's the difference to my own ImGui samples which work fine (however I'm usually compiling my own stuff with the emscripten incoming version, but I definitely would have noticed the problem earlier, when 1.38.30 was still in incoming). I haven't written any Chrome bugreports yet (let me know if I should). -Floh. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
