p5.capture
p5.capture copied to clipboard
Uncaught RangeError: WebAssembly.Memory(): could not allocate memory
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
Hi, @jcubic. Thank you for reporting this one! Do you have an example that can reproduce the problem?
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.