"Terminated due to Memory Error" in Cordova app

679 views
Skip to first unread message

Vladimir Knobel

unread,
Feb 5, 2015, 3:17:02 PM2/5/15
to pdfnet-w...@googlegroups.com
Hi 

I know that's probably more a Cordova issue than a WebViewer issue, but just in case somebody has experienced this same problem.
When opening more than 3 documents in the WebViewer, changing orientation or pinching-to-zoom some times the memory consumption goes to near 200MB and the app terminates with an "Terminated due to Memory Error" error.
Is there some known technique to keep memory consumption low in Cordova?

Thanks in advance for any hint.
Best regards
Vlad
   

Matt Parizeau

unread,
Feb 6, 2015, 12:10:07 PM2/6/15
to pdfnet-w...@googlegroups.com
Hi Vlad,

Apple has acknowledged that there is a bug in Mobile Safari related to certain transformations that can cause memory problems. You can see this post for ways to attempt to minimize the issues https://groups.google.com/d/msg/pdfnet-webviewer/-Gp2zUllRQY/0k8qzwNt4osJ.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Vladimir Knobel

unread,
Feb 19, 2015, 7:04:00 PM2/19/15
to pdfnet-w...@googlegroups.com
Hi Matt,

Thanks for the hints, for us loading the viewer directly in the UIWebView was the solution to the crashes.
Apparently loading it in an iframe is killing safari's UIWebView.

Regards
Vlad
Reply all
Reply to author
Forward
0 new messages