【问题标题】:Crash EXC_CRASH (SIGABRT) on iOS 8.4在 iOS 8.4 上崩溃 EXC_CRASH (SIGABRT)
【发布时间】:2015-08-05 21:54:40
【问题描述】:

我遇到了仅在 Apple 审核时发生的崩溃:当他们尝试登录应用程序时崩溃。 我在测试环境和 Ad-hoc 中使用真正的 iPhone 对其进行了多次测试,之前从未发生过崩溃。 经过审查,我做了一些研究,发现了一些类似的东西,我一直在尝试,但我无法在这里模拟相同的问题(我也尝试将 Xcode 调试更改为发布,但他没有发生崩溃)。

这是他们在审查时所说的:

在进一步审核并全新安装您的应用后,我们会继续 发现您的应用在运行 iOS 8.4 和 iPhone 的 iPad 上崩溃了 当我们运行 iOS 8.4 时: 1.启动应用 2. 输入提供的模拟账户凭证 3.点击“登录” 4. 应用程序崩溃。

这是符号化的日志:

Last Exception Backtrace:
0   CoreFoundation                  0x1820ac2d8 __exceptionPreprocess + 132
1   libobjc.A.dylib                 0x193c7c0e4 objc_exception_throw + 60
2   CoreFoundation                  0x1820ac198 +[NSException raise:format:arguments:] + 116
3   Foundation                      0x182f60ed4 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4   UIKit                           0x186b4f1e0 -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 184
5   UIKit                           0x186b4f8c8 -[UIKeyboardImpl setDelegate:force:] + 636
6   UIKit                           0x186b48b3c -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1212
7   UIKit                           0x186c2709c -[UIResponder _finishResignFirstResponder] + 184
8   UIKit                           0x187277730 -[UITextField _finishResignFirstResponder] + 56
9   UIKit                           0x186bced5c -[UIResponder resignFirstResponder] + 320
10  UIKit                           0x186c508bc -[UITextField resignFirstResponder] + 124
11  UIKit                           0x186d4b170 -[UITextField _setEnabled:animated:] + 128
12  PioNET                          0x100051110 -[LoginViewController startLogging] (LoginViewController.m:667)
13  Foundation                      0x182faddb8 __NSThread__main__ + 1072
14  libsystem_pthread.dylib         0x1944dbdc8 _pthread_body + 164
15  libsystem_pthread.dylib         0x1944dbd24 _pthread_start + 160
16  libsystem_pthread.dylib         0x1944d8ef8 thread_start + 4


Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0:
0   PioNET                          0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)
1   PioNET                          0x00000001000dee9c +[AFHTTPRequestOperationManager manager] (AFHTTPRequestOperationManager.m:41)
2   PioNET                          0x000000010004db98 -[LoginViewController authentication:andPassword:] (LoginViewController.m:247)
3   PioNET                          0x0000000100050cfc -[LoginViewController loginProcess:andPassword:] (LoginViewController.m:641)
4   PioNET                          0x00000001000514b4 -[LoginViewController login:] (LoginViewController.m:692)
5   UIKit                           0x0000000186b59394 -[UIApplication sendAction:to:from:forEvent:] + 92
6   UIKit                           0x0000000186b42470 -[UIControl _sendActionsForEvents:withEvent:] + 608
7   UIKit                           0x0000000186b58d30 -[UIControl touchesEnded:withEvent:] + 588
8   UIKit                           0x0000000186b589bc -[UIWindow _sendTouchesForEvent:] + 696
9   UIKit                           0x0000000186b51ef8 -[UIWindow sendEvent:] + 680
10  UIKit                           0x0000000186b2511c -[UIApplication sendEvent:] + 260
11  UIKit                           0x0000000186dc62b4 _UIApplicationHandleEventFromQueueEvent + 15420
12  UIKit                           0x0000000186b23630 _UIApplicationHandleEventQueue + 1712
13  CoreFoundation                  0x000000018206423c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
14  CoreFoundation                  0x00000001820634e0 __CFRunLoopDoSources0 + 260
15  CoreFoundation                  0x0000000182061590 __CFRunLoopRun + 708
16  CoreFoundation                  0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
17  GraphicsServices                0x000000018b8bb6f8 GSEventRunModal + 164
18  UIKit                           0x0000000186b8af3c UIApplicationMain + 1484
19  PioNET                          0x00000001000709b0 main (main.m:14)
20  libdyld.dylib                   0x0000000194326a04 start + 0

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib          0x0000000194424c24 kevent64 + 8
1   libdispatch.dylib               0x0000000194309e6c _dispatch_mgr_invoke + 272
2   libdispatch.dylib               0x00000001942fb998 _dispatch_mgr_thread + 48

Thread 2:
0   libsystem_kernel.dylib          0x000000019443fc78 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x00000001944d92d8 _pthread_wqthread + 988
2   libsystem_pthread.dylib         0x00000001944d8eec start_wqthread + 0

Thread 3:
0   libsystem_kernel.dylib          0x000000019443fc78 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x00000001944d92d8 _pthread_wqthread + 988
2   libsystem_pthread.dylib         0x00000001944d8eec start_wqthread + 0

Thread 4:
0   libsystem_kernel.dylib          0x000000019443fc78 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x00000001944d92d8 _pthread_wqthread + 988
2   libsystem_pthread.dylib         0x00000001944d8eec start_wqthread + 0

Thread 5:
0   libsystem_kernel.dylib          0x000000019443fc78 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x00000001944d92d8 _pthread_wqthread + 988
2   libsystem_pthread.dylib         0x00000001944d8eec start_wqthread + 0

Thread 6:
0   libsystem_kernel.dylib          0x000000019443fc78 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x00000001944d92d8 _pthread_wqthread + 988
2   libsystem_pthread.dylib         0x00000001944d8eec start_wqthread + 0

Thread 7 name:  com.apple.NSURLConnectionLoader
Thread 7:
0   libsystem_kernel.dylib          0x0000000194424e0c mach_msg_trap + 8
1   libsystem_kernel.dylib          0x0000000194424c84 mach_msg + 68
2   CoreFoundation                  0x0000000182063720 __CFRunLoopServiceMachPort + 196
3   CoreFoundation                  0x0000000182061674 __CFRunLoopRun + 936
4   CoreFoundation                  0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5   CFNetwork                       0x0000000181a6a590 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6   Foundation                      0x0000000182faddb4 __NSThread__main__ + 1068
7   libsystem_pthread.dylib         0x00000001944dbdc4 _pthread_body + 160
8   libsystem_pthread.dylib         0x00000001944dbd20 _pthread_start + 156
9   libsystem_pthread.dylib         0x00000001944d8ef4 thread_start + 0

Thread 8 name:  com.apple.CFSocket.private
Thread 8:
0   libsystem_kernel.dylib          0x000000019443f498 __select + 8
1   CoreFoundation                  0x0000000182069124 __CFSocketManager + 668
2   libsystem_pthread.dylib         0x00000001944dbdc4 _pthread_body + 160
3   libsystem_pthread.dylib         0x00000001944dbd20 _pthread_start + 156
4   libsystem_pthread.dylib         0x00000001944d8ef4 thread_start + 0

Thread 9:
0   libsystem_kernel.dylib          0x0000000194424e0c mach_msg_trap + 8
1   libsystem_kernel.dylib          0x0000000194424c84 mach_msg + 68
2   CoreFoundation                  0x0000000182063720 __CFRunLoopServiceMachPort + 196
3   CoreFoundation                  0x0000000182061674 __CFRunLoopRun + 936
4   CoreFoundation                  0x0000000181f8d2d0 CFRunLoopRunSpecific + 392
5   CoreFoundation                  0x0000000181fdf358 CFRunLoopRun + 108
6   CoreMotion                      0x00000001829982b8 0x182950000 + 295608
7   libsystem_pthread.dylib         0x00000001944dbdc4 _pthread_body + 160
8   libsystem_pthread.dylib         0x00000001944dbd20 _pthread_start + 156
9   libsystem_pthread.dylib         0x00000001944d8ef4 thread_start + 0

Thread 10 Crashed:
0   libsystem_kernel.dylib          0x000000019443f270 __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000001944dd16c pthread_kill + 108
2   libsystem_c.dylib               0x00000001943b6b14 abort + 108
3   libc++abi.dylib                 0x0000000193449414 abort_message + 112
4   libc++abi.dylib                 0x0000000193468b88 default_terminate_handler() + 300
5   libobjc.A.dylib                 0x0000000193c7c3bc _objc_terminate() + 124
6   libc++abi.dylib                 0x0000000193465bb0 std::__terminate(void (*)()) + 12
7   libc++abi.dylib                 0x0000000193465474 __cxa_throw + 132
8   libobjc.A.dylib                 0x0000000193c7c200 objc_exception_throw + 344
9   CoreFoundation                  0x00000001820ac194 +[NSException raise:format:arguments:] + 112
10  Foundation                      0x0000000182f60ed0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 108
11  UIKit                           0x0000000186b4f1dc -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 180
12  UIKit                           0x0000000186b4f8c4 -[UIKeyboardImpl setDelegate:force:] + 632
13  UIKit                           0x0000000186b48b38 -[UIPeripheralHost(UIKitInternal) _reloadInputViewsForResponder:] + 1208
14  UIKit                           0x0000000186c27098 -[UIResponder _finishResignFirstResponder] + 180
15  UIKit                           0x000000018727772c -[UITextField _finishResignFirstResponder] + 52
16  UIKit                           0x0000000186bced58 -[UIResponder resignFirstResponder] + 316
17  UIKit                           0x0000000186c508b8 -[UITextField resignFirstResponder] + 120
18  UIKit                           0x0000000186d4b16c -[UITextField _setEnabled:animated:] + 124
19  PioNET                          0x000000010005110c -[LoginViewController startLogging] (LoginViewController.m:667)
20  Foundation                      0x0000000182faddb4 __NSThread__main__ + 1068
21  libsystem_pthread.dylib         0x00000001944dbdc4 _pthread_body + 160
22  libsystem_pthread.dylib         0x00000001944dbd20 _pthread_start + 156
23  libsystem_pthread.dylib         0x00000001944d8ef4 thread_start + 0

Thread 10 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x00000001700ed0b7
    x4: 0x0000000193469dfd   x5: 0x0000000105476460   x6: 0x000000000000006e   x7: 0x0000000000000fa0
    x8: 0x0000000008000000   x9: 0x0000000004000000  x10: 0x0000000000000200  x11: 0x0000000000000000
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000002  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000105478000  x21: 0x00000001983f1ce8  x22: 0x0000000170010360  x23: 0x0000000000000000
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000187316681  x27: 0x0000000194c08000
   x28: 0x0000000000000110  fp: 0x00000001054763c0   lr: 0x00000001944dd170
    sp: 0x00000001054763a0   pc: 0x000000019443f270 cpsr: 0x00000000

【问题讨论】:

  • 您应该标记该崩溃报告以获取有关崩溃发生位置的更多详细信息,这篇文章有一些关于如何做到这一点的详细信息:stackoverflow.com/questions/25855389/… 您可以随时从 Apple 评论中获取更多详细信息团队在这里:developer.apple.com/contact/app-store/?topic=clarification
  • 我刚刚在 Apple 的解决方案中心询问了更多信息。但我就是无法模拟崩溃。
  • 任何人都很难在这样的一堆地址中做出正面或反面。你有没有在你的机器上符号化崩溃报告?你能发布那个象征性的日志吗?
  • 好的,我做到了。这是我从符号化日志中得到的信息:-[GCMDataMessageManager didReceiveParsedMessage:] (in PioNET) + 253
  • 我不知道如何重现它...我假设您已经尝试在没有附加 Xcode 的情况下运行。我关于线程的问题是确保您没有在后台尝试与 UI 相关的事情。在后台下载很好,但如果您显示活动或进度,则应将它们分派回主线程。

标签: ios iphone ipad crash crash-reports


【解决方案1】:

您是否使用某些第三方控件?在为发布而编译时,某些控件崩溃的情况并不少见。 您可以尝试关闭发布版本的代码优化并测试它是否崩溃。

【讨论】:

  • 我使用的第三方框架是:AFNetworking 和现在的谷歌云消息传递。如何关闭发布构建和测试的代码优化?
  • @RafaelNascimento 在您的目标上“构建设置”,“Swift 编译器 - 代码生成”,然后是“优化级别”。
  • 谢谢。我做到了,但我仍然没有遇到同样的崩溃。
  • @RafaelNascimento 如果需要,您可以使用此答案将目标设置为作为发布版本运行:stackoverflow.com/questions/9831099/…
  • 我做到了,但这种崩溃再也没有发生过。
【解决方案2】:

看起来它崩溃了

0   PioNET 0x00000001000e3274 +[AFNetworkReachabilityManager sharedManager] (AFNetworkReachabilityManager.m:113)

AFNetworkReachabilityManager 这个类与网络是否可达有关。 您是否尝试过在不同的网络情况下测试您的应用程序,例如没有互联网或互联网连接不佳?这可能就是他们看到崩溃的地方。

【讨论】:

  • 我做到了。我在这种情况下进行了测试,之前从未遇到过这个问题。
  • 扩展 Spencevail 的答案,您似乎也有AFNetworkReachabilityManager.m 的源代码,这意味着您可以放置​​一个断点,或为该行调用中使用的所有变量添加日志,等等。基本上,那个地方有什么不对劲的地方。也许你正在调用一个僵尸对象。也许您正在超出数组的末尾。也许您正试图将 nil 值添加到数组或字典中。如果没有看到围绕问题的几行代码,真的很难判断。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多