异常类型:EXC_CRASH (SIGABRT)

问题描述 投票:0回答:4
 Incident Identifier: B959CD08-FA2C-4A34-8D0C-343927FF6B86
 CrashReporter Key:   78e6625f679cb4cfb76f553075c64a197002c1bf
 Hardware Model:      iPad3,1
 Process:         ktv [50343]
 Path:
 /var/mobile/Applications/B8971D06-6001-49F7-81E1-8B88CDA5EB03/ktv.app/ktv
 Identifier:      ktv
 Version:         ??? (???)
 Code Type:       ARM (Native)
 Parent Process:  launchd [1]

 Date/Time:       2013-01-09 18:59:32.193 +0800
 OS Version:      iPhone OS 5.1.1 (9B206)
 Report Version:  104

 Exception Type:  EXC_CRASH (SIGABRT)
 Exception Codes: 0x00000000, 0x00000000
 Crashed Thread:  0

 Thread 0 name:  Dispatch queue: com.apple.main-thread
 Thread 0 Crashed:
 0   libsystem_kernel.dylib         0x30da732c __pthread_kill + 8
 1   libsystem_c.dylib              0x33338208 pthread_kill + 48
 2   libsystem_c.dylib              0x33331298 abort + 88
 3   libc++abi.dylib                    0x377c1f64 abort_message + 40
 4   libc++abi.dylib                    0x377bf3ea _ZL19safe_handler_callerPFvvE +114
 5   libc++abi.dylib                    0x377bf44a std::terminate() + 14
 6   libc++abi.dylib                    0x377c081e __cxa_rethrow + 82
 7   libobjc.A.dylib                    0x334772a2 objc_exception_rethrow + 6
 8   CoreFoundation                 0x3809c506 CFRunLoopRunSpecific + 398
 9   CoreFoundation                 0x3809c366 CFRunLoopRunInMode + 98
 10  GraphicsServices               0x3657f432 GSEventRunModal + 130
 11  UIKit                          0x30f4dcce UIApplicationMain + 1074
 12  ktv                                0x000af9b0 0xa6000 + 39344
 13  ktv                                0x000a86c0 0xa6000 + 9920

 Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
 Thread 1:
 0   libsystem_kernel.dylib         0x30d973a8 kevent + 24
 1   libdispatch.dylib              0x34a71f04 _dispatch_mgr_invoke + 708
 2   libdispatch.dylib              0x34a71c22 _dispatch_mgr_thread + 30

 Thread 2 name:  WebThread
 Thread 2:
 0   libsystem_kernel.dylib         0x30d97004 mach_msg_trap + 20
 1   libsystem_kernel.dylib         0x30d971fa mach_msg + 50
 2   CoreFoundation                 0x3811a3ec __CFRunLoopServiceMachPort + 120
 3   CoreFoundation                 0x38119124 __CFRunLoopRun + 876
 4   CoreFoundation                 0x3809c49e CFRunLoopRunSpecific + 294
 5   CoreFoundation                 0x3809c366 CFRunLoopRunInMode + 98
 6   WebCore                            0x31524c9c _ZL12RunWebThreadPv + 396
 7   libsystem_c.dylib              0x332f972e _pthread_start + 314
 8   libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 3 name:  com.apple.NSURLConnectionLoader
 Thread 3:
 0   libsystem_kernel.dylib         0x30d97004 mach_msg_trap + 20
 1   libsystem_kernel.dylib         0x30d971fa mach_msg + 50
 2   CoreFoundation                 0x3811a3ec __CFRunLoopServiceMachPort + 120
 3   CoreFoundation                 0x38119124 __CFRunLoopRun + 876
 4   CoreFoundation                 0x3809c49e CFRunLoopRunSpecific + 294
 5   CoreFoundation                 0x3809c366 CFRunLoopRunInMode + 98
 6   Foundation                     0x372d7bb2 +[NSURLConnection(Loader)_resourceLoadLoop:] + 302
 7   Foundation                     0x372d7a7a -[NSThread main] + 66
 8   Foundation                     0x3736b58a __NSThread__main__ + 1042
 9   libsystem_c.dylib              0x332f972e _pthread_start + 314
 10  libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 4 name:  com.apple.CFSocket.private
 Thread 4:
 0   libsystem_kernel.dylib         0x30da7570 __select + 20
 1   CoreFoundation                 0x3811e63a __CFSocketManager + 726
 2   libsystem_c.dylib              0x332f972e _pthread_start + 314
 3   libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 5:
 0   libsystem_kernel.dylib         0x30d97004 mach_msg_trap + 20
 1   libsystem_kernel.dylib         0x30d971fa mach_msg + 50
 2   CoreFoundation                 0x3811a3ec __CFRunLoopServiceMachPort + 120
 3   CoreFoundation                 0x38119124 __CFRunLoopRun + 876
 4   CoreFoundation                 0x3809c49e CFRunLoopRunSpecific + 294
 5   CoreFoundation                 0x3809c366 CFRunLoopRunInMode + 98
 6   ktv                                0x0011683c 0xa6000 + 460860
 7   Foundation                     0x372d7a7a -[NSThread main] + 66
 8   Foundation                     0x3736b58a __NSThread__main__ + 1042
 9   libsystem_c.dylib              0x332f972e _pthread_start + 314
 10  libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 6:
 0   libsystem_kernel.dylib         0x30da7628 __semwait_signal + 24
 1   libsystem_c.dylib              0x332fdb1a nanosleep + 138
 2   libsystem_c.dylib              0x33308608 sleep + 40
 3   ktv                                0x000b09fa 0xa6000 + 43514
 4   Foundation                     0x372d7a7a -[NSThread main] + 66
 5   Foundation                     0x3736b58a __NSThread__main__ + 1042
 6   libsystem_c.dylib              0x332f972e _pthread_start + 314
 7   libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 7 name:  WebCore: CFNetwork Loader
 Thread 7:
 0   libsystem_kernel.dylib         0x30d97004 mach_msg_trap + 20
 1   libsystem_kernel.dylib         0x30d971fa mach_msg + 50
 2   CoreFoundation                 0x3811a3ec __CFRunLoopServiceMachPort + 120
 3   CoreFoundation                 0x38119124 __CFRunLoopRun + 876
 4   CoreFoundation                 0x3809c49e CFRunLoopRunSpecific + 294
 5   CoreFoundation                 0x3809c366 CFRunLoopRunInMode + 98
 6   WebCore                            0x3154e0d2 _ZN7WebCoreL15runLoaderThreadEPv + 122
 7   libsystem_c.dylib              0x332f972e _pthread_start + 314
 8   libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 8 name:  com.apple.coremedia.player.async
 Thread 8:
 0   libsystem_kernel.dylib         0x30da7068 __psynch_cvwait + 24
 1   libsystem_c.dylib              0x332f9a46 _pthread_cond_wait + 634
 2   libsystem_c.dylib              0x332f97c2 pthread_cond_wait + 34
 3   CoreMedia                      0x35d3a868 FigSemaphoreWaitRelative + 268
 4   MediaToolbox                   0x329233e6 fpa_AsyncMovieControlThread + 22
 5   CoreMedia                      0x35d598b4 figThreadMain + 168
 6   libsystem_c.dylib              0x332f972e _pthread_start + 314
 7   libsystem_c.dylib              0x332f95e8 thread_start + 0

 Thread 9:
 0   libsystem_kernel.dylib         0x30da7cd4 __workq_kernreturn + 8
 1   libsystem_c.dylib              0x332f3f36 _pthread_wqthread + 610
 2   libsystem_c.dylib              0x332f3cc8 start_wqthread + 0

 Thread 10:
 0   libsystem_kernel.dylib         0x30da7cd4 __workq_kernreturn + 8
 1   libsystem_c.dylib              0x332f3f36 _pthread_wqthread + 610
 2   libsystem_c.dylib              0x332f3cc8 start_wqthread + 0

 Thread 11:
 0   libsystem_kernel.dylib         0x30da7cd4 __workq_kernreturn + 8
 1   libsystem_c.dylib              0x332f3f36 _pthread_wqthread + 610
 2   libsystem_c.dylib              0x332f3cc8 start_wqthread + 0

 Thread 12:
 0   libsystem_kernel.dylib         0x30da7cd4 __workq_kernreturn + 8
 1   libsystem_c.dylib              0x332f3f36 _pthread_wqthread + 610
 2   libsystem_c.dylib              0x332f3cc8 start_wqthread + 0

 Thread 13:
 0   libsystem_kernel.dylib         0x30da7cd4 __workq_kernreturn + 8
 1   libsystem_c.dylib              0x332f3f36 _pthread_wqthread + 610
 2   libsystem_c.dylib              0x332f3cc8 start_wqthread + 0

 Thread 0 crashed with ARM Thread State:
     r0: 0x00000000    r1: 0x00000000      r2: 0x00000001      r3: 0x00000000
        r4: 0x00000006    r5: 0x3ec73d98      r6: 0x00000002      r7: 0x2fea4acc
            r8: 0x2fea4870    r9: 0x00000000     r10: 0x0000000a     r11:
            0x00000009
                ip: 0x00000148    sp: 0x2fea4ac0      lr: 0x3333820f      pc:
                0x30da732c
                  cpsr: 0x00080010

                  Binary Images:
                     0xa6000 -   0x264fff +ktv armv7
                     <071d076aba693352b8ae722bd01cace1>
                     /var/mobile/Applications/B8971D06-6001-49F7-81E1-8B88CDA5EB03/ktv.app/ktv
                       0x2eb000 -   0x2ebfff +MobileSubstrate.dylib armv6
                       <d8da1cc9b8ea37cfba03a60549cdac4c>
                       /Library/MobileSubstrate/MobileSubstrate.dylib
                         0x322000 -   0x323fff +SubstrateLoader.dylib armv6
                         <825b732151e6379b9cbec6e597a986fa>
                         /Library/Frameworks/CydiaSubstrate.framework/Libraries/SubstrateLoader.dylib
                         0x2fea5000 - 0x2fec6fff  dyld armv7
                         <77eddfd654df393ba9c95ff01715fd08> /usr/lib/dyld
                         0x30625000 - 0x30625fff  vecLib armv7
                         <a2cfe25e77aa36bfb4a30b2d0d2dd465>
                         /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
                         0x306ef000 - 0x306f6fff  SpringBoardUI armv7
                         <84e082f96770383096a5b083841d3f59>
                         /System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI
                         0x306f7000 - 0x307cffff  vImage armv7
                         <caf3648be2933384b6aa1ae7408ab4f0>
                         /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
                         0x30800000 - 0x3080afff  libvMisc.dylib armv7
                         <e8248c797b9b363594bb652ddf7ce16d>
                         /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
                         0x3080d000 - 0x30842fff  DataAccess armv7
                         <89fd0c22338b37538cf61803a0bca9e2>
                         /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
                         0x30882000 - 0x308dffff  StoreServices armv7
                         <6ce256d3cf433e4aa1af8d696bf1f75d>
                         /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
                         0x308e0000 - 0x30ba1fff  libLAPACK.dylib armv7
                         <0e94e9a7e7a334649afaccae0f1215a2>
                         /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
                         0x30bb3000 - 0x30bbbfff  MobileWiFi armv7
                         <b76c3e9fb78234c392058250d4620e72>
                         /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
                         0x30bbe000 - 0x30be3fff  OpenCL armv7

有人知道这起事故的情况吗?所有的信息都在这里,我仍然不知道有什么问题。重要的是我发现很多崩溃都包含这部分,但可能导致很多原因。

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x30da732c __pthread_kill + 8
1   libsystem_c.dylib               0x33338208 pthread_kill + 48
2   libsystem_c.dylib               0x33331298 abort + 88
3   libc++abi.dylib                 0x377c1f64 abort_message + 40
4   libc++abi.dylib                 0x377bf3ea _ZL19safe_handler_callerPFvvE + 114
5   libc++abi.dylib                 0x377bf44a std::terminate() + 14
6   libc++abi.dylib                 0x377c081e __cxa_rethrow + 82
7   libobjc.A.dylib                 0x334772a2 objc_exception_rethrow + 6
8   CoreFoundation                  0x3809c506 CFRunLoopRunSpecific + 398
9   CoreFoundation                  0x3809c366 CFRunLoopRunInMode + 98
10  GraphicsServices                0x3657f432 GSEventRunModal + 130
11  UIKit                           0x30f4dcce UIApplicationMain + 1074
12  ktv                             0x000af9b0 0xa6000 + 39344
13  ktv                             0x000a86c0 0xa6000 + 9920

我可以理解为这部分并不是我的应用程序崩溃的真正原因吗?

ios crash sigabrt
4个回答
21
投票

这不是崩溃,而是由于异常而中止。这意味着您的应用程序正在将错误数据传递给系统例程,并且该例程表示它是错误的并且无法继续,因此它正在终止您的应用程序。控制台应该显示一些有关出错的信息。可能发生的一种常见异常是尝试从仅包含 n 个对象的数组中获取第 n + 1 个对象。 (例如,当只有 4 个元素时,获取

NSArray
的第 5 个元素。)控制台将显示一条消息,说明这一点。因此,请检查控制台,看看可能发生了什么。


0
投票

解决了!!

我已经解决了这个问题: 从您的项目文件中替换以下文件(如果您有项目的备份):

  1. 豆荚
  2. 项目名称.xcworkspace
  3. podfile.lock,podfile
  4. 如果缺少任何 pod,请在 podfile 中添加 pod 并安装 pod
  5. 构建您的项目并运行

请获取 zip 格式的项目备份,这将有助于解决此错误。



-4
投票

我删除了 Main.storyboard 并将其替换为另一个项目的 Storyboard。我的解决方案是删除我的项目并重新创建它。

© www.soinside.com 2019 - 2024. All rights reserved.