p5.capture icon indicating copy to clipboard operation
p5.capture copied to clipboard

Uncaught RangeError: WebAssembly.Memory(): could not allocate memory

Open jcubic opened this issue 3 years ago • 2 comments

The library randomly freezes the browser and throws this error.

This is the stack trace:

p5.capture.umd.js:112 Uncaught RangeError: WebAssembly.Memory(): could not allocate memory
    at E (p5.capture.umd.js:112:9337)
    at Module.<anonymous> (p5.capture.umd.js:136:9131)
    at Q (p5.capture.umd.js:112:3570)
    at C (p5.capture.umd.js:112:4358)
    at p5.capture.umd.js:112:3462
    at p5.capture.umd.js:1:609
    at p5.capture.umd.js:1:546

I use this version: https://cdn.jsdelivr.net/npm/[email protected]/dist/p5.capture.umd.js

jcubic avatar Jan 12 '23 16:01 jcubic

Hi, @jcubic. Thank you for reporting this one! Do you have an example that can reproduce the problem?

tapioca24 avatar Jan 15 '23 04:01 tapioca24

Sorry, I'm not sure what is the root cause. Maybe it's a memory issue. I have only 16GB of Ram, but in Google Chrome I have a Suspend Tab extension so it consumes less memory.

I've created a demo in my playground where I didn't use setup() and draw() functions. I was using my p5 playground to create non P5 related code.

jcubic avatar Jan 15 '23 10:01 jcubic