OOM evaluating blockaddrsize
Hi Alon,
While attempting to compile emscripten-kate with asm.js output, I persistently ran out of memory with the following stacktrace:
https://gist.github.com/anonymous/5245785
(this was with a version of Qt in which all occurrence of setjmp were commented out in the source).
You should be able to reproduce it with the following compressed set of files:
http://vps2.etotheipiplusone.com:30176/redmine/emscripten-qt-examples/kate-emscripten-bitcode-blockaddrsize-oom.tar.bz2
My machine has 8GB RAM, but my OS is only 32-bit.
Can you try to replace
funcs_js = [''.join([output[0] for output in outputs])] # this will be a list of things, so we do not do string appending as we add more
with
funcs_js = [output[0] for output in outputs]
in emscripten.py?
Actually this looks like a useful optimization with little or no downsides, so i pushed it to incoming, you can test there without manually modifying anything.
Seems to do the trick - thanks!