Skip to content

Error with malloc and memory limit #522

Answered by chrispcampbell
serman asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @serman, thanks for submitting this. I agree that this info can be helpful to others who might run into similar issues, so I converted this to a discussion thread and edited your post to include text versions of the error messages you saw for better searchability.

For the -s args, I filed a separate issue #523 to improve the documentation.

I think that either solution, -sINITIAL_MEMORY=32MB or -sALLOW_MEMORY_GROWTH=1 would be fine. I don't think 32MB should be too much for modern browsers/devices. We haven't hit the limit with the default settings in En-ROADS or C-ROADS, but I'm not surprised for it to happen with large models like yours.

We could consider changing the default args to …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by chrispcampbell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #521 on August 26, 2024 16:45.