Crashed: WebThread - EXC_BAD_ACCESS KERN_INVALID_ADDRESS

蓝咒 提交于 2019-12-05 00:11:37

Answering my own question to add more details than comment area.
Not marking as answered as I don't have solution.

Unfortunately, we were not able to solve issue. Fortunately, crash rate came down after 2-3 days.

After spending 3 days, we were certain it was related to Google Ads. However, Why crash rate went up and down is still a mystery for us.

Some notes/conclusion:

  • Are we doing something stupid when requesting/handling ads?
    • Possible, but chances are very thin as it was happening to existing stable release.
  • Is this happening to specific ad(s)?
    • crash rate went down because we are not serving that ad(s) anymore?
  • GoogleAds team came to rescue and acted like nothing happen? because... :)
  • Not a new issue - Crashlytics was showing first occurrence of this type of crash was months before.
PDK

Two branches of ideas two explore:

https://stackoverflow.com/a/32078697/3419541

may be that the user is closing the web view just before it tries to send a delegate callback and it crashes because it doesn't exist.

https://stackoverflow.com/a/31673840/3419541

guessing something is going wrong with the caching of a resource.

Simply put, the crash you are experiencing is because of a memory leak.

A variable or object is trying to access restricted memory, which will result in this crash. My guess is that one of the advertising frameworks/APIs you are using did not handle the iOS 10.1.1 (Build 14B100) update which came out October 31st, 2016. This could be the cuase of your crash.

It also occurred to me that this seems to be happening during some sort of a call to a close/exit function. If so, MAKE SURE you are releasing objects, variables, and anything else that has been assigned memory, properly. If your code or program is releasing everything the correct way, then it is the advertisement framework/API causing your issues.

Cheers!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!