emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

OOM evaluating blockaddrsize

Open ssj-gz opened this issue 13 years ago • 3 comments

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.

ssj-gz avatar Mar 26 '13 14:03 ssj-gz

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?

kripken avatar Mar 31 '13 01:03 kripken

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.

kripken avatar Mar 31 '13 01:03 kripken

Seems to do the trick - thanks!

ssj-gz avatar Apr 01 '13 14:04 ssj-gz