cordova-plugin-wkwebview-engine icon indicating copy to clipboard operation
cordova-plugin-wkwebview-engine copied to clipboard

Intensive canvas usage causes app crash

Open morious opened this issue 8 years ago • 5 comments

Hi, First, great work with this plugin, it performs much better than UIWebView, thank you! Second, My app is doing lots of canvas rendering and when running on ipad pro...the app crashes randomly. I have a feeling it is some sort of memory or memory resources are not freed. When the app crashes it automatically restarts itself.

the only message i see in xcode is: "#WK: Unable to acquire assertion for process 0"

I dont know how to profile the app - so any advise is welcome, In any case, any help would be appreciated.

Thx!

morious avatar Oct 21 '16 21:10 morious

BTW, any advise on how to troubleshoot the above would be a progress...thx!

morious avatar Oct 26 '16 01:10 morious

+1 having the same issue, when showing the $ionicLoading.

pablomaurer avatar Dec 03 '16 14:12 pablomaurer

I'm also seeing this issue with an app that includes nv-d3 and CesiumJS components (heavy WebGL). Memory footprint is staying consistent, but after stressing (most easily by trigging re-loads of my WebGL components), I'll get the white screen of doom and see nothing more in the log than: [ProcessSuspension] Unable to acquire assertion for process 0

abforman avatar Sep 22 '17 16:09 abforman

Hi @morious @mnewmedia @ph0rman I have exactly same issue. "Unable to acquire assertion for process 0" and the app only restart. I'm using paper.js. My app is doing lots of canvas rendering too.

I need help please!

Regards

jbgomez21 avatar Nov 03 '17 06:11 jbgomez21

Try looking at the WkWebView memory usage, it's different from your app's memory usage (as I found). This post provides instructions for seeing the usage: https://stackoverflow.com/questions/36561063/get-current-memory-usage-of-wkwebview

abforman avatar Nov 16 '17 22:11 abforman