我活的應用程序最常見的崩潰之一是在MKMapView崩潰。它在內部方法-[MKMapView mapTileViewDidFinishLoading:]
上崩潰。在我的測試中,我無法回溯崩潰,但在iTunes Connect的崩潰報告中非常頻繁。今天有什麼經驗可以幫助你解決這個問題嗎?這只是一張非常簡單的地圖,只顯示一個註釋。我需要MKMapView崩潰幫助
下面是這個崩潰的完整的堆棧跟蹤:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000009
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x339737d8 objc_msgSend + 16
1 MapKit 0x345709ec -[MKMapView mapTileViewDidFinishLoading:]
2 CoreFoundation 0x344492e4 -[NSObject(NSObject) performSelector:withObject:]
3 Foundation 0x3326981e __NSThreadPerformPerform
4 CoreFoundation 0x34460f1e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
5 CoreFoundation 0x34432ba0 __CFRunLoopDoSources0
6 CoreFoundation 0x34432444 __CFRunLoopRun
7 CoreFoundation 0x34432270 CFRunLoopRunSpecific
8 CoreFoundation 0x34432178 CFRunLoopRunInMode
9 GraphicsServices 0x3026b5ec GSEventRunModal
10 GraphicsServices 0x3026b698 GSEventRun
11 UIKit 0x31ad011c -[UIApplication _run]
12 UIKit 0x31ace128 UIApplicationMain
13 MYApp 0x00002e08 main + 36
14 MYApp 0x00002dd8 start + 32
可能是值得分享一些... – 2010-11-01 09:05:44
我遇到了同樣的問題。發佈mapview時會發生這種情況嗎?你使用任何覆蓋或註釋? – matheeeny 2010-11-02 18:30:47