Application crash due to dereference garbage pointer - ios

I am seeing few random crashes in my iPod application with following message common in all the crash reports (though they have different thread traces). The crash is not reproducible - it occurs pretty randomly.
Attempted to dereference garbage pointer
I am also attaching a sample crash report. Please suggest as how to debug such an issue.
Crash Report:
CrashReporter Key: 6e6f41fdb678cf746d1c4561b2d7bc2b3f6772ad
Hardware Model: iPod4,1
Process: TestApplication [3154]
Path: /var/mobile/Applications/E5ED253B-A27A-4014-885A-030D19C7CB2C/TestApplication.app/TestApplication
Identifier: com.domain.retail.TestApplication
Version: 1.0.0
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2013-04-02 10:37:29.000 +0530
OS Version: iPhone OS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000cc
Crashed Thread: 10
Thread 0 name: Dispatch queue: com.domain.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 CoreFoundation 0x32626040 0x3258f000 + 618560
2 CoreFoundation 0x32624d58 0x3258f000 + 613720
3 CoreFoundation 0x32597eb8 CFRunLoopRunSpecific + 352
4 CoreFoundation 0x32597d48 CFRunLoopRunInMode + 104
5 GraphicsServices 0x3614a2e8 GSEventRunModal + 72
6 UIKit 0x344ad300 UIApplicationMain + 1120
7 TestApplication 0x000a54d0 main + 44
Thread 1 name: Dispatch queue: com.domain.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3a7bd648 kevent64 + 24
1 libdispatch.dylib 0x3a6e8df8 0x3a6e5000 + 15864
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 CoreFoundation 0x32626040 0x3258f000 + 618560
2 CoreFoundation 0x32624da0 0x3258f000 + 613792
3 CoreFoundation 0x32597eb8 CFRunLoopRunSpecific + 352
4 CoreFoundation 0x32597d48 CFRunLoopRunInMode + 104
5 WebCore 0x38585500 0x3857b000 + 42240
6 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 3:
0 libsystem_kernel.dylib 0x3a7cd6a4 __semwait_signal + 24
1 Foundation 0x32f0ac60 0x32eb7000 + 343136
2 TestApplication 0x0031c9c0 -[KSCrashDeadlockMonitor runMonitor] + 244
3 Foundation 0x32f67e80 0x32eb7000 + 724608
4 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 4 name: KSCrash Exception Handler (Secondary)
Thread 4:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 TestApplication 0x00318b50 ksmachexc_i_handleExceptions + 124
2 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 5 name: KSCrash Exception Handler (Primary)
Thread 5:
Thread 6 name: com.domain.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 CoreFoundation 0x32626040 0x3258f000 + 618560
2 CoreFoundation 0x32624da0 0x3258f000 + 613792
3 CoreFoundation 0x32597eb8 CFRunLoopRunSpecific + 352
4 CoreFoundation 0x32597d48 CFRunLoopRunInMode + 104
5 Foundation 0x32ee43d0 0x32eb7000 + 185296
6 Foundation 0x32f67e80 0x32eb7000 + 724608
7 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 7 name: com.domain.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x3a7cd594 select$DARWIN_EXTSN + 20
1 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 8 name: JavaScriptCore::BlockFree
Thread 8:
0 libsystem_kernel.dylib 0x3a7cd08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3a71eaa0 pthread_cond_timedwait + 40
2 JavaScriptCore 0x36540c70 _ZN3WTF15ThreadCondition9timedWaitERNS_5MutexEd + 104
3 JavaScriptCore 0x36652550 0x364e5000 + 1496400
4 JavaScriptCore 0x36664fa8 0x364e5000 + 1572776
5 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 9:
0 libsystem_kernel.dylib 0x3a7cdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a71ba10 0x3a715000 + 27152
Thread 10 name: Dispatch queue: com.domain.root.high-priority
Thread 10 Crashed:
0 libicucore.A.dylib 0x39e5e570 ucol_getVersion + 0
1 TextInput 0x37d741b0 _ZN2KB8WordTrie4loadERKNS_6StringE + 280
2 TextInput 0x37d6d698 0x37d35000 + 231064
3 TextInput 0x380de2f8 0x37d35000 + 3838712
4 TextInput 0x380de298 0x37d35000 + 3838616
5 TextInput 0x37d65170 _ZN14TIInputManager17load_dictionariesERKN2KB6StringES3_b + 20
6 TextInput 0x37d761c8 0x37d35000 + 266696
7 TextInput 0x37d75e08 0x37d35000 + 265736
8 UIKit 0x3454ffd0 0x34456000 + 1023952
9 UIKit 0x3454f018 0x34456000 + 1019928
10 UIKit 0x3454ec28 0x34456000 + 1018920
11 UIKit 0x3454d500 0x34456000 + 1012992
12 UIKit 0x3454d1f0 0x34456000 + 1012208
13 UIKit 0x345afa48 0x34456000 + 1415752
14 UIKit 0x345ac918 0x34456000 + 1403160
15 UIKit 0x345ac618 0x34456000 + 1402392
16 UIKit 0x345ab018 0x34456000 + 1396760
17 UIKit 0x345aae40 0x34456000 + 1396288
18 UIKit 0x345aa780 0x34456000 + 1394560
19 TestApplication 0x00155e90 -[TestApplicationRequestInfoController showScanAlertForErrorType:Barcode:] + 2380
20 TestApplication 0x00151c48 -[TestApplicationRequestInfoController showAlertForErrorType:Barcode:] + 72
21 TestApplication 0x001fe090 -[TestApplicationBOPISOrdersScanningController processFirstNonSerialNumberScan:] + 3788
22 TestApplication 0x0020dd38 -[TestApplicationScanController processScanInfo] + 3512
23 TestApplication 0x0020cf38 __39-[TestApplicationScanController startScanThread]_block_invoke + 44
24 libdispatch.dylib 0x3a6e7118 0x3a6e5000 + 8472
25 libdispatch.dylib 0x3a6f5258 0x3a6e5000 + 66136
26 libdispatch.dylib 0x3a6f53b8 0x3a6e5000 + 66488
27 libsystem_c.dylib 0x3a71ba10 0x3a715000 + 27152
Thread 11:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 CoreFoundation 0x32626040 0x3258f000 + 618560
2 CoreFoundation 0x32624da0 0x3258f000 + 613792
3 CoreFoundation 0x32597eb8 CFRunLoopRunSpecific + 352
4 CoreFoundation 0x32597d48 CFRunLoopRunInMode + 104
5 Foundation 0x32ebaf90 0x32eb7000 + 16272
6 Foundation 0x32ec3d50 0x32eb7000 + 52560
7 TestApplication 0x002cc288 -[CommStream runLoopThread:] + 704
8 Foundation 0x32f67e80 0x32eb7000 + 724608
9 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 12:
0 libsystem_kernel.dylib 0x3a7cd594 select$DARWIN_EXTSN + 20
1 Foundation 0x32f67e80 0x32eb7000 + 724608
2 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 13:
0 libsystem_kernel.dylib 0x3a7bceb4 mach_msg_trap + 20
1 CoreFoundation 0x32626040 0x3258f000 + 618560
2 CoreFoundation 0x32624da0 0x3258f000 + 613792
3 CoreFoundation 0x32597eb8 CFRunLoopRunSpecific + 352
4 CoreFoundation 0x32597d48 CFRunLoopRunInMode + 104
5 Foundation 0x32ebaf90 0x32eb7000 + 16272
6 Foundation 0x32ec3d50 0x32eb7000 + 52560
7 TestApplication 0x002cc288 -[CommStream runLoopThread:] + 704
8 Foundation 0x32f67e80 0x32eb7000 + 724608
9 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 14:
0 libsystem_kernel.dylib 0x3a7cd594 select$DARWIN_EXTSN + 20
1 Foundation 0x32f67e80 0x32eb7000 + 724608
2 libsystem_c.dylib 0x3a726310 0x3a715000 + 70416
Thread 15:
0 libsystem_kernel.dylib 0x3a7cdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a71ba10 0x3a715000 + 27152
Thread 10 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x05fe1320 r2: 0x00000001 r3: 0x00000001
r4: 0x03000000 r5: 0x07000000 r6: 0x05a1c000 r7: 0x05fe1394
r8: 0x05fe14d8 r9: 0x00000000 r10: 0x37d5f865 r11: 0x05fe14c8
ip: 0x3be8e2bc sp: 0x05fe1300 lr: 0x37d74427 pc: 0x39e5e570
cpsr: 0x20000030
CrashDoctor Diagnosis: Attempted to dereference garbage pointer 0xcc.
Originated at or in a subcall of -[TestApplicationRequestInfoController showScanAlertForErrorType:Barcode:]

Have a look at thread 10:
one of these functions might some issue:
19 TestApplication 0x00155e90 -[TestApplicationRequestInfoController showScanAlertForErrorType:Barcode:] + 2380
20 TestApplication 0x00151c48 -[TestApplicationRequestInfoController showAlertForErrorType:Barcode:] + 72
21 TestApplication 0x001fe090 -[TestApplicationBOPISOrdersScanningController processFirstNonSerialNumberScan:] + 3788
22 TestApplication 0x0020dd38 -[TestApplicationScanController processScanInfo] + 3512
23 TestApplication 0x0020cf38 __39-[TestApplicationScanController startScanThread]_block_invoke + 44
Double check them. Or put breakpoints at them and rerun the program to see what happens when the program goes through these functions..
Hope this helps... Just a starter..
Remember there is no random crashing.. These crashes are due to mistakes in the code.

Related

Symbolicate crash log - XCode 7.0.1

I am trying to symbolicate the crashed log & tried variuos methods.
1) symbolicating crash log from xcode(7.0.1) > Devices > All Logs > Re-Symbolicate logs
Nothing happens
Installed command line tools, xcode-select --install
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
2)from command line, symbolicate “Crash.crash” "MyApp.app"
Got error, symbolicate: command not found
3)/Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash ~/Desktop/Crash/Crash.crash ~/Desktop/Crash/MyApp.app.dSYM
Couldnt find any DTDeviceKitBase.framework
4) atos -arch armv7 -o ~/Desktop/Crash/MyApp.app/MyAppName 0x00000001001de44c 0x1000d0000 + 1107020
Got log, but not showing excat issue.
Just to verify my step 4 result is correct or not, I treid making crash by simply writing below code
NSArray *arr = [NSArray arrayWithObjects:#"1", #"2", nil];
NSLog(#"Here - %#", [arr objectAtIndex:5]);
But, after symbolicating crash log using step 4, Its shows [classname functionName] of some different class only. This makes me think that the symbolicated log of step 4 is not correct.
Edit 1: Adding crash log
Incident Identifier: 6D576A5F-78D7-4A34-AAE5-3B8609ADAD7B
CrashReporter Key: fe1ade9551d87ac16f28d2305f8b4a4aabbdc406
Hardware Model: iPhone4,1
Process: MyApp [8388]
Path: /private/var/mobile/Containers/Bundle/Application/C02A9603-CB14-467C-B97B-1E5C18615DB2/MyApp.app/MyApp
Identifier: com.MyAppapp.MyAppIdentifier
Version: 1.1.2 (1.1.2)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-11-17 10:30:21.105 +0530
Launch Time: 2015-11-17 10:30:11.610 +0530
OS Version: iOS 8.1 (12B411)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2253fd62 0x22438000 + 1080674
1 libobjc.A.dylib 0x2fd9ec72 0x2fd98000 + 27762
2 CoreFoundation 0x22454202 0x22438000 + 115202
3 MyApp 0x000fcee4 0x17000 + 941796
4 UIKit 0x259e4700 0x259d5000 + 63232
5 UIKit 0x25a8e5a0 0x259d5000 + 759200
6 UIKit 0x25a8e4c8 0x259d5000 + 758984
7 UIKit 0x25a8da4c 0x259d5000 + 756300
8 UIKit 0x25a8d786 0x259d5000 + 755590
9 UIKit 0x25a8d4ec 0x259d5000 + 754924
10 UIKit 0x25a8d484 0x259d5000 + 754820
11 UIKit 0x259e1c1a 0x259d5000 + 52250
12 QuartzCore 0x2540cf60 0x25400000 + 53088
13 QuartzCore 0x2540894c 0x25400000 + 35148
14 QuartzCore 0x254087d4 0x25400000 + 34772
15 QuartzCore 0x254081c2 0x25400000 + 33218
16 QuartzCore 0x25407fcc 0x25400000 + 32716
17 UIKit 0x259da064 0x259d5000 + 20580
18 CoreFoundation 0x22506620 0x22438000 + 845344
19 CoreFoundation 0x22503d04 0x22438000 + 834820
20 CoreFoundation 0x22504106 0x22438000 + 835846
21 CoreFoundation 0x2245197c 0x22438000 + 104828
22 CoreFoundation 0x2245178e 0x22438000 + 104334
23 GraphicsServices 0x2982a04c 0x29821000 + 36940
24 UIKit 0x25a4397c 0x259d5000 + 452988
25 MyApp 0x001dd5e8 0x17000 + 1861096
26 libdyld.dylib 0x3033aaaa 0x30339000 + 6826
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x303ffdfc 0x303eb000 + 85500
1 libsystem_pthread.dylib 0x3047fd0e 0x3047c000 + 15630
2 libsystem_c.dylib 0x3039f934 0x30356000 + 301364
3 libc++abi.dylib 0x2f5abbb8 0x2f5ab000 + 3000
4 libc++abi.dylib 0x2f5c566a 0x2f5ab000 + 108138
5 libobjc.A.dylib 0x2fd9ef0e 0x2fd98000 + 28430
6 libc++abi.dylib 0x2f5c2dec 0x2f5ab000 + 97772
7 libc++abi.dylib 0x2f5c28b4 0x2f5ab000 + 96436
8 libobjc.A.dylib 0x2fd9edba 0x2fd98000 + 28090
9 CoreFoundation 0x22451a18 0x22438000 + 104984
10 CoreFoundation 0x2245178e 0x22438000 + 104334
11 GraphicsServices 0x2982a04c 0x29821000 + 36940
12 UIKit 0x25a4397c 0x259d5000 + 452988
13 MyApp 0x001dd5e8 0x17000 + 1861096
14 libdyld.dylib 0x3033aaac 0x30339000 + 6828
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x303ec2c8 0x303eb000 + 4808
1 libdispatch.dylib 0x3030ee44 0x302fd000 + 73284
2 libdispatch.dylib 0x3030eb76 0x302fd000 + 72566
Thread 2:
0 libsystem_kernel.dylib 0x304009cc 0x303eb000 + 88524
1 libsystem_pthread.dylib 0x3047ce9c 0x3047c000 + 3740
2 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 3 name: Dispatch queue: com.apple.NSURLConnection
Thread 3:
0 libsystem_kernel.dylib 0x303ffb38 0x303eb000 + 84792
1 libsystem_pthread.dylib 0x3047e3dc 0x3047c000 + 9180
2 libsystem_pthread.dylib 0x3047f2ac 0x3047c000 + 12972
3 Foundation 0x2323aaa6 0x23181000 + 760486
4 CFNetwork 0x22098ffa 0x21f8a000 + 1110010
5 CFNetwork 0x220990ec 0x21f8a000 + 1110252
6 CFNetwork 0x22086ebe 0x21f8a000 + 1035966
7 CFNetwork 0x2204c7bc 0x21f8a000 + 796604
8 CFNetwork 0x2204a8c2 0x21f8a000 + 788674
9 CFNetwork 0x2208d1f4 0x21f8a000 + 1061364
10 libdispatch.dylib 0x302ff420 0x302fd000 + 9248
11 libdispatch.dylib 0x303095d4 0x302fd000 + 50644
12 libdispatch.dylib 0x303090a4 0x302fd000 + 49316
13 libdispatch.dylib 0x3030b0d0 0x302fd000 + 57552
14 libdispatch.dylib 0x3030c1f6 0x302fd000 + 61942
15 libsystem_pthread.dylib 0x3047ce22 0x3047c000 + 3618
16 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 4:
0 libsystem_kernel.dylib 0x304009cc 0x303eb000 + 88524
1 libsystem_pthread.dylib 0x3047ce9c 0x3047c000 + 3740
2 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 5:
0 libsystem_kernel.dylib 0x304009cc 0x303eb000 + 88524
1 libsystem_pthread.dylib 0x3047ce9c 0x3047c000 + 3740
2 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 6:
0 libsystem_kernel.dylib 0x304009cc 0x303eb000 + 88524
1 libsystem_pthread.dylib 0x3047ce9c 0x3047c000 + 3740
2 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 7 name: Dispatch queue: com.apple.NSURLConnection
Thread 7:
0 libsystem_kernel.dylib 0x303ffb38 0x303eb000 + 84792
1 libsystem_pthread.dylib 0x3047e3dc 0x3047c000 + 9180
2 libsystem_pthread.dylib 0x3047f2ac 0x3047c000 + 12972
3 Foundation 0x2323aaa6 0x23181000 + 760486
4 CFNetwork 0x22098ffa 0x21f8a000 + 1110010
5 CFNetwork 0x220990ec 0x21f8a000 + 1110252
6 CFNetwork 0x22086ebe 0x21f8a000 + 1035966
7 CFNetwork 0x2204c7bc 0x21f8a000 + 796604
8 CFNetwork 0x2204a8c2 0x21f8a000 + 788674
9 CFNetwork 0x2208d1f4 0x21f8a000 + 1061364
10 libdispatch.dylib 0x302ff420 0x302fd000 + 9248
11 libdispatch.dylib 0x303095d4 0x302fd000 + 50644
12 libdispatch.dylib 0x303090a4 0x302fd000 + 49316
13 libdispatch.dylib 0x3030b0d0 0x302fd000 + 57552
14 libdispatch.dylib 0x3030c1f6 0x302fd000 + 61942
15 libsystem_pthread.dylib 0x3047ce22 0x3047c000 + 3618
16 libsystem_pthread.dylib 0x3047cb74 0x3047c000 + 2932
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x303ec518 0x303eb000 + 5400
1 libsystem_kernel.dylib 0x303ec30c 0x303eb000 + 4876
2 CoreFoundation 0x22505ba6 0x22438000 + 842662
3 CoreFoundation 0x2250416c 0x22438000 + 835948
4 CoreFoundation 0x2245197c 0x22438000 + 104828
5 CoreFoundation 0x2245178e 0x22438000 + 104334
6 CFNetwork 0x220069da 0x21f8a000 + 510426
7 Foundation 0x23251996 0x23181000 + 854422
8 libsystem_pthread.dylib 0x3047ee64 0x3047c000 + 11876
9 libsystem_pthread.dylib 0x3047edd6 0x3047c000 + 11734
10 libsystem_pthread.dylib 0x3047cb80 0x3047c000 + 2944
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x3040008c 0x303eb000 + 86156
1 CoreFoundation 0x2250a32e 0x22438000 + 860974
2 libsystem_pthread.dylib 0x3047ee64 0x3047c000 + 11876
3 libsystem_pthread.dylib 0x3047edd6 0x3047c000 + 11734
4 libsystem_pthread.dylib 0x3047cb80 0x3047c000 + 2944
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000003
r4: 0x00000006 r5: 0x32b0e9dc r6: 0x32afa840 r7: 0x01192418
r8: 0x15716080 r9: 0x7420666f r10: 0x32af9074 r11: 0x157160a4
ip: 0x00000148 sp: 0x0119240c lr: 0x3047fd13 pc: 0x303ffdfc
cpsr: 0x00000010
Any helps.
Thanks

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

How to find the error from crash report?

i have device logs crash report from iphone 5.how to find the error from my crash report.i am searched most of the link to understand my crash report but please clarify me where i get crash. i am not got any crash in simulator.
here my crash report...
Incident Identifier: 92DD66DF-03A4-4D63-8501-357BE4951127
CrashReporter Key: beed3fd2c135f7021a2706a3c7f08e4bce8cec90
Hardware Model: iPhone5,2
Process: CR [540]
Path: /private/var/mobile/Containers/Bundle/Application/A5CA78DF-FC16-44F9-AF84-B3E7ABF8B382/CR.app/CR
Identifier: com.CR.A2
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-01-21 18:57:29.212 +0400
Launch Time: 2015-01-21 18:57:16.384 +0400
OS Version: iOS 8.1.2 (12B440)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 5
Last Exception Backtrace:
(0x26ab549a 0x3426bc86 0x26ab5370 0x27786d7a 0x29f9f242 0x29f9f86a 0x29f9959e 0x2a45df88 0x2a0ea2d2 0x2a258a3e 0x2a259a76 0x2a25b582 0x2a057ada 0xab6e4 0x347cb7b6 0x347d4da6 0x347d5cd2 0x3492ce2c 0x3492cb80)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3489e4f0 0x3489d000 + 5360
1 libsystem_kernel.dylib 0x3489e2e4 0x3489d000 + 4836
2 CoreFoundation 0x26a7b316 0x269af000 + 836374
3 CoreFoundation 0x26a798bc 0x269af000 + 829628
4 CoreFoundation 0x269c73bc 0x269af000 + 99260
5 CoreFoundation 0x269c71ce 0x269af000 + 98766
6 GraphicsServices 0x2ddc50a4 0x2ddbc000 + 37028
7 UIKit 0x29fd6f9c 0x29f69000 + 450460
8 CR 0x000bbff6 0xa5000 + 94198
9 libdyld.dylib 0x347ebaac 0x347ea000 + 6828
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3489e2a0 0x3489d000 + 4768
1 libdispatch.dylib 0x347d79fc 0x347ca000 + 55804
2 libdispatch.dylib 0x347cd20e 0x347ca000 + 12814
Thread 2:
0 libsystem_kernel.dylib 0x348b29cc 0x3489d000 + 88524
1 libsystem_pthread.dylib 0x3492cea8 0x3492c000 + 3752
2 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944
Thread 3:
0 libsystem_kernel.dylib 0x348b29cc 0x3489d000 + 88524
1 libsystem_pthread.dylib 0x3492cea8 0x3492c000 + 3752
2 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944
Thread 4:
0 libsystem_kernel.dylib 0x348b29cc 0x3489d000 + 88524
1 libsystem_pthread.dylib 0x3492cea8 0x3492c000 + 3752
2 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944
Thread 5 name: Dispatch queue: com.apple.root.background-qos
Thread 5 Crashed:
0 libsystem_kernel.dylib 0x348b1dfc 0x3489d000 + 85500
1 libsystem_pthread.dylib 0x3492fd32 0x3492c000 + 15666
2 libsystem_c.dylib 0x34851904 0x34807000 + 305412
3 libc++abi.dylib 0x33b8f9c4 0x33b8f000 + 2500
4 libc++abi.dylib 0x33ba966c 0x33b8f000 + 108140
5 libobjc.A.dylib 0x3426bf22 0x34265000 + 28450
6 libc++abi.dylib 0x33ba6de0 0x33b8f000 + 97760
7 libc++abi.dylib 0x33ba65a4 0x33b8f000 + 95652
8 libobjc.A.dylib 0x3426bd5a 0x34265000 + 27994
9 CoreFoundation 0x26ab5370 0x269af000 + 1074032
10 Foundation 0x27786d7a 0x276f5000 + 597370
11 UIKit 0x29f9f242 0x29f69000 + 221762
12 UIKit 0x29f9f86a 0x29f69000 + 223338
13 UIKit 0x29f9959e 0x29f69000 + 198046
14 UIKit 0x2a45df88 0x29f69000 + 5197704
15 UIKit 0x2a0ea2d2 0x29f69000 + 1577682
16 UIKit 0x2a258a3e 0x29f69000 + 3078718
17 UIKit 0x2a259a76 0x29f69000 + 3082870
18 UIKit 0x2a25b582 0x29f69000 + 3089794
19 UIKit 0x2a057ada 0x29f69000 + 977626
20 CR 0x000ab6e4 0xa5000 + 26340
21 libdispatch.dylib 0x347cb7b8 0x347ca000 + 6072
22 libdispatch.dylib 0x347d4da6 0x347ca000 + 44454
23 libdispatch.dylib 0x347d5cd2 0x347ca000 + 48338
24 libsystem_pthread.dylib 0x3492ce2e 0x3492c000 + 3630
25 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944
Thread 6:
0 libsystem_kernel.dylib 0x348b29cc 0x3489d000 + 88524
1 libsystem_pthread.dylib 0x3492cea8 0x3492c000 + 3752
2 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x3489e4f0 0x3489d000 + 5360
1 libsystem_kernel.dylib 0x3489e2e4 0x3489d000 + 4836
2 CoreFoundation 0x26a7b316 0x269af000 + 836374
3 CoreFoundation 0x26a798bc 0x269af000 + 829628
4 CoreFoundation 0x269c73bc 0x269af000 + 99260
5 CoreFoundation 0x269c71ce 0x269af000 + 98766
6 CFNetwork 0x2657c952 0x26500000 + 510290
7 Foundation 0x277c5b56 0x276f5000 + 854870
8 libsystem_pthread.dylib 0x3492ee90 0x3492c000 + 11920
9 libsystem_pthread.dylib 0x3492ee02 0x3492c000 + 11778
10 libsystem_pthread.dylib 0x3492cb8c 0x3492c000 + 2956
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x348b208c 0x3489d000 + 86156
1 CoreFoundation 0x26a7fae2 0x269af000 + 854754
2 libsystem_pthread.dylib 0x3492ee90 0x3492c000 + 11920
3 libsystem_pthread.dylib 0x3492ee02 0x3492c000 + 11778
4 libsystem_pthread.dylib 0x3492cb8c 0x3492c000 + 2956
Thread 5 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000003
r4: 0x00000006 r5: 0x026d0000 r6: 0x36f68840 r7: 0x026ced78
r8: 0x146b14a0 r9: 0x00000000 r10: 0x14655bf0 r11: 0x146b14c4
ip: 0x00000148 sp: 0x026ced6c lr: 0x3492fd37 pc: 0x348b1dfc
cpsr: 0x00000010
Thank in advance..
You may dispatch some UI operation in subthread. Make sure operate UI only in main thread. Symbolicating the Crash Report to get more details.
Thread 5 Crashed:
0 libsystem_kernel.dylib 0x348b1dfc 0x3489d000 + 85500
1 libsystem_pthread.dylib 0x3492fd32 0x3492c000 + 15666
2 libsystem_c.dylib 0x34851904 0x34807000 + 305412
3 libc++abi.dylib 0x33b8f9c4 0x33b8f000 + 2500
4 libc++abi.dylib 0x33ba966c 0x33b8f000 + 108140
5 libobjc.A.dylib 0x3426bf22 0x34265000 + 28450
6 libc++abi.dylib 0x33ba6de0 0x33b8f000 + 97760
7 libc++abi.dylib 0x33ba65a4 0x33b8f000 + 95652
8 libobjc.A.dylib 0x3426bd5a 0x34265000 + 27994
9 CoreFoundation 0x26ab5370 0x269af000 + 1074032
10 Foundation 0x27786d7a 0x276f5000 + 597370
11 UIKit 0x29f9f242 0x29f69000 + 221762
12 UIKit 0x29f9f86a 0x29f69000 + 223338
13 UIKit 0x29f9959e 0x29f69000 + 198046
14 UIKit 0x2a45df88 0x29f69000 + 5197704
15 UIKit 0x2a0ea2d2 0x29f69000 + 1577682
16 UIKit 0x2a258a3e 0x29f69000 + 3078718
17 UIKit 0x2a259a76 0x29f69000 + 3082870
18 UIKit 0x2a25b582 0x29f69000 + 3089794
19 UIKit 0x2a057ada 0x29f69000 + 977626
20 CR 0x000ab6e4 0xa5000 + 26340 // symbol and check this line
21 libdispatch.dylib 0x347cb7b8 0x347ca000 + 6072
22 libdispatch.dylib 0x347d4da6 0x347ca000 + 44454
23 libdispatch.dylib 0x347d5cd2 0x347ca000 + 48338
24 libsystem_pthread.dylib 0x3492ce2e 0x3492c000 + 3630
25 libsystem_pthread.dylib 0x3492cb80 0x3492c000 + 2944

ShareKit Crash on Facebook direct sharing

I'm using ShareKit to share an item to Facebook and Twitter using this code
SHKItem *item = [SHKItem image:imageToShare title:textToShare];
NSLog(#"Sharing to facebook...");
SHKFacebook *fbSharer = [SHKFacebook shareItem:item];
[[NSNotificationCenter defaultCenter] addObserver:self selector:#selector(showAnotherViewController) name:#"SHKSendDidFinish" object:fbSharer];
Everything works like a charm apart from iPhone 5, where the app crashes. This is the crash report generated:
Incident Identifier: B061FE97-D1AF-4919-8004-05E0AA3BD3E2
CrashReporter Key: 1544990de75429552f6f5f8eba0171523bd8db4b
Hardware Model: iPhone5,2
Process: ADme [2775]
Path: /var/mobile/Applications/D243F9B0-0750-4B67-9380-3D1DCDBA5828/ADme.app/ADme
Identifier: it.xplace.adme
Version: 7 (1.0.7)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-07-22 15:56:42.955 +0200
OS Version: iOS 7.0.6 (11B651)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2dc65e7e 0x2db91000 + 872062
1 libobjc.A.dylib 0x37fc26c2 0x37fba000 + 34498
2 CoreFoundation 0x2dc65b84 0x2db91000 + 871300
3 ADme 0x0016f542 -[FBSession reauthorizeWithPermissions:isRead:behavior:defaultAudience:completionHandler:] (FBSession.m:1676)
4 ADme 0x0016bf2e -[FBSession requestNewPublishPermissions:defaultAudience:completionHandler:] (FBSession.m:433)
5 ADme 0x001a5734 -[SHKFacebook send] (SHKFacebook.m:410)
6 ADme 0x001ba624 -[SHKSharer tryToSend] (SHKSharer.m:864)
7 ADme 0x001b79ca +[SHKSharer shareItem:] (SHKSharer.m:203)
8 ADme 0x00108b28 -[ASShareNewViewController shareAction:] (ASShareNewViewController.m:110)
9 UIKit 0x3041ed9e 0x303df000 + 261534
10 UIKit 0x3041ed3a 0x303df000 + 261434
11 UIKit 0x3041ed0e 0x303df000 + 261390
12 UIKit 0x3040a73e 0x303df000 + 177982
13 UIKit 0x3041e756 0x303df000 + 259926
14 UIKit 0x3041e420 0x303df000 + 259104
15 UIKit 0x3041944c 0x303df000 + 238668
16 UIKit 0x303eed74 0x303df000 + 64884
17 UIKit 0x303ed564 0x303df000 + 58724
18 CoreFoundation 0x2dc30f1a 0x2db91000 + 655130
19 CoreFoundation 0x2dc303e2 0x2db91000 + 652258
20 CoreFoundation 0x2dc2ebd2 0x2db91000 + 646098
21 CoreFoundation 0x2db9946c 0x2db91000 + 33900
22 CoreFoundation 0x2db9924e 0x2db91000 + 33358
23 GraphicsServices 0x328d32e6 0x328cc000 + 29414
24 UIKit 0x3044e840 0x303df000 + 456768
25 ADme 0x0010c446 main (main.m:16)
26 libdyld.dylib 0x384bbab2 0x384ba000 + 6834
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x385716e4 0x3855f000 + 75492
1 ADme 0x0011ccd4 CLSSignalHandler (CLSSignal.m:305)
2 libsystem_platform.dylib 0x385d4720 0x385d1000 + 14112
3 libsystem_pthread.dylib 0x385d9a4e 0x385d6000 + 14926
4 libsystem_c.dylib 0x38523028 0x384d9000 + 303144
5 libc++abi.dylib 0x3797198a 0x37971000 + 2442
6 libc++abi.dylib 0x3798a6e2 0x37971000 + 104162
7 libobjc.A.dylib 0x37fc2936 0x37fba000 + 35126
8 libc++abi.dylib 0x379881b0 0x37971000 + 94640
9 libc++abi.dylib 0x37987d12 0x37971000 + 93458
10 libobjc.A.dylib 0x37fc280a 0x37fba000 + 34826
11 CoreFoundation 0x2db994e2 0x2db91000 + 34018
12 CoreFoundation 0x2db9924e 0x2db91000 + 33358
13 GraphicsServices 0x328d32e6 0x328cc000 + 29414
14 UIKit 0x3044e840 0x303df000 + 456768
15 ADme 0x0010c446 main (main.m:16)
16 libdyld.dylib 0x384bbab4 0x384ba000 + 6836
Thread 1:
0 libsystem_kernel.dylib 0x3855f838 0x3855f000 + 2104
1 libdispatch.dylib 0x384ae0d0 0x384a6000 + 32976
2 libdispatch.dylib 0x384a861e 0x384a6000 + 9758
Thread 2:
0 libsystem_kernel.dylib 0x38572c7c 0x3855f000 + 81020
1 libsystem_pthread.dylib 0x385d6e06 0x385d6000 + 3590
2 libsystem_pthread.dylib 0x385d6cc0 0x385d6000 + 3264
Thread 3 name: com.crashlytics.MachExceptionServer
Thread 3:
0 libsystem_kernel.dylib 0x3855fa84 0x3855f000 + 2692
1 libsystem_kernel.dylib 0x3855f87c 0x3855f000 + 2172
2 ADme 0x001101e6 CLSMachExceptionServer (CLSMachExceptionInterface.c:179)
3 libsystem_pthread.dylib 0x385d8c5a 0x385d6000 + 11354
4 libsystem_pthread.dylib 0x385d8bca 0x385d6000 + 11210
5 libsystem_pthread.dylib 0x385d6ccc 0x385d6000 + 3276
Thread 4:
0 libsystem_kernel.dylib 0x38572c7c 0x3855f000 + 81020
1 libsystem_pthread.dylib 0x385d6e06 0x385d6000 + 3590
2 libsystem_pthread.dylib 0x385d6cc0 0x385d6000 + 3264
Thread 5:
0 libsystem_malloc.dylib 0x385978a6 0x38597000 + 2214
1 CoreFoundation 0x2db93be2 0x2db91000 + 11234
2 IOKit 0x2e9595f0 0x2e944000 + 87536
3 IOKit 0x2e95b9c0 0x2e944000 + 96704
4 IOKit 0x2e96526c 0x2e944000 + 135788
5 IOKit 0x2e97ae78 0x2e944000 + 224888
6 libdispatch.dylib 0x384a70ac 0x384a6000 + 4268
7 libdispatch.dylib 0x384ab8ee 0x384a6000 + 22766
8 IOKit 0x2e97ae1e 0x2e944000 + 224798
9 IOKit 0x2e965230 0x2e944000 + 135728
10 IOKit 0x2e95f35a 0x2e944000 + 111450
11 CoreFoundation 0x2dc25b7e 0x2db91000 + 609150
12 CoreFoundation 0x2dc30774 0x2db91000 + 653172
13 CoreFoundation 0x2dc3070e 0x2db91000 + 653070
14 CoreFoundation 0x2dc2eeda 0x2db91000 + 646874
15 CoreFoundation 0x2db9946c 0x2db91000 + 33900
16 CoreFoundation 0x2dbdd0d6 0x2db91000 + 311510
17 CoreMotion 0x2e251364 0x2e218000 + 234340
18 libsystem_pthread.dylib 0x385d8c5a 0x385d6000 + 11354
19 libsystem_pthread.dylib 0x385d8bca 0x385d6000 + 11210
20 libsystem_pthread.dylib 0x385d6ccc 0x385d6000 + 3276
Thread 6 name: com.apple.coremedia.player.async
Thread 6:
0 libsystem_kernel.dylib 0x3855fad4 0x3855f000 + 2772
1 libdispatch.dylib 0x384acde0 0x384a6000 + 28128
2 MediaToolbox 0x2f088a0a 0x2f084000 + 18954
3 CoreMedia 0x2e1c5214 0x2e1a0000 + 152084
4 libsystem_pthread.dylib 0x385d8c5a 0x385d6000 + 11354
5 libsystem_pthread.dylib 0x385d8bca 0x385d6000 + 11210
6 libsystem_pthread.dylib 0x385d6ccc 0x385d6000 + 3276
Thread 7:
0 libsystem_kernel.dylib 0x38572c7c 0x3855f000 + 81020
1 libsystem_pthread.dylib 0x385d6e06 0x385d6000 + 3590
2 libsystem_pthread.dylib 0x385d6cc0 0x385d6000 + 3264
Thread 8 name: com.apple.NSURLConnectionLoader
Thread 8:
0 libsystem_kernel.dylib 0x3855fa84 0x3855f000 + 2692
1 libsystem_kernel.dylib 0x3855f87c 0x3855f000 + 2172
2 CoreFoundation 0x2dc30554 0x2db91000 + 652628
3 CoreFoundation 0x2dc2ec74 0x2db91000 + 646260
4 CoreFoundation 0x2db9946c 0x2db91000 + 33900
5 CoreFoundation 0x2db9924e 0x2db91000 + 33358
6 Foundation 0x2e5d44bc 0x2e57c000 + 361660
7 Foundation 0x2e649c32 0x2e57c000 + 842802
8 libsystem_pthread.dylib 0x385d8c5a 0x385d6000 + 11354
9 libsystem_pthread.dylib 0x385d8bca 0x385d6000 + 11210
10 libsystem_pthread.dylib 0x385d6ccc 0x385d6000 + 3276
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3a397048
r4: 0x0026bff8 r5: 0x27d063e4 r6: 0x27d06424 r7: 0x27d063c4
r8: 0x00000003 r9: 0x3a39fe30 r10: 0x00000006 r11: 0x00000000
ip: 0x00000025 sp: 0x27d063a8 lr: 0x0011ccd9 pc: 0x385716e4
cpsr: 0x00000010
Binary Images:
0xfd000 - 0x230fff ADme armv7s <28b89d0e97d330a181b6080f2689bc3c> /var/mobile/Applications/D243F9B0-0750-4B67-9380-3D1DCDBA5828/ADme.app/ADme
I cannot replicate the crash, it doesn't happen on my iphone 5s nor on the simulator
** EDIT **
Further investigations help me detect the error. It's not the iphone 5 the problem. I Have the crash on this method
-[FBSession reauthorizeWithPermissions:isRead:behavior:defaultAudience:completionHandler:]
and it happens with every other Facebook account (except for mine). Of course i remembered to allow Facebook app access to general public.

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.

Resources