iOS: App crashes due to a dispatch_queue - ios

I am trying to use this code: https://stackoverflow.com/a/14063081/1011125.
But on my iPhone 4 (iOS 7), this part let's the whole app crash:
dispatch_queue_t queue = dispatch_queue_create("cameraQueue", NULL);
[output setSampleBufferDelegate:self queue:queue];
What's wrong with this little snippet?
Crash Log
OS Version: iOS 7.1 (11D169)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xe000000c
Triggered by Thread: 2
Thread 0:
0 libsystem_kernel.dylib 0x38e4da58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x38e4d854 mach_msg + 44
2 CoreFoundation 0x2e0bb896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2e0ba002 __CFRunLoopRun + 850
4 CoreFoundation 0x2e024f4a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2e024d2e CFRunLoopRunInMode + 102
6 GraphicsServices 0x32f2965e GSEventRunModal + 134
7 UIKit 0x30970168 UIApplicationMain + 1132
8 Lockr 0x00048fa0 main (main.m:16)
9 libdyld.dylib 0x38daaab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38e4d808 kevent64 + 24
1 libdispatch.dylib 0x38d99de8 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x38d88f6e _dispatch_mgr_thread$VARIANT$up + 34
Thread 2 Crashed:
0 libobjc.A.dylib 0x388a7626 objc_msgSend + 6
1 AVFoundation 0x2d00dc16 __74-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke + 394
2 libdispatch.dylib 0x38d85830 _dispatch_call_block_and_release + 8
3 libdispatch.dylib 0x38d85de8 _dispatch_queue_drain$VARIANT$up + 440
4 libdispatch.dylib 0x38d86292 _dispatch_queue_invoke$VARIANT$up + 34
5 libdispatch.dylib 0x38d9888a _dispatch_root_queue_drain + 74
6 libdispatch.dylib 0x38d98b1c _dispatch_worker_thread2 + 52
7 libsystem_pthread.dylib 0x38ec7bd0 _pthread_wqthread + 296
8 libsystem_pthread.dylib 0x38ec7a94 start_wqthread + 4
Thread 3 name: com.apple.coremedia.player.async
Thread 3:
0 libsystem_kernel.dylib 0x38e4daa8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x38d98f74 _dispatch_semaphore_wait_slow + 172
2 MediaToolbox 0x2f540ab4 fpa_AsyncMovieControlThread + 1752
3 CoreMedia 0x2e6531e0 figThreadMain + 192
4 libsystem_pthread.dylib 0x38ec9916 _pthread_body + 138
5 libsystem_pthread.dylib 0x38ec9886 _pthread_start + 98
6 libsystem_pthread.dylib 0x38ec7aa0 thread_start + 4
Thread 2 crashed with ARM Thread State (32-bit):
r0: 0x15dd6e60 r1: 0x30f39275 r2: 0x00000004 r3: 0x0000000d
r4: 0x15e58e20 r5: 0x30f39275 r6: 0x38f6696c r7: 0x02b93f3c
r8: 0x30f74e46 r9: 0xe0000000 r10: 0x2d07cd11 r11: 0x398b7cf8
ip: 0x38f3a8cc sp: 0x02b93ef8 lr: 0x2d00dc1b pc: 0x388a7626
cpsr: 0x60000030

Related

App SIGABRT Crash

When I run my iOS app in Xcode & test it on my device (before submitting) it returns no errors and it works flawlessly. But when I test the app after the update to the app store, it crashes every time I open the app on my device. I get the following error in my crash log:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2f9ecf06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a183ce2 objc_exception_throw + 34
2 CoreData 0x2f72a694 -[NSPersistentStoreCoordinator initWithManagedObjectModel:] + 392
3 TapNotes 0x00015d3c -[AppDelegate persistentStoreCoordinator] (AppDelegate.m:104)
4 TapNotes 0x00015b48 -[AppDelegate managedObjectContext] (AppDelegate.m:73)
5 TapNotes 0x00016904 -[DeviceViewController managedObjectContext] (HomeViewController.m:22)
6 TapNotes 0x00016b04 -[DeviceViewController viewDidAppear:] (HomeViewController.m:51)
7 UIKit 0x32236d1e -[UIViewController _setViewAppearState:isAnimating:] + 434
8 UIKit 0x322e6052 -[UINavigationController viewDidAppear:] + 178
9 UIKit 0x32236d1e -[UIViewController _setViewAppearState:isAnimating:] + 434
10 UIKit 0x3229be7a -[UIViewController _executeAfterAppearanceBlock] + 50
11 UIKit 0x3229be04 _applyBlockToCFArrayCopiedToStack + 312
12 UIKit 0x32214b6e _afterCACommitHandler + 454
13 CoreFoundation 0x2f9b8034 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
14 CoreFoundation 0x2f9b59c2 __CFRunLoopDoObservers + 282
15 CoreFoundation 0x2f9b5d0e __CFRunLoopRun + 734
16 CoreFoundation 0x2f920764 CFRunLoopRunSpecific + 520
17 CoreFoundation 0x2f920546 CFRunLoopRunInMode + 102
18 GraphicsServices 0x3488d6ce GSEventRunModal + 134
19 UIKit 0x3227f88c UIApplicationMain + 1132
20 TapNotes 0x00016886 main (main.m:16)
21 libdyld.dylib 0x3a681ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a7381f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3a7a07b2 pthread_kill + 54
2 libsystem_c.dylib 0x3a6e8ff4 abort + 72
3 libc++abi.dylib 0x39b3798a abort_message + 70
4 libc++abi.dylib 0x39b506e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a183f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39b4e1b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x39b4dd12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a183e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2f9207da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2f920546 CFRunLoopRunInMode + 102
11 GraphicsServices 0x3488d6ce GSEventRunModal + 134
12 UIKit 0x3227f88c UIApplicationMain + 1132
13 TapNotes 0x00016886 main (main.m:16)
14 libdyld.dylib 0x3a681ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3a725804 kevent64 + 24
1 libdispatch.dylib 0x3a674050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3a66e2de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3a738c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a79dc1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3a79dad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a738c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a79dc1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3a79dad8 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3c69418c r6: 0x00000000 r7: 0x27df2594
r8: 0x17e8d090 r9: 0x00000001 r10: 0x0000000c r11: 0x00000002
ip: 0x00000148 sp: 0x27df2588 lr: 0x3a7a07b7 pc: 0x3a7381f0
cpsr: 0x00000010
I have tried opening on multiple devices & the same thing occurs. What should I do to resvole this issue?
From the look of the log you probably have the default Core Data stack in your code, and in the update modified your object model. You then have problems with migration on an version update. There in the Core Data template there is a nice call to abort() in the
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator
method. There is a nice long comment about how it shouldn't appear in production code and some ideas on migration. I'd take a look in that method and verify the abort() is gone.

Accepted AppStore app crash on every device

Just released this morning an app that I tested on all possible devices and simulators, but when I downloaded it from the store the application crashes at startup. I have tested it on many devices and iOS versions, but the result is the same:
Incident Identifier: B34024C9-9F00-4E57-B3AB-068CFFC55119
CrashReporter Key: 81ac2324b459bfeeb1a13c007d9d04e59e6efaf2
Hardware Model: iPhone4,1
Process: iMatematica [9546]
Path: /var/mobile/Applications/CFFA51F9-52F9-4555-8C5B-1B2DDF5E2D5B/iMatematica.app/iMatematica
Identifier: iMatematica
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-04 07:24:08.703 +0200
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 0x35eb532c __pthread_kill + 8
1 libsystem_c.dylib 0x32a01208 pthread_kill + 48
2 libsystem_c.dylib 0x329fa298 abort + 88
3 iMatematica 0x0007eee0 0x1000 + 515808
4 CoreFoundation 0x355ff950 __handleUncaughtException + 68
5 libobjc.A.dylib 0x379a633e _objc_terminate + 122
6 libc++abi.dylib 0x359b53be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x359b544a std::terminate() + 14
8 libc++abi.dylib 0x359b681e __cxa_rethrow + 82
9 libobjc.A.dylib 0x379a62a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35555506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
12 UIKit 0x33064864 -[UIApplication _run] + 544
13 UIKit 0x33061cce UIApplicationMain + 1074
14 iMatematica 0x00009a88 main (main.m:18)
15 iMatematica 0x000039b0 0x1000 + 10672
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x35ea53a8 kevent + 24
1 libdispatch.dylib 0x3448ff04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3448fc22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 WebCore 0x31454c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x329c272e _pthread_start + 314
8 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 Foundation 0x3508ebb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3508ea7a -[NSThread main] + 66
8 Foundation 0x3512258a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x329c272e _pthread_start + 314
10 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ec0cd98 r6: 0x00000002 r7: 0x2fdff9c0
r8: 0x3f02bce0 r9: 0x00000000 r10: 0x0021f0a0 r11: 0x33410c0d
ip: 0x00000148 sp: 0x2fdff9b4 lr: 0x32a0120f pc: 0x35eb532c
cpsr: 0x00000010
The problem is only happening to me or is the same as last month: that is a problem of apple server that sign apps?
I solved the problem: changing the language from Italian (my native language) to English, the application works properly. This explains why the AppReview Team has not noticed the crash, and was due to a missing localization in a xib file: "Could not load NIB bundle: 'NSBundle (loaded)' with name 'MasterViewController'"

Crash while integrating Brad Larson's GPUImage

Im trying to integrate Brad Larson's GPUImage framework to my project. The sample code works fine. After I've intergrated, it builds fine but Im facing crash while running it. It crashes at AVCaptureVideoDataOutputSampleBufferDelegate method,
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
Particularly at
runOnMainQueueWithoutDeadlocking block. I tried to find out the crash area but couldn't find it even after some few hours of time on seeing the crash log too. I didnt get any idea about the crash. Below is the crash log of Im getting on it. Can some one point me out the issue in it? I also have a doubt that, can I use to continue the queue in name com.sunsetlakesoftware.GPUImage.processingQueue?
Date/Time: 2012-06-19 17:46:28.449 +0530
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xb00566c0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x344faf78 objc_msgSend + 16
1 GPUTest 0x0017d16a __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke_0118 (GPUImageVideoCamera.m:415)
2 libdispatch.dylib 0x35b03b24 _dispatch_barrier_sync_f_slow_invoke + 72
3 libdispatch.dylib 0x35b02e8a _dispatch_main_queue_callback_4CF$VARIANT$up + 190
4 CoreFoundation 0x3247d2a6 __CFRunLoopRun + 1262
5 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
6 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
7 GraphicsServices 0x31557432 GSEventRunModal + 130
8 UIKit 0x31effcce UIApplicationMain + 1074
9 GPUTest 0x000b0714 main (main.m:10)
10 GPUTest 0x000b06cc start + 32
Thread 1 name: Dispatch queue: com.sunsetlakesoftware.GPUImage.processingQueue
Thread 1:
0 libsystem_kernel.dylib 0x35b4b054 semaphore_wait_trap + 8
1 libdispatch.dylib 0x35b0447e _dispatch_thread_semaphore_wait$VARIANT$up + 6
2 libdispatch.dylib 0x35b0265e _dispatch_barrier_sync_f_slow + 82
3 libdispatch.dylib 0x35b025dc dispatch_barrier_sync_f$VARIANT$up + 16
4 libdispatch.dylib 0x35b02238 dispatch_sync_f$VARIANT$up + 12
5 libdispatch.dylib 0x35b028ee _dispatch_sync_slow + 46
6 libdispatch.dylib 0x35b028ae dispatch_sync$VARIANT$up + 18
7 GPUTest 0x00172796 runOnMainQueueWithoutDeadlocking (GPUImageOutput.m:13)
8 GPUTest 0x0017d0a6 -[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] (GPUImageVideoCamera.m:414)
9 AVFoundation 0x32dd0244 __74-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke_0 + 220
10 libdispatch.dylib 0x35af7c52 _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x35b02ca4 _dispatch_queue_drain + 268
12 libdispatch.dylib 0x35b02b12 _dispatch_queue_invoke$VARIANT$up + 30
13 libdispatch.dylib 0x35b03784 _dispatch_worker_thread2 + 208
14 libsystem_c.dylib 0x30d40df4 _pthread_wqthread + 288
15 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.libdispatch-manager
Thread 3:
0 libsystem_kernel.dylib 0x35b4b3a8 kevent + 24
1 libdispatch.dylib 0x35b03ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b03bc2 _dispatch_mgr_thread + 30
Thread 4:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x35b4b004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35b4b1fa mach_msg + 50
2 CoreFoundation 0x3247e3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x3247d124 __CFRunLoopRun + 876
4 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
6 WebCore 0x35c1dc9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d4672e _pthread_start + 314
8 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 7 name: com.apple.coremedia.player.async
Thread 7:
0 libsystem_kernel.dylib 0x35b5b068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d46a46 _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d467c2 pthread_cond_wait + 34
3 CoreMedia 0x32ec3868 FigSemaphoreWaitRelative + 268
4 MediaToolbox 0x309fb3e6 fpa_AsyncMovieControlThread + 22
5 CoreMedia 0x32ee28b4 figThreadMain + 168
6 libsystem_c.dylib 0x30d4672e _pthread_start + 314
7 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00541c20 r1: 0x00190b4f r2: 0x0056f240 r3: 0x00190b4f
r4: 0xb00566b8 r5: 0x00000000 r6: 0x00000000 r7: 0x2feace34
r8: 0x2feace4c r9: 0x000642d3 r10: 0x2feace4c r11: 0x3e47dde0
ip: 0x3f3c22c8 sp: 0x2feace24 lr: 0x0017d171 pc: 0x344faf78
cpsr: 0x20000030
Finally, I found the solution. I just replaced the compiler flag of the AppDelegate in target's compile sources which is set for the purpose of ARC.
i.e. I removed the -fno-objc-arc flag and replaced it by -fobjc-arc flag for the AppDelegate class which caused the crash.

iOS NSURLConnection _resourceLoadLoop crash

I met a strange problem
I am using a NSURLConnection to do some URL request
it work fine on simulator
but it crash on ipad2 5.0
I've tried on iPad1 5.01 ,ipad2 4.33,ipad2 5.01, it worked fine
just crash on ipad2 5.0
I'm not sure what problem is
it seems something wrong with
[NSURLConnection(Loader) _resourceLoadLoop:]
I thought maybe NSURLConnection's delegate may be destroy before NSURLConnection do it's job
so I make retain with the delegate,but still crash
does anybody know what may cause this problem?
crash log:
Date/Time: 2012-02-14 23:31:47.416 +0800
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000049de
Highlighted Thread: 3
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x31e973b4 kevent + 24
1 libdispatch.dylib 0x316a6f74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x316a6c92 _dispatch_mgr_thread + 30
Thread 1:
0 libsystem_kernel.dylib 0x31ea7cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d2730a _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d2709c start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 WebCore 0x347ac128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
8 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 Foundation 0x31ab0bc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x31ab0a8a -[NSThread main] + 66
8 Foundation 0x31b4459a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
10 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 4 name: WebCore: CFNetwork Loader
Thread 4:
0 libsystem_kernel.dylib 0x31e97010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31e97206 mach_msg + 50
2 CoreFoundation 0x371c441c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x371c3154 __CFRunLoopRun + 876
4 CoreFoundation 0x371464d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3714639e CFRunLoopRunInMode + 98
6 WebCore 0x347d569e _ZN7WebCoreL15runLoaderThreadEPv + 122
7 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
8 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x31ea7570 __select + 20
1 CoreFoundation 0x371c866a __CFSocketManager + 726
2 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
3 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Thread 6 name: WebCore: LocalStorage
Thread 6:
0 libsystem_kernel.dylib 0x31ea7068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d2cf2e _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d2ccaa pthread_cond_wait + 34
3 JavaScriptCore 0x3382040e WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 54
4 WebCore 0x3490b494 WTF::PassOwnPtr<WebCore::LocalStorageTask> WTF::MessageQueue<WebCore::LocalStorageTask>::waitForMessageFilteredWithTimeout<bool ()(WebCore::LocalStorageTask*)>(WTF::MessageQueueWaitResult&, bool (&)(WebCore::LocalStorageTask*), double) + 52
5 WebCore 0x3490b44a WebCore::LocalStorageThread::threadEntryPointCallback(void*) + 106
6 libsystem_c.dylib 0x30d2cc16 _pthread_start + 314
7 libsystem_c.dylib 0x30d2cad0 thread_start + 0
Unknown thread crashed with ARM Thread State:
r0: 0x0000499a r1: 0x00000000 r2: 0x35fca80d r3: 0x00000000
r4: 0x0014bf50 r5: 0x3e4ce540 r6: 0x00115030 r7: 0x00000000
r8: 0x001d5a60 r9: 0x000000fb r10: 0x2fe5a688 r11: 0x305b1913
ip: 0x00067a2d sp: 0x2fe5a688 lr: 0x00067a49 pc: 0x30878f4e
cpsr: 0x60000030
When the crash logs say "Highlighted Thread:" it may still be a different thread. It is not sure.
All threads except thread 0 (main thread) seem to be stopped at waits or traps. Since thread zero is the only one that appears active, it is the real source of the crash.
Since thread 0 does have main() or UIApplication at the bottom, the stack is probably corrupted or it is in some system functions which use a non-standard way of building stack frames.

App crash report origin

Here is the Crash report can anyone help me identify whats actually going on.. If you need anything from me please let me know.. Thank you
Date/Time: 2011-06-07 20:00:50.156 -0700
OS Version: iPhone OS 4.3.3 (8J2)
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 0x360c8a1c 0x360b7000 + 72220
1 libsystem_c.dylib 0x3619f3b4 0x3616c000 + 209844
2 libsystem_c.dylib 0x36197bf8 0x3616c000 + 179192
3 libstdc++.6.dylib 0x00044a64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x34fd606c 0x34fd0000 + 24684
5 libstdc++.6.dylib 0x00042e36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x00042e8a std::terminate() + 10
7 libstdc++.6.dylib 0x00042f5a __cxa_throw + 78
8 libobjc.A.dylib 0x34fd4c84 0x34fd0000 + 19588
9 CoreFoundation 0x314b948a 0x3141b000 + 648330
10 CoreFoundation 0x314b94c4 0x3141b000 + 648388
11 UIKit 0x31724a4c 0x3151b000 + 2136652
12 UIKit 0x31725e02 0x3151b000 + 2141698
13 UIKit 0x315504c6 0x3151b000 + 218310
14 UIKit 0x3154ab02 0x3151b000 + 195330
15 UIKit 0x3151f7d0 0x3151b000 + 18384
16 UIKit 0x3151f20e 0x3151b000 + 16910
17 UIKit 0x3151ec4c 0x3151b000 + 15436
18 GraphicsServices 0x30da2e70 0x30d9e000 + 20080
19 CoreFoundation 0x31490a90 0x3141b000 + 481936
20 CoreFoundation 0x31492838 0x3141b000 + 489528
21 CoreFoundation 0x31493606 0x3141b000 + 493062
22 CoreFoundation 0x31423ebc 0x3141b000 + 36540
23 CoreFoundation 0x31423dc4 0x3141b000 + 36292
24 UIKit 0x31549d42 0x3151b000 + 191810
25 UIKit 0x31547800 0x3151b000 + 182272
26 Womp Womp App 0x0000216a 0x1000 + 4458
27 Womp Womp App 0x00002134 0x1000 + 4404
Thread 1:
0 libsystem_kernel.dylib 0x360c93ec 0x360b7000 + 74732
1 libsystem_c.dylib 0x361a06d8 0x3616c000 + 214744
2 libsystem_c.dylib 0x361a0bbc 0x3616c000 + 215996
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x360c9fbc 0x360b7000 + 77756
1 libdispatch.dylib 0x35d9a032 0x35d94000 + 24626
2 libdispatch.dylib 0x35d9b03a 0x35d94000 + 28730
3 libdispatch.dylib 0x35d9a5ea 0x35d94000 + 26090
4 libsystem_c.dylib 0x361a058a 0x3616c000 + 214410
5 libsystem_c.dylib 0x361a0bbc 0x3616c000 + 215996
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360c6c00 0x360b7000 + 64512
1 libsystem_kernel.dylib 0x360c6758 0x360b7000 + 63320
2 CoreFoundation 0x314912b8 0x3141b000 + 484024
3 CoreFoundation 0x31493562 0x3141b000 + 492898
4 CoreFoundation 0x31423ebc 0x3141b000 + 36540
5 CoreFoundation 0x31423dc4 0x3141b000 + 36292
6 WebCore 0x36a8c27e 0x36a86000 + 25214
7 libsystem_c.dylib 0x3619f30a 0x3616c000 + 209674
8 libsystem_c.dylib 0x361a0bb4 0x3616c000 + 215988
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3f86748c r5: 0x00000006 r6: 0x00182aac r7: 0x2fdfe030
r8: 0x3ed10964 r9: 0x00000065 r10: 0x0017dff0 r11: 0x00000001
ip: 0x00000148 sp: 0x2fdfe024 lr: 0x3619f3bb pc: 0x360c8a1c
cpsr: 0x00000010
In Xcode open Organizer window and go to Devices tab and Select Device Logs under Library section. Import the crash log if its not present in Organizer window and clock on the Re-Symbolicate icon at the bottom. You can see some changes in the crash log file. Then check the lines representing your app name(Womp Womp App). The hex-values in the right will be replaced with something like 0x0000216a +[MyCrashedClass myCrashedMethod:] (MyCrashedClass.m:<lineNumber>).
Check the line number in the crashed class, and that will be the crashed point in your app.

Resources