Skip to content

emcc out of memory #1168

Closed
Closed
@scriby

Description

@scriby

I'm trying to generate javascript for Pachi, and running into an out of memory error in the emcc node process. I'm wondering if it's possible to pass v8 arguments to the process to increase max heap size.

Steps to reproduce:

git clone git://repo.or.cz/pachi.git
cd pachi
git checkout pachi-10.00-satsugen

emmake make

mv pachi pachi.bc
emcc pachi.bc -o pachi.js

Relevant output:

Warning: warning: very large fixed-size structural type: [67108864 x i32] - can you reduce it? (compilation may be slow)
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
Traceback (most recent call last):
  File "/home/scriby/emscripten/emscripten.py", line 800, in <module>
    _main(environ=os.environ)
  File "/home/scriby/emscripten/emscripten.py", line 788, in _main
    temp_files.run_and_clean(lambda: main(
  File "/home/scriby/emscripten/tools/tempfiles.py", line 38, in run_and_clean
    return func()
  File "/home/scriby/emscripten/emscripten.py", line 796, in <lambda>
    DEBUG_CACHE=DEBUG_CACHE,
  File "/home/scriby/emscripten/emscripten.py", line 683, in main
    jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, DEBUG_CACHE=DEBUG_CACHE)
  File "/home/scriby/emscripten/emscripten.py", line 176, in emscript
    assert '//FORWARDED_DATA:' in out, 'Did not receive forwarded data in pre output - process failed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions