Ability to pass options to the underlying engine to prevent "Cannot enlarge memory arrays"?
See original GitHub issueI am trying to visualise a fairly sizable statechart (maybe 50 states, with 7 levels deep nesting), but get an error when going beyond level 5.
Expected Behavior
Expect the SVG to be produced.
Current Behavior
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.
Possible Solution
Increase allocated memory, or provide more detailed error logging why it runs out? Perhaps a small tweak to the statechart will prevent the engine from choking?
Steps to Reproduce (for bugs)
Context
I’m just trying to find a good visualizer for our statechart, most importantly one that is stable (in its layout).
Your Environment
- Version used: 4.1.0
- Node version: 8.12.0
- Operating System and version: Windows 10
- Link to your project:
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
[BUG] Continue to have issues with Cannot Enlarge Memory ...
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ...
Read more >Cannot enlarge memory arrays when allocating 1Mbytes buffer
"Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with ALLOW_MEMORY_GROWTH ...
Read more >Cannot Enlarge Memory Arrays Browser error - Unity Forum
Hello, I created a WebGL app, and ran it in a browser, then i got the error Cannot enlarge memory arrays. Either (1)...
Read more >Use Table-Valued Parameters (Database Engine) - SQL Server
Transact-SQL passes table-valued parameters to routines by reference to avoid making a copy of the input data. You can create and execute ...
Read more >IO tools (text, CSV, HDF5, …) — pandas 1.5.2 documentation
pandas will try to call date_parser in three different ways, advancing to the next if an exception occurs: 1) Pass one or more...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
graphviz works!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.