RavishaHesh / PDFJsAnnotations

Wrapper for PDF JS to add annotations
MIT License
322 stars 98 forks source link

Memory canvas use exceeds the maximum limit (254mb) #66

Open jesesqui opened 2 years ago

jesesqui commented 2 years ago

Memory canvas use exceeds the maximum limit (254mb) the console show this messages when use it in iPad, anything recommendation for increase the limit, tks.

Captura de Pantalla 2022-05-20 a la(s) 14 53 48
RavishaHesh commented 2 years ago

It seems this is a Safari-specific issue and happens when holding canvas objects in variables. So might have to update the way that the library access canvas objects. Instead of taking them from this.fabricObjects variables when accessing a canvas object, accessing them with document.querySelector might fix the issue.