symbolication with atos giving wrong reason for the crash - crash-reports

In my current project I am getting random crashes,may be due to memory overshoot.But I actually want to figure out which class lead to that crash.So I used symbolication method to find the reason of crash.
Here is what I have done:
Firstly, XCode Build settings are like this :
Strip Debug Sysbols During Copy : NO
Deployment PostProcessing : YES
Strip Linked Product : YES
Generate Debug Symbols : YES
Debug Info Format : DWARF with dSYM file
Use Separate Strip : YES
I am using iOS 5.1 with 4.3.2 version of XCode. I have used "symbolicatecrash" and "atos" methods to reveal the reason of the crash.But I was not able to find the reason for the crash.
So I tried this. I made the application crash by myself by accessing an out of bound index from the array. I have used that to verify the symbolicated crash result output with my actual crash.
Here is the crash report output:
Incident Identifier: 93678EE5-ED10-4502-A59B-5C7526640C4D
CrashReporter Key: 5a79e41767bd1988a9b4080ee5641f63ed42feb8
Hardware Model: iPad2,1
Process: MyAppName [887]
Path: /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/MyAppName
Identifier: MyAppName
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-13 13:37:18.642 +0530
OS Version: iPhone OS 5.0.1 (9A405)
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 0x3028432c __pthread_kill + 8
1 libsystem_c.dylib 0x37725f54 pthread_kill + 48
2 libsystem_c.dylib 0x3771efe4 abort + 88
3 MyAppName 0x00104aa0 0x5e000 + 682656
4 Foundation 0x34ebc1b0 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 260
5 Foundation 0x34ebbe42 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 130
6 MyAppName 0x00104924 0x5e000 + 682276
7 MyAppName 0x00118634 0x5e000 + 763444
8 MyAppName 0x00116b36 0x5e000 + 756534
9 libsystem_c.dylib 0x37730532 _sigtramp + 42
10 libsystem_c.dylib 0x37725f54 pthread_kill + 48
11 libsystem_c.dylib 0x3771efe4 abort + 88
12 MyAppName 0x00118658 0x5e000 + 763480
13 CoreFoundation 0x37c23980 __handleUncaughtException + 68
14 libobjc.A.dylib 0x3776f2ca _objc_terminate + 122
15 libc++abi.dylib 0x3017e3be _ZL19safe_handler_callerPFvvE + 70
16 libc++abi.dylib 0x3017e44a std::terminate() + 14
17 libc++abi.dylib 0x3017f81e __cxa_rethrow + 82
18 libobjc.A.dylib 0x3776f22e objc_exception_rethrow + 6
19 CoreFoundation 0x37b7953e CFRunLoopRunSpecific + 398
20 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
21 GraphicsServices 0x37950fc6 GSEventRunModal + 150
22 UIKit 0x316f973c UIApplicationMain + 1084
23 MyAppName 0x0005ffc8 0x5e000 + 8136
24 MyAppName 0x0005ff6c 0x5e000 + 8044
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x302743b4 kevent + 24
1 libdispatch.dylib 0x307dff74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x307dfc92 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 WebCore 0x32650128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
8 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ec8bc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x34ec8a8a -[NSThread main] + 66
8 Foundation 0x34f5c59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
10 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x30284570 __select + 20
1 CoreFoundation 0x37bfb66a __CFSocketManager + 726
2 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
3 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 5 name: Dispatch queue: com.apple.CFURLCACHE_work_queue
Thread 5:
0 libsystem_kernel.dylib 0x30275ac4 fsync + 8
1 libsqlite3.dylib 0x30741656 0x30704000 + 251478
2 libsqlite3.dylib 0x30746434 0x30704000 + 271412
3 libsqlite3.dylib 0x30741394 0x30704000 + 250772
4 libsqlite3.dylib 0x30737350 0x30704000 + 209744
5 libsqlite3.dylib 0x30719a6c 0x30704000 + 88684
6 libsqlite3.dylib 0x3072ccb4 0x30704000 + 167092
7 libsqlite3.dylib 0x3072b6ce sqlite3_step + 2098
8 libsqlite3.dylib 0x3070a732 sqlite3_exec + 366
9 CFNetwork 0x33a3cedc __CFURLCache::ExecSQLStatement_NoLock(sqlite3*, char const*, int (*)(void*, int, char**, char**), void*, long) + 32
10 CFNetwork 0x33a3fc7c _ZL24_CFURLCacheTimerCallbackPv + 320
11 libdispatch.dylib 0x307e133e _dispatch_source_invoke + 510
12 libdispatch.dylib 0x307dec60 _dispatch_queue_invoke$VARIANT$mp + 44
13 libdispatch.dylib 0x307ded9e _dispatch_queue_drain + 198
14 libdispatch.dylib 0x307dec56 _dispatch_queue_invoke$VARIANT$mp + 34
15 libdispatch.dylib 0x307df860 _dispatch_worker_thread2 + 204
16 libsystem_c.dylib 0x376e21c8 _pthread_wqthread + 288
17 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ebcb7e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x34ed652c -[NSRunLoop(NSRunLoop) run] + 72
8 JAYPORE 0x00108a9a 0x5e000 + 699034
9 Foundation 0x34ec8a8a -[NSThread main] + 66
10 Foundation 0x34f5c59a __NSThread__main__ + 1042
11 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
12 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f504ce8 r6: 0x30caec02 r7: 0x2fe5c4ec
r8: 0x00000006 r9: 0x00000000 r10: 0x00000005 r11: 0x2fe5c558
ip: 0x00000148 sp: 0x2fe5c4e0 lr: 0x37725f5b pc: 0x3028432c
cpsr: 0x00000010
Binary Images:
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
0x1178000 - 0x1182fff AccessibilitySettingsLoader armv7 <45d7c264810c364b976dba254572d73d> /System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader
0x2fe5d000 - 0x2fe7efff dyld armv7 <be7c0b491a943054ad12eb5060f1da06> /usr/lib/dyld
0x3001c000 - 0x30179fff libmecabra.dylib armv7 <170c82a3c716372abe7ae0aae96d4805> /usr/lib/libmecabra.dylib
...long list of binary images.
Now when I use "atos" to get the reason of crash from the Thread 0(which caused the crash)
3 MyAppName 0x00104aa0 0x5e000 + 682656
using above address,it gives me this output:
MAC66:Resources sourabhbhardwaj$ atos -arch arm -o /Users/myPath/MyAppName.app.dSYM/Contents/Resources/DWARF/MyAppName 0x00079f6c 0x78000 + 8044
-[FirstViewController setUIAndText] (in MyAppName) (FirstViewController.m:85)
-[SecondViewController DeleteByID:] (in MyAppName) (SecondViewController.m:415)
+
-[MyController viewWillAppear:] (in MyAppName) (MyController.m:137)
which is not the actual line of crash which I have made. I have made crash on other view controller and the output is entirely different.How can this be possible??
Yes,I have cross checked that I am using the exact same dSYM file for that binary.
Quick help needed.
Thanks
Sourabh

I'm sure this is too late to help, but just in case: you may not be giving atos all the parameters it needs. In particular, make sure you are specifying (with -l) the load address of the application, and (with -arch) the architecture. You can find this in the binary image line you quoted above (it changes with each crashdump):
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
The 0x5e000 is the load address. So try running something like xcrun atos -l 0x5e000 -arch armv7 -o YourArchive.xcarchive/Products/Applications/YourApp.app/YourApp 0x00104aa0.
You can find more details about what the load address is and why it changes each time in Kerni's answer to this similar question. (But while it's good to know how it works, it's usually more convenient to use the -l parameter to atos rather than doing the math yourself.)

Before symbolicating, make sure you have the same .app and the .dSYM of the build that crashed or else it will not be symbolicated properly.

Related

Crash on iPad 2 - Unity3D / iOS

I'm working on an app that's already existing. This app works fine on an iPad Pro / iOS 10. I'm trying to get it to work on iPad2 / iOS 9.3.5.
I manage to build it with XCODE. I can play it well. BUT, when I load a specific scene, it crashes.
XCODE just displays "iPad was disconnected". The last Debug shows :
"Unloading 3 Unused Serialized files (Serialized files now loaded: 0)"
No warnings, no errors.
After many researches I figured this was a memory limit issue. So I proceeded to empty the scene piece by piece to figure what's causing the issue.
The scene is now empty (^^) and it still crashes. Below is the profiler memory for the empty scene.
Crash log :
Incident Identifier: A8EAA62E-F1BE-4969-A9DE-8095A41F685A
CrashReporter Key: 1a06f0ff4da2846aaf101b885d553b22478f0f3a
Hardware Model: iPad2,4
Process: mediaserverd [361]
Path: /usr/sbin/mediaserverd
Identifier: mediaserverd
Version: ???
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2017-01-10 17:08:24.24 +0100
Launch Time: 2017-01-10 12:14:35.35 +0100
OS Version: iOS 9.3.5 (13G36)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x815dba57
Triggered by Thread: 12
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x21766920 semaphore_wait_trap + 8
1 libsystem_platform.dylib 0x2181b3a4 _os_semaphore_wait + 12
2 libdispatch.dylib 0x21668d4a _dispatch_barrier_sync_f_slow + 370
3 CoreMedia 0x23af2152 cmsmApplicationStateChangedNotificationCallback + 78
4 CoreFoundation 0x21a03902 __CFNotificationCenterAddObserver_block_invoke + 126
5 CoreFoundation 0x21aa1734 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
6 CoreFoundation 0x21aa113e _CFXRegistrationPost + 390
7 CoreFoundation 0x21aa0f1c ___CFXNotificationPost_block_invoke + 40
8 CoreFoundation 0x21af7c6a -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1334
9 CoreFoundation 0x21a01082 _CFXNotificationPost + 486
10 Foundation 0x222425de -[NSNotificationCenter postNotificationName:object:userInfo:] + 74
11 SpringBoardServices 0x231b93be __SBApplicationStateBeginGeneratingChangeNotifications_block_invoke_2 + 78
12 libdispatch.dylib 0x2165d822 _dispatch_call_block_and_release + 10
13 libdispatch.dylib 0x2165d80e _dispatch_client_callout + 22
14 libdispatch.dylib 0x2166bba8 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1524
15 CoreFoundation 0x21ab1b6c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x21ab0066 __CFRunLoopRun + 1574
17 CoreFoundation 0x219ff228 CFRunLoopRunSpecific + 520
18 CoreFoundation 0x219ff014 CFRunLoopRunInMode + 108
19 mediaserverd 0x00059f9e 0x58000 + 8094
20 libdyld.dylib 0x216a7872 start + 2
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x2177c2f8 kevent_qos + 24
1 libdispatch.dylib 0x21671d60 _dispatch_mgr_invoke + 256
2 libdispatch.dylib 0x21671abe _dispatch_mgr_thread$VARIANT$mp + 38
Thread 2:
0 libsystem_kernel.dylib 0x217668d0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x217666d4 mach_msg + 40
2 CoreFoundation 0x21ab1ac4 __CFRunLoopServiceMachPort + 136
3 CoreFoundation 0x21aafe4c __CFRunLoopRun + 1036
4 CoreFoundation 0x219ff228 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x21a3fdd2 CFRunLoopRun + 98
6 VirtualAudio 0x01e3fee4 0x1e38000 + 32484
7 VirtualAudio 0x01e3fdba 0x1e38000 + 32186
8 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
9 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
10 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 3 name: com.apple.coremedia.remakerserver
Thread 3:
0 libsystem_kernel.dylib 0x217668d0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x217666d4 mach_msg + 40
2 CoreFoundation 0x21ab1ac4 __CFRunLoopServiceMachPort + 136
3 CoreFoundation 0x21aafe4c __CFRunLoopRun + 1036
4 CoreFoundation 0x219ff228 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x21a3fdd2 CFRunLoopRun + 98
6 MediaToolbox 0x26f45644 figRemakerFamilyServerThread + 256
7 CoreMedia 0x23aa79b8 figThreadMain + 208
8 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
9 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
10 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 4 name: com.apple.coremedia.recorderserver
Thread 4:
0 libsystem_kernel.dylib 0x217668d0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x217666d4 mach_msg + 40
2 CoreFoundation 0x21ab1ac4 __CFRunLoopServiceMachPort + 136
3 CoreFoundation 0x21aafe4c __CFRunLoopRun + 1036
4 CoreFoundation 0x219ff228 CFRunLoopRunSpecific + 520
5 CoreFoundation 0x21a3fdd2 CFRunLoopRun + 98
6 Celestial 0x271d43c2 figRecorderServerThread + 794
7 CoreMedia 0x23aa79b8 figThreadMain + 208
8 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
9 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
10 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 5 name: audio IO: VAD [vdef] Aggregate Device UID 1
Thread 5:
0 libsystem_kernel.dylib 0x2177a998 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x21822e26 _pthread_cond_wait + 594
2 libsystem_pthread.dylib 0x21822bd0 pthread_cond_timedwait_relative_np + 16
3 CoreAudio 0x23a38da4 HALB_Guard::WaitFor(unsigned long long) + 92
4 CoreAudio 0x239c9dea HALS_IOContext::IOWorkLoop_SleepUntilWakeTime(unsigned long long) + 142
5 CoreAudio 0x239ca9c0 HALS_IOContext::IOWorkLoop() + 3000
6 CoreAudio 0x239c60b4 HALS_IOContext::IOThreadEntry(void*) + 424
7 CoreAudio 0x239c5ec6 ___ZN14HALS_IOContextC2EP11HALS_SystemP11HALS_ClientNS0_10PowerStateE_block_invoke + 82
8 CoreAudio 0x239daa8c HALB_IOThread::Entry(void*) + 136
9 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
10 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
11 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 6:
0 libsystem_kernel.dylib 0x21766938 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x2166e90a _dispatch_semaphore_wait_slow + 126
2 libdispatch.dylib 0x2166df98 _dispatch_worker_thread + 116
3 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
4 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
5 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x21766938 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x2166e90a _dispatch_semaphore_wait_slow + 126
2 libdispatch.dylib 0x2166df98 _dispatch_worker_thread + 116
3 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
4 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
5 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 8 name: Dispatch queue: AudioControl
Thread 8:
0 CoreMedia 0x23ae70e8 cmsUpdateMuteStatus + 0
1 CoreMedia 0x23ae629e cmsSetIsPlaying + 134
2 CoreMedia 0x23af1df6 __cmsFinalize_block_invoke + 54
3 libdispatch.dylib 0x21668df4 _dispatch_barrier_sync_f_slow + 540
4 CoreMedia 0x23af1c82 cmsFinalize + 78
5 CoreFoundation 0x219fb794 CFRelease + 424
6 libdispatch.dylib 0x2165d822 _dispatch_call_block_and_release + 10
7 libdispatch.dylib 0x2166c5e8 _dispatch_root_queue_drain + 1560
8 libdispatch.dylib 0x2166bfcc _dispatch_worker_thread3 + 96
9 libsystem_pthread.dylib 0x21821b28 _pthread_wqthread + 1024
10 libsystem_pthread.dylib 0x21821718 start_wqthread + 8
Thread 9:
0 libsystem_kernel.dylib 0x2177b864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x21821b34 _pthread_wqthread + 1036
2 libsystem_pthread.dylib 0x21821718 start_wqthread + 8
Thread 10:
0 libsystem_kernel.dylib 0x21766938 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x2166e90a _dispatch_semaphore_wait_slow + 126
2 libdispatch.dylib 0x2166df98 _dispatch_worker_thread + 116
3 libsystem_pthread.dylib 0x2182385a _pthread_body + 138
4 libsystem_pthread.dylib 0x218237ce _pthread_start + 110
5 libsystem_pthread.dylib 0x21821724 thread_start + 8
Thread 11:
0 libsystem_kernel.dylib 0x2177b864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x21821b34 _pthread_wqthread + 1036
2 libsystem_pthread.dylib 0x21821718 start_wqthread + 8
Thread 12 name: Dispatch queue: com.apple.assertiond.processassertionconnection
Thread 12 Crashed:
0 libobjc.A.dylib 0x21297a66 objc_msgSend + 6
1 libdispatch.dylib 0x2165d822 _dispatch_call_block_and_release + 10
2 libdispatch.dylib 0x2166a422 _dispatch_queue_drain$VARIANT$mp + 1758
3 libdispatch.dylib 0x21669a60 _dispatch_queue_invoke$VARIANT$mp + 284
4 libdispatch.dylib 0x2166c15c _dispatch_root_queue_drain + 396
5 libdispatch.dylib 0x2166bfcc _dispatch_worker_thread3 + 96
6 libsystem_pthread.dylib 0x21821b28 _pthread_wqthread + 1024
7 libsystem_pthread.dylib 0x21821718 start_wqthread + 8
Thread 13:
0 libsystem_kernel.dylib 0x2177b864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x21821b34 _pthread_wqthread + 1036
2 libsystem_pthread.dylib 0x21821718 start_wqthread + 8
Thread 12 crashed with ARM Thread State (32-bit):
r0: 0x15d7ec50 r1: 0x2314770f r2: 0x1f4210b0 r3: 0x15eb9630
r4: 0x15eb9630 r5: 0x002011e0 r6: 0x00000000 r7: 0x1f420ee8
r8: 0x00000000 r9: 0x815dba4b r10: 0x00201180 r11: 0x15e7be30
ip: 0xfe151ea5 sp: 0x1f420ee4 lr: 0x2165d823 pc: 0x21297a66
cpsr: 0x40000030
Binary Images:
[...]
Error Formulating Crash Report:
Failed while requesting activity/breadcrumb diagnostics
Thank you for reading me,
q
thank you Guru for your time,
It was indeed, memory related. I was loading a lot of GameObjects. A lot of these GameObjects were inactive so I thought they weren't taking a lot of memory.
I was wrong.
Rather than SetActive() methods, I now use the Instantiate, Destroy methods.

Crash Log symbolication IOS 8.1.2 in xcode 6.1?

I tried to rectify the crash using the crash report under "Windows->Devices->View Device Logs", but the crash log is full of numbers. I tried Re-Symbolicate option, but there is no change. "Exceptional Codes" data is also missing in the report. I'm using single Mac System to run the project and view the crash reports.So there should not be any problem about symbolification Any other way to symbolicate ?
Identifier: com.company.app
Version: 2.1 (2.1)
Code Type: ARM (Native)
Parent Process: debugserver [227]
Date/Time: 2015-02-23 11:37:37.379 +0530
Launch Time: 2015-02-23 11:29:40.850 +0530
OS Version: iOS 8.1.2 (12B440)
Report Version: 105
Exception Type: EXC_RESOURCE
Exception Subtype: WAKEUPS
Exception Message: (Limit 150/sec) Observed 298/sec over 300 secs
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Attributed:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 IOKit 0x2cbfcb72 0x2cbbb000 + 269170
3 IOKit 0x2cbbfe1e 0x2cbbb000 + 19998
4 IOKit 0x2cbbffc2 0x2cbbb000 + 20418
5 IOAccelerator 0x33491646 0x33490000 + 5702
6 libGPUSupportMercury.dylib 0x329813b2 0x3297f000 + 9138
7 IMGSGX554GLDriver 0x2a61240e 0x2a60f000 + 13326
8 libglInterpose.dylib 0x007cfdea 0x695000 + 1289706
9 AppName 0x00195c72 0x98000 + 1039474
10 AppName 0x00172356 0x98000 + 893782
11 libglInterpose.dylib 0x0085317e 0x695000 + 1827198
12 QuartzCore 0x2ebcf7fe 0x2eb75000 + 370686
13 QuartzCore 0x2ebcf666 0x2eb75000 + 370278
14 IOMobileFramebuffer 0x3349b828 0x33496000 + 22568
15 IOKit 0x2cbbf4de 0x2cbbb000 + 17630
16 CoreFoundation 0x2bc4f0a2 0x2bb93000 + 770210
17 CoreFoundation 0x2bc5f570 0x2bb93000 + 836976
18 CoreFoundation 0x2bc5f50a 0x2bb93000 + 836874
19 CoreFoundation 0x2bc5db0c 0x2bb93000 + 830220
20 CoreFoundation 0x2bbab3bc CFRunLoopRunSpecific + 472
21 CoreFoundation 0x2bbab1ce CFRunLoopRunInMode + 102
22 GraphicsServices 0x32f8f0a4 0x32f86000 + 37028
23 UIKit 0x2f1baf9c 0x2f14d000 + 450460
24 AppName 0x0015f0c2 0x98000 + 815298
25 libdyld.dylib 0x39e0daac 0x39e0c000 + 6828
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39ec02a0 kevent64 + 24
1 libdispatch.dylib 0x008ef674 0x8e1000 + 58996
2 libdispatch.dylib 0x008e4496 0x8e1000 + 13462
Thread 2 name: gputools.smt_poll.0x15588960
Thread 2:
0 libsystem_kernel.dylib 0x39ed419c __semwait_signal + 24
1 libsystem_c.dylib 0x39e33a6c nanosleep + 168
2 libsystem_c.dylib 0x39e339bc usleep + 48
3 GPUToolsCore 0x0092cff4 0x924000 + 36852
4 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
5 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
6 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 3 name: GAIThread
Thread 3:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 CoreFoundation 0x2bc5f316 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2bc5d8bc __CFRunLoopRun + 1012
4 CoreFoundation 0x2bbab3bc CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2bbab1ce CFRunLoopRunInMode + 102
6 Foundation 0x2c8e4bf8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 260
7 Foundation 0x2c9330b8 -[NSRunLoop(NSRunLoop) run] + 76
8 AppName 0x00218354 0x98000 + 1573716
9 Foundation 0x2c9a9b56 __NSThread__main__ + 1114
10 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
11 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
12 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 4 name: AVAudioSession Notify Thread
Thread 4:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 CoreFoundation 0x2bc5f316 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2bc5d8bc __CFRunLoopRun + 1012
4 CoreFoundation 0x2bbab3bc CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2bbab1ce CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2a8b53ea GenericRunLoopThread::Entry(void*) + 130
7 libAVFAudio.dylib 0x2a8a7908 CAPThread::Entry(CAPThread*) + 192
8 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
9 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
10 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 5 name: com.apple.coremedia.player.async
Thread 5:
0 libsystem_kernel.dylib 0x39ec0540 semaphore_wait_trap + 8
1 libdispatch.dylib 0x008edaaa 0x8e1000 + 51882
2 MediaToolbox 0x2d667ff6 fpa_AsyncMovieControlThread + 1962
3 CoreMedia 0x2c402d10 figThreadMain + 184
4 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
5 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
6 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 6 name: com.apple.coremedia.player.remote
Thread 6:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 MediaToolbox 0x2d66d0dc FigExpressNotificationThread + 84
3 CoreMedia 0x2c402d10 figThreadMain + 184
4 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
5 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
6 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 CoreFoundation 0x2bc5f316 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2bc5d8bc __CFRunLoopRun + 1012
4 CoreFoundation 0x2bbab3bc CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2bbf40e6 CFRunLoopRun + 94
6 CoreMotion 0x2c4aee9a 0x2c46f000 + 261786
7 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
8 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
9 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x39ec04f0 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39ec02e4 mach_msg + 36
2 CoreFoundation 0x2bc5f316 __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x2bc5d8bc __CFRunLoopRun + 1012
4 CoreFoundation 0x2bbab3bc CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2bbab1ce CFRunLoopRunInMode + 102
6 CFNetwork 0x2b760952 +[NSURLConnection(Loader) _resourceLoadLoop:] + 482
7 Foundation 0x2c9a9b56 __NSThread__main__ + 1114
8 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
9 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
10 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x39ed408c __select + 20
1 CoreFoundation 0x2bc63ae2 __CFSocketManager + 494
2 libsystem_pthread.dylib 0x39f50e90 _pthread_body + 136
3 libsystem_pthread.dylib 0x39f50e02 _pthread_start + 114
4 libsystem_pthread.dylib 0x39f4eb8c thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x39ed49cc __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39f4eea8 _pthread_wqthread + 788
2 libsystem_pthread.dylib 0x39f4eb80 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000003 r2: 0x000000dc r3: 0x000010bc
r4: 0x0000cf3b r5: 0x00000000 r6: 0x00000000 r7: 0x006745f8
r8: 0x00000000 r9: 0x00000000 r10: 0x00000003 r11: 0x00000003
ip: 0xffffffe1 sp: 0x006745bc lr: 0x39ec02e9 pc: 0x39ec04f0
cpsr: 0x00080010
Bad magic 0x2BBAB1D3
Microstackshots: 1 (from 2147483647-08-23 07:00:00 +0530 to 2147483647-08-23 07:00:00 +0530)
1 ??? [0x677868]
1 CoreFoundation 0x2bb93000 + 829633 [0x2bc5d8c1]
1 ??? [0x676bd0]
1 CoreFoundation 0x2bb93000 + 836379 [0x2bc5f31b]
1 ??? [0x676b90]
1 libsystem_kernel.dylib 0x39ebf000 + 4841 [0x39ec02e9]
1 ??? [0x676b54]
1 libsystem_kernel.dylib 0x39ebf000 + 5360 [0x39ec04f0]
*1 ??? [0x80012f3d]
Binary Images:
0x98000 - 0x2cffff AppName armv7 <f7d35a1c655d3510b2e82a4f84a1cec1> /var/mobile/Containers/Bundle/Application/0107CC0F-E58F-4410-99CF-342284A7BBC9/AppName.app/AppName
0x678000 - 0x67ffff libBacktraceRecording.dylib armv7s
You could integrate some api for crash report. use the fabric.io api.
Thanks

Crash Report - iOS - View Controller Related?

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.

Exception Type: 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
Does anyone know anything about this crash? That all the infomation here, I still dont know whats wrong about it. The important is that I found many crash contain this part, But it may caused many reasons.
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
Can I understand that this part is not the really point where my app crashes?
It's not a crash, it's an abort due to an exception. It means that your application is passing bad data to a system routine and the routine is saying that it's bad and can't continue, so it's killing your app. The console should show something about what went wrong. One common exception that can occur is attempting to get the n + 1st object from an array with only n objects in it. (For example getting the 5th element of an NSArray when there are only 4 elements.) The console will have a message that says just that. So check the console to see what might have happened.
Solved !!
I have solved this issue :
replace below files files from your project file(if you have backup of your project):
pods
projectname.xcworkspace
podfile.lock, podfile
add pods in podfile if any pod missing and install pods
Build your project and run
Please get project backup in zip this will help to solve this error.
I had deleted my Main.storyboard and had replaced it with the storyboard from another project. My solution was to delete my project and recreate it.

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.

Resources