You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for your work on this plugin. 🙏🏻
Having said that, I think I have stumbled upon a memory leak problem. When I use data mode (on iOS), the page memory is always increasing (as seen in the Safari Web Inspector) and, eventually, the application crashes. To try and troubleshoot this problem, I installed the cordova-plugin-memory-warning-ios-android plugin and I do receive memorywarning events repeatedly until the crash.
To alleviate the problem, I tried calling frame.recycle() in the onAfterDraw callback but it does not change the situation. By the way, frame.image and frame.element both return undefined in my setup.
When I switch to file mode, I do receive the occasional memorywarning event but the page memory usually goes back down and it does not crash. However, file mode causes me another problem which I reported in #29.
Anyway, if it was possible to free a frame's memory when we are done with it, I would be a very hapy man. Thanks in advance for your help.
Unfortunately i'am aware of this problem but i wasn't able to identify for sure the source of the memory leak.
Currently, the plugin is maintained at a minimum level. I integrate contributors pull requests as well as interesting modifications I observe on certain forks.
I do not plan to invest time in the plugin in its current form. At the moment, I am considering a complete rewrite using Capacitor, which better aligns with our current needs.
However, if I am able to provide a fix for this issue or if a contributor submits a pull request that satisfactorily addresses this problem, I will add it to the plugin.
First of all, thanks for your work on this plugin. 🙏🏻
Having said that, I think I have stumbled upon a memory leak problem. When I use
data
mode (on iOS), the page memory is always increasing (as seen in the Safari Web Inspector) and, eventually, the application crashes. To try and troubleshoot this problem, I installed thecordova-plugin-memory-warning-ios-android
plugin and I do receivememorywarning
events repeatedly until the crash.To alleviate the problem, I tried calling
frame.recycle()
in theonAfterDraw
callback but it does not change the situation. By the way,frame.image
andframe.element
both returnundefined
in my setup.When I switch to
file
mode, I do receive the occasionalmemorywarning
event but the page memory usually goes back down and it does not crash. However,file
mode causes me another problem which I reported in #29.Anyway, if it was possible to free a frame's memory when we are done with it, I would be a very hapy man. Thanks in advance for your help.
P.S. If it helps, here are the options I'm using:
The text was updated successfully, but these errors were encountered: