Can anyone help me understand a crash report? This is the first time I have ever had to deal with one since iOS App developing in 8 months.
I know it is something to do with dismissing a view controller that is causing it, but I have made no changes to the code regarding this but all of a sudden it is starting to cause problems. Any guidance on where to start would be amazing.
Date/Time: 2013-03-10 14:56:06.091 +0000
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x3afee5b6 objc_msgSend + 22
1 AVFoundation 0x3247f752 -[AVAudioPlayer(AVAudioPlayerPriv) finishedPlaying:] + 74
2 Foundation 0x33c700f0 __NSThreadPerformPerform + 456
3 CoreFoundation 0x3332e680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
4 CoreFoundation 0x3332dee4 __CFRunLoopDoSources0 + 208
5 CoreFoundation 0x3332ccb2 __CFRunLoopRun + 642
6 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
7 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
8 GraphicsServices 0x36e612e6 GSEventRunModal + 70
9 UIKit 0x351b52fc UIApplicationMain + 1116
10 iWhovian 0x000391fe main (main.m:15)
11 iWhovian 0x0002f56c start + 36
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3b4e1648 kevent64 + 24
1 libdispatch.dylib 0x3b41a4ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3b40cdf4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3b4e0eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b4e1048 mach_msg + 36
2 CoreFoundation 0x3332e040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x3332cd9e __CFRunLoopRun + 878
4 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
6 WebCore 0x39294500 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
8 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3b4f108c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3b442d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3b44cf14 pthread_cond_wait + 36
3 Foundation 0x33bec4d2 -[NSCondition wait] + 190
4 iWhovian 0x0006ef90 -[PFCommandCache runLoop] (PFCommandCache.m:491)
5 Foundation 0x33c6fe80 __NSThread__main__ + 968
6 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
7 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 4 name: AQClient
Thread 4:
0 libsystem_kernel.dylib 0x3b4e0eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b4e1048 mach_msg + 36
2 CoreFoundation 0x3332e040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x3332cd9e __CFRunLoopRun + 878
4 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
6 AudioToolbox 0x32d816fe GenericRunLoopThread::Entry(void*) + 134
7 AudioToolbox 0x32d62882 CAPThread::Entry(CAPThread*) + 294
8 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
9 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3b4f1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b43fcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b43fa12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 6 name: Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.gamed
Thread 6:
0 libobjc.A.dylib 0x3afee5b0 objc_msgSend + 16
1 CoreFoundation 0x332b0fdc -[__NSSetI member:] + 140
2 CoreFoundation 0x332b0f44 -[NSSet containsObject:] + 28
3 Foundation 0x33c08978 -[NSCoder _validateAllowedClass:forKey:allowingInvocations:] + 124
4 Foundation 0x33c08402 _decodeObjectStuff + 282
5 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
6 GameKit 0x33e2f8fa -[GKInternalRepresentation initWithCoder:] + 238
7 Foundation 0x33c086f2 _decodeObjectStuff + 1034
8 Foundation 0x33d1fda8 -[NSXPCDecoder _decodeArrayOfObjectsForKey:] + 532
9 Foundation 0x33bf4ebc -[NSArray(NSArray) initWithCoder:] + 784
10 Foundation 0x33c086f2 _decodeObjectStuff + 1034
11 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
12 GameKit 0x33e2f8fa -[GKInternalRepresentation initWithCoder:] + 238
13 Foundation 0x33c086f2 _decodeObjectStuff + 1034
14 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
15 Foundation 0x33c09fe8 _walkAndDecodeData + 1708
16 Foundation 0x33c0988c decodeInvocationArguments + 1368
17 Foundation 0x33c08fc8 -[NSXPCDecoder decodeInvocation] + 860
18 Foundation 0x33c08630 _decodeObjectStuff + 840
19 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
20 Foundation 0x33c07c04 -[NSXPCConnection _decodeAndInvokeReplyBlockWithData:] + 548
21 Foundation 0x33d1eedc __message_handler_block_invoke_0 + 32
22 libdispatch.dylib 0x3b40b11c _dispatch_call_block_and_release + 8
23 libdispatch.dylib 0x3b40a996 _dispatch_queue_drain$VARIANT$up + 142
24 libdispatch.dylib 0x3b40a890 _dispatch_queue_invoke$VARIANT$up + 32
25 libdispatch.dylib 0x3b419212 _dispatch_root_queue_drain + 190
26 libdispatch.dylib 0x3b4193b4 _dispatch_worker_thread2 + 80
27 libsystem_c.dylib 0x3b43fa0e _pthread_wqthread + 358
28 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3b4f1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b43fcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b43fa12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x208a4ef0 r1: 0x38e042ae r2: 0x33f0ac6c r3: 0x00000008
r4: 0x20747372 r5: 0x2089ac70 r6: 0x33f0ac6c r7: 0x2fdd2df8
r8: 0x3b667530 r9: 0x0e3810ab r10: 0x00000000 r11: 0x1fd4dd90
ip: 0x3b5734ac sp: 0x2fdd2de0 lr: 0x3247f757 pc: 0x3afee5b6
cpsr: 0x20070030
I ran into this one a while ago. The problem can be fixed by setting the AVAudioPlayer instance's delegate to nil in your view controller's dealloc method. Unless you do this, the audio player tries to make one last call to its delegate to let it know that is is done playing. But if the delegate has been deallocated, you get this crash.
- (void)dealloc {
_myPlayer.delegate = nil; // _myPlayer is your AVAudioPlayer instance
[super dealloc]; // Only is you are not using ARC
}
You're most likely trying to access an object, that hast been deallocated. Have a look at
Debugging EXC_BAD_ACCESS Error in Xcode using Instruments (Archived)
to see how you can track it down.
Related
My iOS application crashed. In crash log I've found such info:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 9
Thread 9 Crashed:
0 libsystem_kernel.dylib 0x39189c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x391eec1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x391eead8 start_wqthread + 4
I have no idea how to interpret this. There are some additional actions happening in other thread but they looks ok. Any idea why thread which does nothing crashed?
Full crash report:
Incident Identifier: 10D06EC1-B25F-47C3-99B8-6940748ACB87
CrashReporter Key: 5b7280661b8ec1e78028ed23448f54ab51a78b2c
Hardware Model: iPad4,5
Process: MyApp [4949]
Path: /var/mobile/Applications/584B97BE-1555-4B03-A00D-9A563AA71E48/MyApp.app/MyApp
Identifier: com.me.myapp
Version: 2.0.0.1 (2.0.0.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-08-07 10:58:24.111 +0200
OS Version: iOS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 9
Thread 0:
0 libsystem_kernel.dylib 0x39176a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39176849 mach_msg + 37
2 CoreFoundation 0x2dfc55e5 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2dfc3d4b __CFRunLoopRun + 859
4 CoreFoundation 0x2df2e725 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2df2e507 CFRunLoopRunInMode + 103
6 GraphicsServices 0x32e676cf GSEventRunModal + 135
7 UIKit 0x3088f86d UIApplicationMain + 1133
8 Myapp 0x00186623 main (main.m:20)
9 libdyld.dylib 0x390d2ab5 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x39176804 kevent64 + 24
1 libdispatch.dylib 0x390c5051 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x390bf2df _dispatch_mgr_thread + 35
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x39176a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39176849 mach_msg + 37
2 CoreFoundation 0x2dfc55e5 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2dfc3d05 __CFRunLoopRun + 789
4 CoreFoundation 0x2df2e725 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2df2e507 CFRunLoopRunInMode + 103
6 Foundation 0x2e96f23d +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2e9e4a0b __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
9 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
10 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x39189434 __select + 20
1 CoreFoundation 0x2dfc94df __CFSocketManager + 483
2 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
3 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
4 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x39176a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39176849 mach_msg + 37
2 CoreFoundation 0x2dfc55e5 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2dfc3d05 __CFRunLoopRun + 789
4 CoreFoundation 0x2df2e725 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2df2e507 CFRunLoopRunInMode + 103
6 WebCore 0x364ccc71 RunWebThread(void*) + 417
7 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
8 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
9 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x39188f2c __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x391eff63 _pthread_cond_wait + 519
2 libsystem_pthread.dylib 0x391f0d9d pthread_cond_wait + 37
3 JavaScriptCore 0x2ef5d309 JSC::BlockAllocator::blockFreeingThreadMain() + 205
4 JavaScriptCore 0x2ef5a971 WTF::wtfThreadEntryPoint(void*) + 13
5 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
6 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
7 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x39188f2c __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x391eff63 _pthread_cond_wait + 519
2 libsystem_pthread.dylib 0x391f0d9d pthread_cond_wait + 37
3 JavaScriptCore 0x2f0fbcb3 JSC::GCThread::waitForNextPhase() + 75
4 JavaScriptCore 0x2f0fbd0d JSC::GCThread::gcThreadMain() + 49
5 JavaScriptCore 0x2ef5a971 WTF::wtfThreadEntryPoint(void*) + 13
6 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
7 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
8 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x39176a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39176849 mach_msg + 37
2 CoreFoundation 0x2dfc55e5 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2dfc3d05 __CFRunLoopRun + 789
4 CoreFoundation 0x2df2e725 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2df72347 CFRunLoopRun + 95
6 CoreMotion 0x2e5ed4fd ___lldb_unnamed_function1426$$CoreMotion + 725
7 libsystem_pthread.dylib 0x391f0957 _pthread_body + 139
8 libsystem_pthread.dylib 0x391f08c7 _pthread_start + 99
9 libsystem_pthread.dylib 0x391eeae4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x39188744 __lseek + 8
1 Foundation 0x2e9aa02f -[NSConcreteFileHandle readDataOfLength:] + 119
2 MyApp 0x001549b1 -[MyClass myMethod:] (MyClass.m:425)
3 MyApp 0x001540d9 -[MyClass myMethod:] (MyClass.m:425)
4 MyApp 0x004b58d9 -[MyClass myMethod:] (MyClass.m:425)
5 MyApp 0x004b6bff -[MyClass myMethod:] (MyClass.m:425)
6 MyApp 0x004b88e1 -[MyClass myMethod:] (MyClass.m:425)
7 MyApp 0x004b0203 -[MyClass myMethod:] (MyClass.m:425)
8 CoreFoundation 0x2dffe410 __invoking___ + 64
9 CoreFoundation 0x2df48963 -[NSInvocation invoke] + 283
10 Foundation 0x2e9d1d05 -[NSInvocationOperation main] + 109
11 Foundation 0x2e92f871 -[__NSOperationInternal _start:] + 769
12 Foundation 0x2e9d3741 __NSOQSchedule_f + 57
13 libdispatch.dylib 0x390c2cb9 _dispatch_queue_drain + 485
14 libdispatch.dylib 0x390bfc6b _dispatch_queue_invoke + 39
15 libdispatch.dylib 0x390c35ef _dispatch_root_queue_drain + 75
16 libdispatch.dylib 0x390c38d9 _dispatch_worker_thread2 + 53
17 libsystem_pthread.dylib 0x391eec15 _pthread_wqthread + 297
18 libsystem_pthread.dylib 0x391eead8 start_wqthread + 4
Thread 9 Crashed:
0 libsystem_kernel.dylib 0x39189c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x391eec1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x391eead8 start_wqthread + 4
Thread 10:
0 libsystem_c.dylib 0x3911ff65 usleep$NOCANCEL + 1
1 libsystem_c.dylib 0x39139ffd abort + 81
2 libsystem_malloc.dylib 0x391b772d szone_error + 313
3 libsystem_malloc.dylib 0x391b79ef free_tiny_botch + 63
4 CoreFoundation 0x2e012bb4 __CFBasicHashRehash + 2884
5 CoreFoundation 0x2e01362c __CFBasicHashAddValue + 96
6 CoreFoundation 0x2df2d850 CFBasicHashAddValue + 3320
7 CoreData 0x2dd6d861 _PFFastMOCObjectWillChange + 217
8 CoreData 0x2dd6d66f _PF_ManagedObject_WillChangeValueForKeyIndex + 211
9 CoreData 0x2dd6d4ff _sharedIMPL_setvfk_core + 107
10 MyApp 0x0019dcaf -[MyClass myMethod:] (MyClass.m:425)
11 MyApp 0x0019ec49 -[MyClass myMethod:] (MyClass.m:425)
12 CoreFoundation 0x2dffe410 __invoking___ + 64
13 CoreFoundation 0x2df48963 -[NSInvocation invoke] + 283
14 Foundation 0x2e9d1d05 -[NSInvocationOperation main] + 109
15 Foundation 0x2e92f871 -[__NSOperationInternal _start:] + 769
16 Foundation 0x2e9d3741 __NSOQSchedule_f + 57
17 libdispatch.dylib 0x390c2cb9 _dispatch_queue_drain + 485
18 libdispatch.dylib 0x390bfc6b _dispatch_queue_invoke + 39
19 libdispatch.dylib 0x390c35ef _dispatch_root_queue_drain + 75
20 libdispatch.dylib 0x390c38d9 _dispatch_worker_thread2 + 53
21 libsystem_pthread.dylib 0x391eec15 _pthread_wqthread + 297
22 libsystem_pthread.dylib 0x391eead8 start_wqthread + 4
Thread 9 crashed with ARM Thread State (32-bit):
r0: 0x00000004 r1: 0x00000000 r2: 0x00000000 r3: 0x00000000
r4: 0x276ea000 r5: 0x00060001 r6: 0x00008983 r7: 0x276e9fe0
r8: 0x00000000 r9: 0xfffffffb r10: 0x00000000 r11: 0x00000000
ip: 0x00000170 sp: 0x276e9fc8 lr: 0x391eec23 pc: 0x39189c70
cpsr: 0x40000010
Could someone please help me understand this crash report. I can't make head or tail of it.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 8
Last Exception Backtrace:
0 CoreFoundation 0x2ec73fce __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3983dcca objc_exception_throw + 34
2 CoreFoundation 0x2ec73ea8 +[NSException raise:format:arguments:] + 96
3 Foundation 0x2f620d56 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 86
4 UIKit 0x314bce9a -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 166
5 UIKit 0x314cdaf4 -[UIKeyboardImpl prepareForSelectionChange] + 88
6 UIKit 0x314afe10 -[UIFieldEditor setAttributedText:andSetCaretSelectionAfterText:] + 52
7 UIKit 0x314cd77a -[UIFieldEditor setText:andSetCaretSelectionAfterText:] + 130
8 UIKit 0x314cd508 -[UITextField setText:] + 220
9 UIKit 0x316852c8 -[UISearchBar setText:] + 40
10 Farm Hand 0x0009b906 0x7000 + 608518
11 Foundation 0x2f65ca5a __NSThread__main__ + 1058
12 libsystem_pthread.dylib 0x39e69914 _pthread_body + 136
13 libsystem_pthread.dylib 0x39e69886 _pthread_start + 98
14 libsystem_pthread.dylib 0x39e67aa0 thread_start + 4
Thread 0:
0 libsystem_kernel.dylib 0x39deda58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ded854 mach_msg + 44
2 CoreFoundation 0x2ec3e896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ec3d002 __CFRunLoopRun + 850
4 CoreFoundation 0x2eba7f0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eba7cee CFRunLoopRunInMode + 102
6 GraphicsServices 0x33acd65e GSEventRunModal + 134
7 UIKit 0x314f3168 UIApplicationMain + 1132
8 Farm Hand 0x0009de44 0x7000 + 618052
9 libdyld.dylib 0x39d4aab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39ded808 kevent64 + 24
1 libdispatch.dylib 0x39d2f078 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39d2edfe _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2:
0 libsystem_kernel.dylib 0x39deda58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ded854 mach_msg + 44
2 CoreFoundation 0x2ec3e896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ec3cfbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eba7f0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2ebeb9fe CFRunLoopRun + 94
6 CoreMotion 0x2f2653a8 ___lldb_unnamed_function1423$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39e69916 _pthread_body + 138
8 libsystem_pthread.dylib 0x39e69886 _pthread_start + 98
9 libsystem_pthread.dylib 0x39e67aa0 thread_start + 4
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x39e00434 __select + 20
1 CoreFoundation 0x2ec42758 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x39e69916 _pthread_body + 138
3 libsystem_pthread.dylib 0x39e69886 _pthread_start + 98
4 libsystem_pthread.dylib 0x39e67aa0 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39df11a8 kevent + 24
1 ExternalAccessory 0x2f58567a -[EAInputStream _readInputFromAccThread] + 382
2 Foundation 0x2f65ca5a __NSThread__main__ + 1058
3 libsystem_pthread.dylib 0x39e69916 _pthread_body + 138
4 libsystem_pthread.dylib 0x39e69886 _pthread_start + 98
5 libsystem_pthread.dylib 0x39e67aa0 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x39e00c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39e67bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39e67a94 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x39e00c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39e67bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39e67a94 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x39e00c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39e67bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39e67a94 start_wqthread + 4
Thread 8 Crashed:
0 libsystem_kernel.dylib 0x39e001f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x39e6a792 pthread_kill + 54
2 libsystem_c.dylib 0x39db0fd8 abort + 72
3 libc++abi.dylib 0x390dfcd2 abort_message + 70
4 libc++abi.dylib 0x390f86e0 default_terminate_handler() + 248
5 libobjc.A.dylib 0x3983df62 _objc_terminate() + 190
6 libc++abi.dylib 0x390f61c4 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x390f5a18 __cxa_throw + 112
8 libobjc.A.dylib 0x3983dd9e objc_exception_throw + 246
9 CoreFoundation 0x2ec73ea8 +[NSException raise:format:arguments:] + 96
10 Foundation 0x2f620d56 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 86
11 UIKit 0x314bce9a -[UIKeyboardTaskQueue waitUntilAllTasksAreFinished] + 166
12 UIKit 0x314cdaf4 -[UIKeyboardImpl prepareForSelectionChange] + 88
13 UIKit 0x314afe10 -[UIFieldEditor setAttributedText:andSetCaretSelectionAfterText:] + 52
14 UIKit 0x314cd77a -[UIFieldEditor setText:andSetCaretSelectionAfterText:] + 130
15 UIKit 0x314cd508 -[UITextField setText:] + 220
16 UIKit 0x316852c8 -[UISearchBar setText:] + 40
17 Farm Hand 0x0009b908 0x7000 + 608520
18 Foundation 0x2f65ca5a __NSThread__main__ + 1058
19 libsystem_pthread.dylib 0x39e69916 _pthread_body + 138
20 libsystem_pthread.dylib 0x39e69886 _pthread_start + 98
21 libsystem_pthread.dylib 0x39e67aa0 thread_start + 4
Thread 8 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x04d2f000 r6: 0x00000000 r7: 0x04d2dd14
r8: 0x1804a3c0 r9: 0x00000001 r10: 0x31ae10c8 r11: 0x00000000
ip: 0x00000148 sp: 0x04d2dd08 lr: 0x39e6a797 pc: 0x39e001f0
cpsr: 0x00000010
I'm using the ExternalAccessory framework which I've had problems with in the past and the App crashed whilst receiving data from a bluetooth connected external device. However, I can't tell if that was what caused the crash.
Thanks in advance.
The crash was caused by something that went wrong inside of:
[UIKeyboardTaskQueue waitUntilAllTasksAreFinished]
which was called in the process of executing:
[UISearchBar setText:]
So, it seems, you typed something in a search bar, and the app crashed.
I am trying to replicate a bug in my app which is happening for users occasionally. I have the below crash report. Am I right in thinking the app is crashing due to an NSDictionary not having a value for a specific key ? And is there anything else I can deduce from the report ?
Date/Time: 2013-09-19 12:12:54.627 +0800
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_CRASH (SIGTRAP)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x31bbd3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x39a5795e objc_exception_throw + 26
2 CoreFoundation 0x31b0e876 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 130
3 CoreFoundation 0x31b0e732 +[NSDictionary dictionaryWithObject:forKey:] + 46
4 MyApp 0x00103f34 -[WebViewJavascriptBridge _sendData:responseCallback:handlerName:] (WebViewJavascriptBridge.m:95)
5 MyApp 0x00103d2a -[WebViewJavascriptBridge callHandler:data:responseCallback:] (WebViewJavascriptBridge.m:67)
6 MyApp 0x00103cec -[WebViewJavascriptBridge callHandler:data:] (WebViewJavascriptBridge.m:63)
7 MyApp 0x000c3be2 -[ContractViewController updateHTML] (ContractViewController.m:293)
8 MyApp 0x000c2fec -[ContractViewController startEditableContract] (ContractViewController.m:199)
9 MyApp 0x000c2bc2 -[ContractViewController viewDidLoad] (ContractViewController.m:192)
10 UIKit 0x339eb574 -[UIViewController loadViewIfRequired] + 360
11 UIKit 0x33a401f2 -[UIViewController contentScrollView] + 22
12 UIKit 0x33a40138 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
13 UIKit 0x33a4001c -[UINavigationController _layoutViewController:] + 28
14 UIKit 0x33a3ff48 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
15 UIKit 0x33a3f694 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
16 UIKit 0x33a3f57c -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
17 UIKit 0x33a2db56 -[UINavigationController pushViewController:transition:forceImmediate:] + 854
18 UIKit 0x33a2d7f6 -[UINavigationController pushViewController:animated:] + 34
19 MyApp 0x000b91dc -[ExhibitorDetailsViewController contractLoadButton:] (ExhibitorDetailsViewController.m:680)
20 UIKit 0x33ab7082 -[UIApplication sendAction:to:from:forEvent:] + 66
21 UIKit 0x33ab7036 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
22 UIKit 0x33ab7010 -[UIControl sendAction:to:forEvent:] + 40
23 UIKit 0x33ab68c6 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
24 UIKit 0x33ab6db4 -[UIControl touchesEnded:withEvent:] + 484
25 UIKit 0x339df5f4 -[UIWindow _sendTouchesForEvent:] + 520
26 UIKit 0x339cc8dc -[UIApplication sendEvent:] + 376
27 UIKit 0x339cc1ea _UIApplicationHandleEvent + 6194
28 GraphicsServices 0x356c05f2 _PurpleEventCallback + 586
29 GraphicsServices 0x356c0222 PurpleEventCallback + 30
30 CoreFoundation 0x31b923e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
31 CoreFoundation 0x31b92386 __CFRunLoopDoSource1 + 134
32 CoreFoundation 0x31b9120a __CFRunLoopRun + 1378
33 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
34 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
35 GraphicsServices 0x356bf336 GSEventRunModal + 70
36 UIKit 0x33a202b4 UIApplicationMain + 1116
37 MyApp 0x00095e02 main (main.m:15)
38 libdyld.dylib 0x39e84b1c start + 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39f4a838 __kill + 8
1 MyApp 0x00107ed0 TFHandleExceptions + 988
2 CoreFoundation 0x31bbd6cc __handleUncaughtException + 624
3 libobjc.A.dylib 0x39a57a46 _objc_terminate() + 126
4 libc++abi.dylib 0x394a4118 safe_handler_caller(void (*)()) + 76
5 libc++abi.dylib 0x394a41b0 std::terminate() + 16
6 libc++abi.dylib 0x394a5626 __cxa_rethrow + 90
7 libobjc.A.dylib 0x39a579b0 objc_exception_rethrow + 8
8 CoreFoundation 0x31b0429c CFRunLoopRunSpecific + 452
9 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
10 GraphicsServices 0x356bf336 GSEventRunModal + 70
11 UIKit 0x33a202b4 UIApplicationMain + 1116
12 MyApp 0x00095e02 main (main.m:15)
13 libdyld.dylib 0x39e84b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39f3b5d0 kevent64 + 24
1 libdispatch.dylib 0x39e76d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x39e72374 _dispatch_mgr_thread + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x39f4b0fc __psynch_mutexwait + 24
1 libsystem_c.dylib 0x39e93e66 pthread_mutex_lock + 390
2 WebCore 0x37aea2b8 _WebTryThreadLock(bool) + 184
3 WebCore 0x37aea1e8 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 40
4 CoreFoundation 0x31b9293e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
5 CoreFoundation 0x31b90c34 __CFRunLoopDoObservers + 272
6 CoreFoundation 0x31b91076 __CFRunLoopRun + 974
7 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
8 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
9 WebCore 0x37ae8390 RunWebThread(void*) + 440
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x32451888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x324d522c __NSThread__main__ + 968
8 libsystem_c.dylib 0x39ea40de _pthread_start + 306
9 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0011cf4c -[TFNetworkManager networkRunLoopThreadEntry] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x39f4b594 __select + 20
1 CoreFoundation 0x31b96474 __CFSocketManager + 676
2 libsystem_c.dylib 0x39ea40de _pthread_start + 306
3 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 6 name: JavaScriptCore::BlockFree
Thread 6:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39e9c870 pthread_cond_timedwait + 40
3 JavaScriptCore 0x35ab5df6 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 102
4 JavaScriptCore 0x35bc8532 JSC::BlockAllocator::blockFreeingThreadMain() + 78
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 7 name: JavaScriptCore::Marking
Thread 7:
0 libsystem_kernel.dylib 0x39f4b08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x39e9cafc _pthread_cond_wait + 644
2 libsystem_c.dylib 0x39ea6cf8 pthread_cond_wait + 36
3 JavaScriptCore 0x35b5b6dc JSC::SlotVisitor::drainFromShared(JSC::SlotVisitor::SharedDrainMode) + 140
4 JavaScriptCore 0x35b5b620 JSC::MarkStackThreadSharedData::markingThreadMain() + 140
5 JavaScriptCore 0x35bdb030 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_c.dylib 0x39ea40de _pthread_start + 306
7 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x39f3ae30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39f3afd0 mach_msg + 48
2 CoreFoundation 0x31b922b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x31b9102c __CFRunLoopRun + 900
4 CoreFoundation 0x31b04238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x31b040c4 CFRunLoopRunInMode + 100
6 Foundation 0x324285be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x324cbc40 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x0012e308 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] + 120
9 Foundation 0x324d522c __NSThread__main__ + 968
10 libsystem_c.dylib 0x39ea40de _pthread_start + 306
11 libsystem_c.dylib 0x39ea3fa4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39f4bd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x39e99ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x39e997f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x39e99680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3ba42fc8
r4: 0xffffffff r5: 0x2fd6c311 r6: 0x2fd6c310 r7: 0x2fd6c9e0
r8: 0x2fd6c340 r9: 0x3ba38898 r10: 0x2fd6c318 r11: 0x00000015
ip: 0x00000025 sp: 0x2fd6c2fc lr: 0x00107ed5 pc: 0x39f4a838
cpsr: 0x00080010
Code which is crashing :
- (void)_sendData:(NSDictionary *)data responseCallback:(WVJBResponseCallback)responseCallback handlerName:(NSString*)handlerName {
NSMutableDictionary* message = [NSMutableDictionary dictionaryWithObject:data forKey:#"data"];
if (responseCallback) {
NSString* callbackId = [NSString stringWithFormat:#"objc_cb_%ld", ++_uniqueId];
_responseCallbacks[callbackId] = [responseCallback copy];
message[#"callbackId"] = callbackId;
}
if (handlerName) {
message[#"handlerName"] = handlerName;
}
[self _queueMessage:message];
}
The crash happens in the file WebViewJavascriptBridge.m in line 95 in the method [WebViewJavascriptBridge _sendData:responseCallback:handlerName:].
That line causes an exception in [__NSPlaceholderDictionary initWithObjects:forKeys:count:]. Since the exception message isn't shown in the crash report, and you don't provide any source code of that place we can only assume what is happening.
One assumption would be, your are creating a dictionary with nil values or keys. But without code or you actually debugging this, this is only an assumption.
I cannot repeat the crash, but submit the app to apple, always with the same crash log. Please help me to analyze what's the problem. detail crash log are give below. Thanks a lot!
The apple test team tips that:
This occurred when your app was used:
- On Wi-Fi
- On cellular network
Date/Time: 2013-02-01 11:32:40.293 -0800
OS Version: iOS 6.1 (10B143)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00760040
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0x00760040 0 + 7733312
1 ProtocolBuffer 0x3866d1b6 -[PBRequester connectionDidFinishLoading:] + 1042
2 Foundation 0x33bb7912 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke_0 + 14
3 Foundation 0x33af7764 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 196
4 Foundation 0x33af7680 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
5 CFNetwork 0x32f5864c ___delegate_didFinishLoading_block_invoke_0 + 24
6 CFNetwork 0x32f57d30 ___withDelegateAsync_block_invoke_0 + 52
7 CFNetwork 0x32f80010 ___performAsync_block_invoke_068 + 16
8 CoreFoundation 0x331c1aca CFArrayApplyFunction + 174
9 CFNetwork 0x32f8046e RunloopBlockContext::perform() + 70
10 CFNetwork 0x32ee445e MultiplexerSource::perform() + 186
11 CoreFoundation 0x332508f4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
12 CoreFoundation 0x33250158 __CFRunLoopDoSources0 + 208
13 CoreFoundation 0x3324ef2a __CFRunLoopRun + 642
14 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
15 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
16 GraphicsServices 0x36da0336 GSEventRunModal + 70
17 UIKit 0x350de2b4 UIApplicationMain + 1116
18 Maoye 0x00003ca2 0x1000 + 11426
19 Maoye 0x00003c5c 0x1000 + 11356
Thread 1:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x3b4505d0 kevent64 + 24
1 libdispatch.dylib 0x3b38bd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3b387374 _dispatch_mgr_thread + 32
Thread 3:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 WebCore 0x391c1390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
8 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 5 name: Dispatch queue: URLConnection
Thread 5:
0 libsystem_kernel.dylib 0x3b4505d0 kevent64 + 24
1 libdispatch.dylib 0x3b38b94e _dispatch_update_kq + 178
2 libdispatch.dylib 0x3b38734c _dispatch_mgr_wakeup + 40
3 libdispatch.dylib 0x3b3899a8 _dispatch_wakeup + 20
4 libdispatch.dylib 0x3b389938 _dispatch_queue_push_list_slow2 + 16
5 libdispatch.dylib 0x3b389afa _dispatch_queue_drain + 78
6 libdispatch.dylib 0x3b387678 _dispatch_queue_invoke + 40
7 libdispatch.dylib 0x3b38a610 _dispatch_root_queue_drain + 208
8 libdispatch.dylib 0x3b38a7d4 _dispatch_worker_thread2 + 88
9 libsystem_c.dylib 0x3b3ae7ee _pthread_wqthread + 358
10 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 Foundation 0x33ae65be -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Maoye 0x0003aab2 0x1000 + 236210
8 Maoye 0x0007fbc8 0x1000 + 519112
9 Maoye 0x00034958 0x1000 + 211288
10 Maoye 0x00036656 0x1000 + 218710
11 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
12 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x3b44fe30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b44ffd0 mach_msg + 48
2 CoreFoundation 0x332502b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x3324f02c __CFRunLoopRun + 900
4 CoreFoundation 0x331c2238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x331c20c4 CFRunLoopRunInMode + 100
6 Foundation 0x33b0f888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x33b9322c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
9 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3b460d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b3aead6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b3ae7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b3ae680 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x3b45f2cc __connect + 8
1 Maoye 0x00027b7a 0x1000 + 158586
2 Maoye 0x00029e0a 0x1000 + 167434
3 Maoye 0x00029db8 0x1000 + 167352
4 Maoye 0x000078da 0x1000 + 26842
5 Maoye 0x00009bd6 0x1000 + 35798
6 Maoye 0x0003408e 0x1000 + 209038
7 Maoye 0x00036656 0x1000 + 218710
8 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
9 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x3b4606a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3b3be1be nanosleep + 138
2 libsystem_c.dylib 0x3b41ee4e sleep + 42
3 Maoye 0x0001e190 0x1000 + 119184
4 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
5 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 11 name: com.apple.CFSocket.private
Thread 11:
0 libsystem_kernel.dylib 0x3b460594 __select + 20
1 CoreFoundation 0x33254474 __CFSocketManager + 676
2 libsystem_c.dylib 0x3b3b90de _pthread_start + 306
3 libsystem_c.dylib 0x3b3b8fa4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000001 r1: 0x01090350 r2: 0x00760041 r3: 0x00000007
r4: 0x38d2fa5e r5: 0x01090350 r6: 0x00000001 r7: 0x2fdfed0c
r8: 0x01090340 r9: 0x0109b240 r10: 0x0026b5d4 r11: 0x0109b0f0
ip: 0x3cf1b7f0 sp: 0x2fdfece8 lr: 0x0003b439 pc: 0x00760040
cpsr: 0x200f0030
I guess your crash is in the method connectionDidFinishLoading. As crash is in Thread 0 ,the starting two lines give description about the crash. This is what I know from my friend who is a tester.
1 ProtocolBuffer 0x3866d1b6 -[PBRequester connectionDidFinishLoading:] + 1042
My app got rejected from store and saying it's crashing. But we cannot reproduce the crash, not with simulator nor the devices. And looking at the crash report doesn't mean much. Any help or tips would be greatly appreciated. Here's the first crash report:
Date/Time: 2011-04-28 19:14:10.181 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5 name: com.apple.coremedia.player.async
Thread 5:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x001aa690 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x001c36c0 r11: 0x001c36c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
And the 2nd one:
Date/Time: 2011-04-28 19:14:03.591 -0700
OS Version: iPhone OS 4.3.2 (8H7)
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 0x360ffa1c __pthread_kill + 8
1 libsystem_c.dylib 0x33e093b4 pthread_kill + 52
2 libsystem_c.dylib 0x33e01bf8 abort + 72
3 libstdc++.6.dylib 0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x33b2806c _objc_terminate + 104
5 libstdc++.6.dylib 0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x363fae8a std::terminate() + 10
7 libstdc++.6.dylib 0x363faf5a __cxa_throw + 78
8 libobjc.A.dylib 0x33b26c84 objc_exception_throw + 64
9 CoreFoundation 0x303c91b8 -[NSObject(NSObject) doesNotRecognizeSelector:] + 96
10 CoreFoundation 0x303c8642 ___forwarding___ + 502
11 CoreFoundation 0x3033f178 _CF_forwarding_prep_0 + 40
12 CoreFoundation 0x3033556a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
13 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
14 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
15 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
16 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
17 UIKit 0x358b5834 -[UIControl touchesBegan:withEvent:] + 180
18 UIKit 0x358b4baa -[UIWindow _sendTouchesForEvent:] + 294
19 UIKit 0x358b4568 -[UIWindow sendEvent:] + 256
20 UIKit 0x3589d30c -[UIApplication sendEvent:] + 292
21 UIKit 0x3589cc4c _UIApplicationHandleEvent + 5084
22 GraphicsServices 0x35571e70 PurpleEventCallback + 660
23 CoreFoundation 0x3039ca90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
24 CoreFoundation 0x3039e838 __CFRunLoopDoSource1 + 160
25 CoreFoundation 0x3039f606 __CFRunLoopRun + 514
26 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
27 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
28 GraphicsServices 0x35571418 GSEventRunModal + 108
29 GraphicsServices 0x355714c4 GSEventRun + 56
30 UIKit 0x358c7d62 -[UIApplication _run] + 398
31 UIKit 0x358c5800 UIApplicationMain + 664
32 MyApp 0x0000206e main (main.m:14)
33 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 4 name: com.apple.coremedia.player.async
Thread 4:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3ee4648c r5: 0x00000006 r6: 0x001f1dac r7: 0x2fdfe0d4
r8: 0x0001d6cc r9: 0x00000065 r10: 0x001befb0 r11: 0x00000000
ip: 0x00000148 sp: 0x2fdfe0c8 lr: 0x3489b3bb pc: 0x36b91a1c
cpsr: 0x000f0010
The last one:
Date/Time: 2011-04-28 19:13:44.770 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 3 name: com.apple.coremedia.player.async
Thread 3:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x00180af0 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x0019b7c0 r11: 0x0019b7c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
Does your app compile without any warnings?
If not, I'd suggest you tackle those first.