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

support larger graphs #13

Open
Trass3r opened this issue Feb 4, 2020 · 6 comments
Open

support larger graphs #13

Trass3r opened this issue Feb 4, 2020 · 6 comments
Assignees

Comments

@Trass3r
Copy link

Trass3r commented Feb 4, 2020

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 allows increasing the size at runtime but prevents some optimizations,
(3) set Module.TOTAL_MEMORY to a higher value before the program runs,
or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ").
Build with -s ASSERTIONS=1 for more info.```
@dreampuf dreampuf self-assigned this Feb 12, 2020
@dreampuf
Copy link
Owner

I tried to compile an ALLOW_MEMORY_GROWTH version. It showed conflict with the legendary WASM mode which is what vis.js does.

16MB is a quite small number as default. Maybe we can start with 64MB. Even more, expose an option to let the user choose.

@stenbln
Copy link

stenbln commented Mar 6, 2020

Any update on this? I would really like to use this tool but my use case are really big graphs..

@dreampuf
Copy link
Owner

@stenbln could you please provide some examples? A gist would be great.

@dreampuf dreampuf pinned this issue Mar 12, 2020
@dreampuf dreampuf unpinned this issue Mar 12, 2020
@danielo515
Copy link

I am on a similar situation. I really want to visualize my graphs on a nicer way than raw SVG, but they are quite big too

@JerryChin
Copy link

JerryChin commented Mar 25, 2024

I have a workaround, specify TOTAL_MEMORY at full.render.js

Example:

  Module = Module || {};
  Module.TOTAL_MEMORY = 1024 * 1024 * 1024;  // Allow 1GB

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

No branches or pull requests

5 participants