今天我从Crashlytics收到了一份崩溃报告,但是我无法确定问题出在哪里。我的应用程序已经上线数月而没有任何问题,所以这似乎只是个例外。
崩溃的类型是
这个问题甚至没有显示哪个
崩溃的类型是
Exception Type EXC_BREAKPOINT Code UNKNOWN at 0xdefe
。1 UIKit _shadowImageInRectForSlice + 258
2 UIKit _shadowImageInRectForSlice + 258
3 UIKit -[UIActionSheet(Private) layout] + 3586
4 UIKit -[UIActionSheet(Private) presentSheetInView:] + 268
5 myapp GraphViewController.m line 135
-[GraphViewController graphButtonPressed:] + 135
6 UIKit -[UIApplication sendAction:to:from:forEvent:] + 72
7 UIKit -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 120
8 UIKit -[UIApplication sendAction:to:from:forEvent:] + 72
9 UIKit -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
10 UIKit -[UIControl sendAction:to:forEvent:] + 44
11 UIKit -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 502
12 UIKit -[UIControl touchesEnded:withEvent:] + 488
13 UIKit -[UIWindow _sendTouchesForEvent:] + 524
14 UIKit -[UIApplication sendEvent:] + 380
15 UIKit _UIApplicationHandleEvent + 6154
16 GraphicsServices _PurpleEventCallback + 590
17 GraphicsServices PurpleEventCallback + 34
18 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
19 CoreFoundation __CFRunLoopDoSource1 + 138
20 CoreFoundation __CFRunLoopRun + 1384
21 CoreFoundation CFRunLoopRunSpecific + 356
22 CoreFoundation CFRunLoopRunInMode + 104
23 GraphicsServices GSEventRunModal + 74
24 UIKit UIApplicationMain + 1120
25 myapp main.m line 16
main + 16
现在ViewController的第135行只是简单地使用[actionSheet showInView:self.view];
来显示UIActionSheet
。
崩溃发生在iPad2.5上(不确定是哪个型号),但我的应用程序仅支持iPhone,所以可能会有窗口化的问题。iOS版本是6.1。
另外需要注意的是,该设备已经越狱。这可能导致了崩溃吗?我知道他们可能安装了任何一种操纵视图的插件。
---------- 附加 ----------
在写这篇文章的同时,我收到了第二个崩溃报告,看起来是来自不同的用户,因为这次是在iPhone4.1上的iOS 5.1.1。这部手机也被越狱了。
异常类型EXC_BAD_ACCESS代码KERN_INVALID_ADDRESS位于0x4003109b
0 libobjc.A.dylib objc_msgSend + 15
1 UIKit -[UIActionSheet(Private) _buttonClicked:] + 250
2 CoreFoundation -[NSObject performSelector:withObject:withObject:] + 52
3 UIKit -[UIApplication sendAction:to:from:forEvent:] + 62
4 UIKit -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
5 UIKit -[UIControl sendAction:to:forEvent:] + 44
6 UIKit -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 492
7 UIKit -[UIControl touchesEnded:withEvent:] + 476
8 UIKit -[UIWindow _sendTouchesForEvent:] + 318
9 UIKit -[UIWindow sendEvent:] + 380
10 UIKit -[UIApplication sendEvent:] + 356
11 UIKit _UIApplicationHandleEvent + 5826
12 GraphicsServices PurpleEventCallback + 882
13 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
14 CoreFoundation __CFRunLoopDoSource1 + 140
15 CoreFoundation __CFRunLoopRun + 1370
16 CoreFoundation CFRunLoopRunSpecific + 300
17 CoreFoundation CFRunLoopRunInMode + 104
18 GraphicsServices GSEventRunModal + 136
19 UIKit UIApplicationMain + 1080
20 myapp main.m line 16
main + 16
这个问题甚至没有显示哪个
ViewController
导致了崩溃!有什么想法吗?