Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot enlarge memory arrays" error processing large graph #89

Closed
aragozin opened this issue May 25, 2017 · 4 comments
Closed

"Cannot enlarge memory arrays" error processing large graph #89

aragozin opened this issue May 25, 2017 · 4 comments

Comments

@aragozin
Copy link

I've got following error message trying process large graph. I suppose it is referring to Emscripten compile options.

Uncaught abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at Error at Ga (http://viz-js.com/bower_components/viz.js/viz.js:49:124) at Fa (http://viz-js.com/bower_components/viz.js/viz.js:49:22) at v (http://viz-js.com/bower_components/viz.js/viz.js:1183:101) at Function.ba [as Wa] (http://viz-js.com/bower_components/viz.js/viz.js:34:488) at uc (http://viz-js.com/bower_components/viz.js/viz.js:1103:161) at eQ (http://viz-js.com/bower_components/viz.js/viz.js:1168:7157) at zz (http://viz-js.com/bower_components/viz.js/viz.js:1160:92650) at yz (http://viz-js.com/bower_components/viz.js/viz.js:1160:92582) at Wi (http://viz-js.com/bower_components/viz.js/viz.js:1163:4858) at Vi (http://viz-js.com/bower_components/viz.js/viz.js:1163:4250) If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information

@mdaines
Copy link
Owner

mdaines commented May 28, 2017

When processing a large graph, you can try using the totalMemory option. For example:

Viz(src, { totalMemory: 32 * 1024 * 1024 })

@rfreitas
Copy link

rfreitas commented Oct 1, 2018

It doesn't seem that this option is working anymore.
Also by inspecting the code I was not see evidence that this parameter is being passed down.

PS. I'm using url web workers

@aleen42
Copy link

aleen42 commented Mar 6, 2019

@mdaines any new set suggestions for working around.?

@dkuebric
Copy link

+1 would also find this helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants