【发布时间】:2011-05-17 14:18:08
【问题描述】:
任何人都可以通过查看以下 iPhone 设备崩溃日志来提供任何提示,为什么应用程序会在启动时崩溃?
注意:应用程序并非总是崩溃,它仅在应用程序启动的 50% 时发生。 欢迎任何建议。提前致谢。
Date/Time: 2011-03-21 19:15:21.363 +0000
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x736f485b
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x00003f24 objc_msgSend + 24
1 UIKit 0x0002ff18 -[UIApplication sendAction:to:from:forEvent:] + 128
2 UIKit 0x000ff538 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 128
3 CoreFoundation 0x00049a3c -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
4 UIKit 0x0015d968 -[UIApplication sendAction:fromSender:toTarget:forEvent:] + 132
5 UIKit 0x0019a1dc -[UIControl(Deprecated) sendAction:toTarget:forEvent:] + 48
6 UIKit 0x000e6a68 -[UIControl(Internal) _sendActionsForEventMask:withEvent:] + 520
7 UIKit 0x0019af68 -[UIControl mouseUp:] + 500
8 UIKit 0x00171fbc -[UIView(Internal) _mouseUp:] + 52
9 UIKit 0x0016cb8c -[UIWindow _handleMouseUp:] + 164
10 UIKit 0x0016d144 -[UIWindow _statusBarMouseUp:] + 184
11 UIKit 0x0035e768 -[UIStatusBar touchesEnded:withEvent:] + 436
12 CoreFoundation 0x00049a3c -[NSObject(NSObject) performSelector:withObject:withObject:] + 20
13 UIKit 0x00030160 forwardMethod2 + 72
14 UIKit 0x00021ea8 -[UIWindow _sendTouchesForEvent:] + 580
15 UIKit 0x000214dc -[UIWindow sendEvent:] + 388
16 UIKit 0x00004c94 -[UIApplication sendEvent:] + 444
17 UIKit 0x000043ac _UIApplicationHandleEvent + 6816
18 GraphicsServices 0x00005c80 PurpleEventCallback + 1040
19 CoreFoundation 0x000365c4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 22
20 CoreFoundation 0x00036582 __CFRunLoopDoSource1 + 158
21 CoreFoundation 0x0002882e __CFRunLoopRun + 574
22 CoreFoundation 0x00028504 CFRunLoopRunSpecific + 220
23 CoreFoundation 0x00028412 CFRunLoopRunInMode + 54
24 GraphicsServices 0x00004d1c GSEventRunModal + 188
25 UIKit 0x0004a574 -[UIApplication _run] + 580
26 UIKit 0x00047550 UIApplicationMain + 964
27 checkmate 0x00002bbe main + 74
28 checkmate 0x00002b34 start + 44
【问题讨论】:
-
你能发布导致崩溃的实际代码吗?
-
你的调试器在崩溃时会说什么?
-
查看博客教程以阅读并找到导致崩溃的代码中的确切行。 IPhone Crash Logssymbolicate iphone crash
-
堆栈抓取有很多触摸处理调用似乎很奇怪。确定这是在启动期间,而不是因为您点击了某些东西?
-
我对 iPhone 一无所知,但是这行 (
EXC_BAD_ACCESS) 不是告诉您将代码提供给其他人吗?