【问题标题】:SIGABRT error Thread 0 crashed iOSSIGABRT 错误线程 0 使 iOS 崩溃
【发布时间】:2016-03-29 10:22:52
【问题描述】:

我是 iOS 新手并开发了一个应用程序。问题是应用程序在我使用时运行良好,但在客户端它崩溃并显示以下日志:-

Incident Identifier: 74AEF6C5-98CE-45D3-A7F3-67D54FD66D4D
CrashReporter Key:   TODO
Hardware Model:      iPhone5,2
Process:         MobileiOS [246]
Path:            /var/mobile/Containers/Bundle/Application/F9FF0CF3-DC56-428C-8CB0-40C31A3B4434/MobileiOS.app/MobileiOS
Identifier:      com.mjapps.MobileXam
Version:         1.0 (1.0)
Code Type:       ARM
Parent Process:  ??? [1]

Date/Time:       2016-03-29 08:26:57 +0000
OS Version:      iPhone OS 9.2.1 (13D15)
Report Version:  104

Exception Type:  SIGABRT
Exception Codes: #0 at 0x20e51c84
Crashed Thread:  0

Thread 0 Crashed:
0   libsystem_kernel.dylib              0x20e51c84 __pthread_kill (in libsystem_kernel.dylib) + 8
1   libsystem_c.dylib                   0x20de80c5 abort (in libsystem_c.dylib) + 109
2   MobileiOS                     0x00ac8fc0 0x31000 + 11108288
3   MobileiOS                     0x00a03fdd 0x31000 + 10301405
4   MobileiOS                     0x00a035dd 0x31000 + 10298845
5   MobileiOS                     0x00a027b3 0x31000 + 10295219
6   MobileiOS                     0x009fc45b 0x31000 + 10269787
7   MobileiOS                     0x003de9bc 0x31000 + 3856828
8   MobileiOS                     0x000b8c64 0x31000 + 556132
9   MobileiOS                     0x0008a7bc 0x31000 + 366524
10  MobileiOS                     0x0008b028 0x31000 + 368680
11  MobileiOS                     0x003ab754 0x31000 + 3647316
12  MobileiOS                     0x00a0ce87 0x31000 + 10337927
13  MobileiOS                     0x00a5ce85 0x31000 + 10665605
14  MobileiOS                     0x009a64cd 0x31000 + 9917645
15  MobileiOS                     0x009ab415 0x31000 + 9937941
16  UIKit                               0x256960c9 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] (in UIKit) + 673
17  UIKit                               0x25696209 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] (in UIKit) + 69
18  UIKit                               0x2568596d -[UITableView _updateVisibleCellsNow:isRecursive:] (in UIKit) + 2269
19  UIKit                               0x2569aa47 -[UITableView _performWithCachedTraitCollection:] (in UIKit) + 79
20  UIKit                               0x2543c16f -[UITableView layoutSubviews] (in UIKit) + 179
21  UIKit                               0x2534da83 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] (in UIKit) + 715
22  QuartzCore                          0x23429ad5 -[CALayer layoutSublayers] (in QuartzCore) + 129
23  QuartzCore                          0x234251d1 CA::Layer::layout_if_needed(CA::Transaction*) (in QuartzCore) + 353
24  QuartzCore                          0x23425061 CA::Layer::layout_and_display_if_needed(CA::Transaction*) (in QuartzCore) + 17
25  QuartzCore                          0x23424581 CA::Context::commit_transaction(CA::Transaction*) (in QuartzCore) + 369
26  QuartzCore                          0x23424233 CA::Transaction::commit() (in QuartzCore) + 615
27  QuartzCore                          0x2341d9ef CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) (in QuartzCore) + 139
28  CoreFoundation                      0x2117cb21 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation) + 21
29  CoreFoundation                      0x2117ae17 __CFRunLoopDoObservers (in CoreFoundation) + 283
30  CoreFoundation                      0x2117b255 __CFRunLoopRun (in CoreFoundation) + 973
31  CoreFoundation                      0x210cdbb9 CFRunLoopRunSpecific (in CoreFoundation) + 517
32  CoreFoundation                      0x210cd9ad CFRunLoopRunInMode (in CoreFoundation) + 109
33  GraphicsServices                    0x22347af9 GSEventRunModal (in GraphicsServices) + 161
34  UIKit                               0x253b9fb5 UIApplicationMain (in UIKit) + 145
35  MobileiOS                     0x00124568 0x31000 + 996712
36  MobileiOS                     0x000beab4 0x31000 + 580276
37  MobileiOS                     0x000bea74 0x31000 + 580212
38  MobileiOS                     0x000708e0 0x31000 + 260320
39  MobileiOS                     0x003ab754 0x31000 + 3647316
40  MobileiOS                     0x00a0ce87 0x31000 + 10337927
41  MobileiOS                     0x00a5ce85 0x31000 + 10665605
42  MobileiOS                     0x00a6054b 0x31000 + 10679627
43  MobileiOS                     0x00adbe88 0x31000 + 11185800
44  MobileiOS                     0x009b300d 0x31000 + 9969677
45  libdyld.dylib                       0x20d80873 start (in libdyld.dylib) + 3

客户端不想给我们一个测试用户,因此我无法调试它。任何可能失败的指导都会帮助我走上正确的道路。任何帮助表示赞赏。

【问题讨论】:

  • 在这里:0x00ac8fc0.
  • @trojanfoe 感谢您的快速回复。我无法真正理解这是什么。请您进一步解释一下
  • 你必须符号化崩溃报告。
  • @trojanfoe 我正在使用 Xamarin,所以我真的无法弄清楚这一点。这是我第一次尝试ios编程。
  • 正如@trojanfoe 所说,您需要对这个崩溃报告进行符号化以从中收集任何相关信息 - 因为您所拥有的只是内存地址。此处指南:jmillerdev.net/symbolicating-ios-crash-files-xamarin-ios

标签: ios xamarin crash-reports sigabrt


【解决方案1】:

为了完整起见,我将在此处为我的博客文章添加一个答案,该文章由 BytesGuy 在上面的 cmets 中链接。

您需要在客户端设备上运行的您构建的 .app。您还需要一个与此 .app 匹配的 .dSYM。除非您在构建 .app 文件时特别保留它,否则您不太可能拥有它。如果您仍然将它放在 bin/Release|Debug 文件夹中 - 使用它。如果没有,您将不得不构建一个新的 .app 和 .dSYM。这次将两者都保留在某个地方。

客户端需要使用这个新版本的 .app 文件并再次产生崩溃。现在您保留了与之匹配的 .app 和 .dSYM,您可以使用 my blog 中的技术来符号化任何新的崩溃报告。

【讨论】:

  • 感谢您的回答。我试着这样做,我可以设法象征它。我得到extra_method_info_offsets 作为错误。你知道这意味着什么吗?
猜你喜欢
  • 1970-01-01
  • 2014-11-08
  • 1970-01-01
  • 1970-01-01
  • 2018-02-01
  • 2018-01-09
  • 1970-01-01
  • 1970-01-01
  • 2015-11-23
相关资源
最近更新 更多