joaomoreno / gifcap

Capture your screen to a GIF in your browser
https://gifcap.dev
GNU General Public License v3.0
1.37k stars 97 forks source link

No rendering due to "Out of memory at ImageData creation error" #59

Open mdotwills opened 3 years ago

mdotwills commented 3 years ago

Running on Version 92.0.4515.159 (Official Build) (x86_64) on macOS 11.5.2.

Tried to record gif from browser tab via https://gifcap.dev/.

Recording and preview seems to work, but when I click "Render", I see a progress bar that makes no progress and the following in the console:

(999) main.js:1 Uncaught RangeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Out of memory at ImageData creation
    at Worker.u.onmessage (main.js:1)
main.js:1 Uncaught (in promise) RangeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Out of memory at ImageData creation
    at h (main.js:1)
    at Ut.oncreate (main.js:1)
    at AsyncFunction.h (main.js:1)
    at main.js:1
    at h (main.js:1)
    at main.js:1

Repeated attempts at stopping and rendering yield the last error from the console log about. There is no output.

joaomoreno commented 3 years ago

How long (time) is the GIF and what's the pixel dimension of what you're recording? 🙈

lramos15 commented 2 years ago

I see this often even with like 30 second gifs on 4K monitors. I even try to make the bounding box as small as possible for the gif but with no luck. Albeit this is an M1 mac with only 8gb of RAM but it still says I have ~1Gb free. Would be cool if there was an option to downscale the whole image to like 1440p or 1080p as I definitely don't need the full 4K it's just what my monitor is.

HKalbasi commented 2 years ago

Same issue with 4k monitor and 1 minute record. It would be great to store it on disk, but changing quality will work for most cases I think.

l-monninger commented 10 months ago

Still present.

radical-ed commented 10 months ago

Still present - MacBook Pro, 32GB RAM, Sonoma 14.1.1, Chrome Version 119.0.6045.159