question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seems to break on max ram usage

See original GitHub issue

I seem to get issues when the memory on my chromebook reaches max usage during a convert:

Output in console:

Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 2133196800, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0 
printErr @ magick.js:32
abort @ magick.js:106
abortOnCannotGrowMemory @ magick.js:106
wasm-function[601]
wasm-function[258]
wasm-function[1162]
wasm-function[792]
wasm-function[277]
wasm-function[1043]
wasm-function[1044]
wasm-function[432]
wasm-function[199]
wasm-function[2068]
(anonymous) @ magick.js:106
invoke_iiiii @ magick.js:106
wasm-function[1511]
wasm-function[2983]
wasm-function[283]
wasm-function[549]
wasm-function[2797]
wasm-function[2791]
wasm-function[1692]
(anonymous) @ magick.js:106
callMain @ magick.js:106
processFiles @ magick.js:69
onmessage @ magick.js:103
magick.js:32 exception thrown: abort("Cannot enlarge memory arrays. Either (1) compile with  -s TOTAL_MEMORY=X  with X higher than the current value 2133196800, (2) compile with  -s ALLOW_MEMORY_GROWTH=1  which allows increasing the size at runtime, or (3) 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.
printErr @ magick.js:32
callMain @ magick.js:106
processFiles @ magick.js:69
onmessage @ magick.js:103

The app itself starts using 2GB or more memory when converting in my case 46 png’s that are about 3-4 MB on average

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Fix High RAM Memory Usage Issue on Windows 11/10 [10 ...
10 Fixes for High (RAM) Memory Usage Issue on Windows 11/10 · 1. Close Unnecessary Running Programs/Applications · 2. Disable Startup Programs ·...
Read more >
Windows 10 High Memory Usage [Causes and Solutions]
This article explains what high memory usage is and how to check it. It also gives 11 methods to fix Windows 10 high...
Read more >
Why Does Your RAM Usage Keep Maxing Out on Mac?
Your RAM usage keeps maxing out on Mac because Mac OS makes the most out of available resources to maximize efficiency and performance....
Read more >
High RAM usage while Idle - Microsoft Community
Method 2. Run memory diagnostic tool: Memory diagnostic tool is a RAM test to check if there is any issues with RAM. -...
Read more >
How to Fix High Memory Usage in Windows - Make Tech Easier
Therefore, it helps to stop the unnecessary programs and applications that are running. Open the Task Manager and check any extra programs you ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found