Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.11.0 RC 1
-
None
-
-
e5b00102a40c15f0d6c72c3e9d53c1e08d6cc9b9
Description
emscripten recently changed NO_EXIT_RUNTIME default to 1, meaning the runtime is not exited.
"Which means that we don't include code to shut down the runtime. That means that when main() exits, we don't flush the stdio streams, or call the destructors of global C++ objects, or call atexit callbacks."
If you are running several Qt Webassembly runetimes (such as with testing), the browser will eventually run out of memory.
We need to add -s NO_EXIT_RUNTIME=0 to link line.