Getting a network crash that looks to be system based, since iOS 11 the crash has came more prevalent. We have tried a number of fixes and investigation but have not found the root cause.
Could I get confirmation
- that this is not a system bug?
- That EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000 is indication of bad block management on our side.
Issue:
Crash on networking call.
Top Trace:
Crashed: com.apple.CFNetwork.Connection EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
0: TubeManager::_onqueue_newTubeReady(Tube*, CFStreamError) + 992
Note:
- Seen on all types of devices
- All crashes say that device has low memory (under 4%), we have investigated this and have fixed some memory leak but issue still happens. We have never seen app use over 200mb of ram.
- We have few a uiwebviews being used.
- We have never been able to reproduce this ourselves
- We have Cert pinning implemented.
- We have one shared NSURLSession object
What we've tried:
- Memory leaks.
- Updated all 3rd party dependences, firebase etc.
- Better webview management. Nil delegate and calling stop loading.
Crash log: (i've hundred of these!)
https://gist.github.com/booranger/17c3a793f6f030555e9c90cc4072addb
Any suggestions on how to debug this issue?
How does one get an iPhone 8 plus to run out of ram!