I have a hybrid iOS app that continually is crashing, I have posted a crash report for this issue before. It appears to be happening when it is trying to save data to storage, it is taking all the data and attempting to convert a large object to a JSON string with the built in javascript Stringify method. Is there anything that sticks out to anyone? Original app name is redacted.
iOS App continually crashing for out of memory errors, anyone got any advice?
Yes, the app is running out of memory:
Thread 2 name: WebThread
Thread 2 Crashed:
0 JavaScriptCore 0x1ab950e4c pas_panic_on_out_of_memory_error + 0
[...]
Also, you should switch from using UIWebView
to WKWebView
. Aside from stability and security improvements in WKWebView
, the com.apple.WebKit.WebContent
process may have more memory available for this operation than your app process.