Post

Replies

Boosts

Views

Activity

WKWebView memory issue causes crash
My app has a WKWebView which loads the certain HTML, CSS and JavaScript files. When the WKWebView is opened and files load initially, the memory usage of my app remains relatively low. If I start to use the application, in some time (5 mins) the total system free memory drops drastically and reloads the app. At that point the WKWebView reloads itself; there is no console message, no crash log, nothing. At most I'll see an Xcode message about my device having "BKSProcessAssertion 'ConnectionTerminationWatchdog' initialized with invalid pid". The WKWebView has the markings of a memory leak and even if I remove the variables or objects their memory sticks around. Is there some way to release any memory it's holding in order to avoid reloads of the app?
2
0
4k
Oct ’20