本文介绍了iOS 9在_prepareForCAFlush中崩溃与EXC_BAD_ACCESS KERN_INVALID_ADDRESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着iOS 9的发布,我们看到了几个崩溃报告,这些报告似乎是苹果公司在iOS 9中出现的一个错误。这种情况发生在各种设备类型(iPhone,iPad和iPod)上。我想找出为什么会发生这种情况,如果有什么我可以做的解决它。这个堆栈是通过我们的崩溃报告系统(Crashlytics)报告的,所以不幸的是我没有可重现的步骤或代码,但我会尽力回答任何问题。堆栈如下:

With the release of iOS 9, we are seeing several crash reports for what appears to be a bug from Apple's side of things in iOS 9. This is happening across device types (iPhone, iPad and iPod). I am looking to find out why this may be happening and if there is anything I can do to work around it. This stack is being reported through our crash reporting system (Crashlytics) so unfortunately I don't have reproducible steps or code, but I will try and answer any questions as best as I can. The stack is as follows:

Thread : Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x34a27ad6 objc_msgSend + 21
1  CoreFoundation                 0x230d3db9 -[__NSArrayM dealloc] + 148
2  libobjc.A.dylib                0x34a34f67 objc_object::sidetable_release(bool) + 150
3  libobjc.A.dylib                0x34a353a9 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 388
4  CoreFoundation                 0x230cbfa9 _CFAutoreleasePoolPop + 16
5  UIKit                          0x27523cd9 _prepareForCAFlush + 312
6  UIKit                          0x2752886b _beforeCACommitHandler + 10
7  CoreFoundation                 0x2317a509 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
8  CoreFoundation                 0x2317880d __CFRunLoopDoObservers + 280
9  CoreFoundation                 0x23178c3f __CFRunLoopRun + 958
10 CoreFoundation                 0x230cc249 CFRunLoopRunSpecific + 520
11 CoreFoundation                 0x230cc035 CFRunLoopRunInMode + 108
12 GraphicsServices               0x2c182ad1 GSEventRunModal + 160
13 UIKit                          0x272e18a9 UIApplicationMain + 144
14 APPNAMEHERE                    0x000ec967 main (main.m:14)


推荐答案

我也面临这个问题,我想我发现了可能导致它的原因。
你们有没有机会使用SDWebImage?
因为这是我发现CFRunLoopRun()被调用的唯一地方,而且其他人也抱怨:

I'm also facing this issue and I think that I found what might be causing it.Are you guys by any chance using SDWebImage?Because that's the only place where I found that CFRunLoopRun() is being called and also other people complained on:Dead thread ticket -> App Crash

这篇关于iOS 9在_prepareForCAFlush中崩溃与EXC_BAD_ACCESS KERN_INVALID_ADDRESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 01:29