web-dev-qa-db-ja.com

例外タイプ:EXC_CRASH(SIGABRT)

 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

この部分が私のアプリがクラッシュする実際のポイントではないことを理解できますか?

7
Zhou

クラッシュではなく、例外による中止です。これは、アプリケーションが不良データをシステムルーチンに渡していることを意味し、ルーチンはそれが不良で続行できないと言っているため、アプリを強制終了します。コンソールには、何が悪かったのかが表示されます。発生する可能性のある一般的な例外の1つは、n個のオブジェクトのみを含む配列からn +1番目のオブジェクトを取得しようとすることです。 (たとえば、要素が4つしかない場合にNSArrayの5番目の要素を取得します。)コンソールには、そのことを示すメッセージが表示されます。したがって、コンソールをチェックして、何が起こったのかを確認してください。

10
user1118321

Main.storyboardを削除し、別のプロジェクトのストーリーボードに置き換えました。私の解決策は、プロジェクトを削除して再作成することでした。

0
Jacob