Open Tyriar opened 3 years ago
Closing and reopening Edge freed the memory and I can use gifcap again
Unsure of what we could do here. Should we have a soft limit on the memory? Is there anyway I can figure out we're getting close to OOM? An event on OOM would be too late.
Also, reloading don't work I'm guessing cause they reuse the same engine/scope.
Any idea why the memory wasn't getting freed? At the least you should catch getImageData
and show the error in the UI
Well, 5 minutes of recording. That's a lot of memory. I'm guessing it hit OOM and then just hangs in there.
I'm guessing OOM errors could surface from all over the place, so wrapping around getImageData
wouldn't be suficient. 🤔
I mean if we can't free the memory, a message on screen would be better than needing to dig through devtools.
What about something like this during recording?
getImageData
.If the memory error is caught during recording, it is unlikely to occur again during trimming/cropping unless the user has other memory changes on their system. Those changes are outside of the application's control though and I am not sure if they should try to be accounted for.
This was on a gif that I tried to record after accidentally leaving it recording for 5 minutes. Reloading/closing+reopening the tab doesn't fix the problem.