kripken/emscripten — Issue #194: "array initialiser too large" when running compiled code
Author: alberthrocks
Created: 2012-01-29 02:47:10+00:00
State: open

When running my compiled code, I encounter this "array initialiser too large" error in Firefox 9.0.1 (x86, Ubuntu Linux build).
However, it works fine in Google Chrome, but shows that error about "this is slow" when extending the array memory.

The compiled code, gzip'ed, can be found here:
http://sdlwabbitemu.googlecode.com/hg/sdlwabbitemu.web.html.gz

If you wish to compile my code, you need my fork (which contains the missing SDL functions) OR the patch, shown respectively:
https://github.com/alberthrocks/emscripten
http://pastebin.com/YM5dLB3c

The source is here:
http://code.google.com/p/sdlwabbitemu/source/checkout (Mercurial)
On Linux, edit ./build_sdl_web to setup the Emscripten paths, then run it to build.

You've mentioned about splitting the array to fix this bug.

IRC logs of discussion:
http://pastebin.com/E3Gu06CB