I have code like this in my app, which works fine with development profile. But with AdHoc provisioning profile my app is crashing when i try to print error. According to logs there should not be any error and it should be nil. but i have no idea why it is satisfying the if condition and if it is satisfying the condition then why its crashing if i try to print error. Plus this code is working fine with development profile. This issue is only with AdHoc profile. -
func initializedWithCredentials( credentials: GTICredentials!, error: NSError ) {
// Check to see if initialization was successful. With log i can see that initialization was successful only so there should not be any error
if let error = error as NSError? {
// Handle error
NSLog("Error : \(error)") // App Crashes
}else{
// Success so do something
}
}
Below is the device log -
Incident Identifier: 17FD2BD0-4FA5-492B-891C-2EC066EAFC41
CrashReporter Key: 0fd3245f5726c1a1a90046a6629d5ccc9ebf39dd
Hardware Model: iPhone4,1
Process: VidurOnMobile [2160]
Path: /private/var/mobile/Containers/Bundle/Application/A945905D-C112-4E96-9124-775F4590E5FB/VidurOnMobile.app/VidurOnMobile
Identifier: com.ibm.cio.be.iphone.VidurOnMobile
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2015-09-22 22:25:45.149 +0530
Launch Time: 2015-09-22 22:25:01.041 +0530
OS Version: iOS 8.4.1 (12H321)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreFoundation 0x2a8bf0d6 0x2a89c000 + 143574
1 libswiftCore.dylib 0x00962960 0x886000 + 903520
2 libswiftCore.dylib 0x00943160 0x886000 + 774496
3 VidurOnMobile 0x00107728 0xea000 + 120616
4 VidurOnMobile 0x00109df8 0xea000 + 130552
5 libdispatch.dylib 0x393c9c80 0x393c8000 + 7296
6 libdispatch.dylib 0x393c9c6c 0x393c8000 + 7276
7 libdispatch.dylib 0x393d554e 0x393c8000 + 54606
8 CoreFoundation 0x2a96c664 0x2a89c000 + 853604
9 CoreFoundation 0x2a96ad84 0x2a89c000 + 847236
10 CoreFoundation 0x2a8b66cc 0x2a89c000 + 108236
11 CoreFoundation 0x2a8b64de 0x2a89c000 + 107742
12 GraphicsServices 0x3227b1a4 0x32272000 + 37284
13 UIKit 0x2e068440 0x2dff9000 + 455744
14 VidurOnMobile 0x000fa62e 0xea000 + 67118
15 libdyld.dylib 0x39407aac 0x39406000 + 6828
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x394ba24c 0x394b9000 + 4684
1 libdispatch.dylib 0x393da4ec 0x393c8000 + 74988
2 libdispatch.dylib 0x393da21e 0x393c8000 + 74270
Thread 2:
0 libsystem_kernel.dylib 0x394ce9c0 0x394b9000 + 88512
1 libsystem_pthread.dylib 0x3954be14 0x3954b000 + 3604
2 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 3 name: Dispatch queue: com.apple.root.default-qos.overcommit
Thread 3:
0 CoreFoundation 0x2a8aa348 0x2a89c000 + 58184
1 CoreFoundation 0x2a9dbc2c 0x2a89c000 + 1309740
2 CoreFoundation 0x2a8aa344 0x2a89c000 + 58180
3 libobjc.A.dylib 0x38e541a4 0x38e33000 + 135588
4 libdispatch.dylib 0x393d69b4 0x393c8000 + 59828
5 libdispatch.dylib 0x393d789e 0x393c8000 + 63646
6 libsystem_pthread.dylib 0x3954bd9a 0x3954b000 + 3482
7 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 4:
0 libsystem_kernel.dylib 0x394ce9c0 0x394b9000 + 88512
1 libsystem_pthread.dylib 0x3954be14 0x3954b000 + 3604
2 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 5 name: Dispatch queue: com.apple.CFNetwork.addPersistCacheToStorageDaemon
Thread 5:
0 libsystem_kernel.dylib 0x394ba49c 0x394b9000 + 5276
1 libsystem_kernel.dylib 0x394ba290 0x394b9000 + 4752
2 libdispatch.dylib 0x393dae1a 0x393c8000 + 77338
3 libdispatch.dylib 0x393dab46 0x393c8000 + 76614
4 libxpc.dylib 0x39560ea6 0x39560000 + 3750
5 Foundation 0x2b7a98fa 0x2b617000 + 1648890
6 Foundation 0x2b7a8f6e 0x2b617000 + 1646446
7 Foundation 0x2b62abea 0x2b617000 + 80874
8 CoreFoundation 0x2a9aa30c 0x2a89c000 + 1106700
9 CoreFoundation 0x2a8d9704 0x2a89c000 + 251652
10 CFNetwork 0x2a462e98 0x2a3d4000 + 585368
11 CFNetwork 0x2a43179c 0x2a3d4000 + 382876
12 libdispatch.dylib 0x393c9c80 0x393c8000 + 7296
13 libdispatch.dylib 0x393d44ce 0x393c8000 + 50382
14 libdispatch.dylib 0x393d3d9c 0x393c8000 + 48540
15 libdispatch.dylib 0x393d648e 0x393c8000 + 58510
16 libdispatch.dylib 0x393d789e 0x393c8000 + 63646
17 libsystem_pthread.dylib 0x3954bd9a 0x3954b000 + 3482
18 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x394ba49c 0x394b9000 + 5276
1 libsystem_kernel.dylib 0x394ba290 0x394b9000 + 4752
2 CoreFoundation 0x2a96c5ce 0x2a89c000 + 853454
3 CoreFoundation 0x2a96ab94 0x2a89c000 + 846740
4 CoreFoundation 0x2a8b66cc 0x2a89c000 + 108236
5 CoreFoundation 0x2a8b64de 0x2a89c000 + 107742
6 WebCore 0x36723d2c 0x366a2000 + 531756
7 libsystem_pthread.dylib 0x3954dddc 0x3954b000 + 11740
8 libsystem_pthread.dylib 0x3954dd4e 0x3954b000 + 11598
9 libsystem_pthread.dylib 0x3954baf8 0x3954b000 + 2808
Thread 7 name: JavaScriptCore::BlockFree
Thread 7:
0 libsystem_kernel.dylib 0x394cdb2c 0x394b9000 + 84780
1 libsystem_pthread.dylib 0x3954d354 0x3954b000 + 9044
2 libsystem_pthread.dylib 0x3954e224 0x3954b000 + 12836
3 libc++.1.dylib 0x38600fa4 0x385fb000 + 24484
4 JavaScriptCore 0x2bbd3206 0x2bbbe000 + 86534
5 JavaScriptCore 0x2bbcf6bc 0x2bbbe000 + 71356
6 libsystem_pthread.dylib 0x3954dddc 0x3954b000 + 11740
7 libsystem_pthread.dylib 0x3954dd4e 0x3954b000 + 11598
8 libsystem_pthread.dylib 0x3954baf8 0x3954b000 + 2808
Thread 8 name: JavaScriptCore::Marking
Thread 8:
0 libsystem_kernel.dylib 0x394cdb2c 0x394b9000 + 84780
1 libsystem_pthread.dylib 0x3954d354 0x3954b000 + 9044
2 libsystem_pthread.dylib 0x3954e224 0x3954b000 + 12836
3 libc++.1.dylib 0x38600fa4 0x385fb000 + 24484
4 JavaScriptCore 0x2bd98140 0x2bbbe000 + 1941824
5 JavaScriptCore 0x2bd981a4 0x2bbbe000 + 1941924
6 JavaScriptCore 0x2bbcf6bc 0x2bbbe000 + 71356
7 libsystem_pthread.dylib 0x3954dddc 0x3954b000 + 11740
8 libsystem_pthread.dylib 0x3954dd4e 0x3954b000 + 11598
9 libsystem_pthread.dylib 0x3954baf8 0x3954b000 + 2808
Thread 9 name: com.apple.NSURLConnectionLoader
Thread 9:
0 libsystem_kernel.dylib 0x394ba49c 0x394b9000 + 5276
1 libsystem_kernel.dylib 0x394ba290 0x394b9000 + 4752
2 CoreFoundation 0x2a96c5ce 0x2a89c000 + 853454
3 CoreFoundation 0x2a96ab94 0x2a89c000 + 846740
4 CoreFoundation 0x2a8b66cc 0x2a89c000 + 108236
5 CoreFoundation 0x2a8b64de 0x2a89c000 + 107742
6 CFNetwork 0x2a451422 0x2a3d4000 + 513058
7 Foundation 0x2b6e7186 0x2b617000 + 852358
8 libsystem_pthread.dylib 0x3954dddc 0x3954b000 + 11740
9 libsystem_pthread.dylib 0x3954dd4e 0x3954b000 + 11598
10 libsystem_pthread.dylib 0x3954baf8 0x3954b000 + 2808
Thread 10:
0 libsystem_kernel.dylib 0x394ce9c0 0x394b9000 + 88512
1 libsystem_pthread.dylib 0x3954be14 0x3954b000 + 3604
2 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 11:
0 libsystem_kernel.dylib 0x394ce9c0 0x394b9000 + 88512
1 libsystem_pthread.dylib 0x3954be14 0x3954b000 + 3604
2 libsystem_pthread.dylib 0x3954baec 0x3954b000 + 2796
Thread 12 name: com.apple.CFSocket.private
Thread 12:
0 libsystem_kernel.dylib 0x394ce080 0x394b9000 + 86144
1 CoreFoundation 0x2a970d80 0x2a89c000 + 871808
2 libsystem_pthread.dylib 0x3954dddc 0x3954b000 + 11740
3 libsystem_pthread.dylib 0x3954dd4e 0x3954b000 + 11598
4 libsystem_pthread.dylib 0x3954baf8 0x3954b000 + 2808
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000004
r4: 0x00000000 r5: 0x00000000 r6: 0x00d416c0 r7: 0x00884c44
r8: 0x1768cf00 r9: 0x175b8774 r10: 0x00884cf0 r11: 0x3bded0e0
ip: 0x0068c2e0 sp: 0x00884c18 lr: 0x00962964 pc: 0x2a8bf0d6
cpsr: 0x60000030
Error cannot ever be nil if the definition of function is error: NSError. If the error could be nil, it should be defined as error: NSError?. Otherwise there is no point of trying unwrap non-optional value. It should look like this:
func initializedWithCredentials(credentials: GTICredentials!, error: NSError? ) {
if let error = error {
// Handle error
NSLog("Error : \(error)")
} else {
// Success so do something
}
}
Even better, you should avoid nesting if conditions
func initializedWithCredentials(credentials: GTICredentials!, error: NSError? ) {
if let error = error {
// Handle error
NSLog("Error : \(error)")
return
}
// Success so do something
}
Related
My users are saying my app is crashing on iPhone 5. I tested it on simulator but there was no problem. But i am getting weird crash reports from iPhone 5 only. I guess the problem is real but i could not see any useful information from these crash reports.
Crash report:
Incident Identifier: CE320831-76BF-4606-813F-9821F9C8B6C2
CrashReporter Key: e41999cd7d4094ea7ac7b121345107dcebfa3e97
Hardware Model: iPhone5,2
Process: Ribony [946]
Path: /private/var/containers/Bundle/Application/91817EA6-9765-41B8-85BD-903928F6EFEE/Ribony.app/Ribony
Identifier: com.impact.ribony
Version: 121 (5.1.0)
Code Type: ARM (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.impact.ribony [593]
Date/Time: 2020-04-19 09:41:54.8309 +0300
Launch Time: 2020-04-19 09:41:50.0000 +0300
OS Version: iPhone OS 10.3.4 (14G61)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x168392e0
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [0]
Triggered by Thread: 4
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x1cb90900 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x1cb906e0 mach_msg + 44 (mach_msg.c:103)
2 CoreFoundation 0x1d393be2 __CFRunLoopServiceMachPort + 144 (CFRunLoop.c:2527)
3 CoreFoundation 0x1d392064 __CFRunLoopRun + 1436 (CFRunLoop.c:2870)
4 CoreFoundation 0x1d2e51ae CFRunLoopRunSpecific + 470 (CFRunLoop.c:3113)
5 CoreFoundation 0x1d2e4fd0 CFRunLoopRunInMode + 104 (CFRunLoop.c:3143)
6 GraphicsServices 0x1ea8fb40 GSEventRunModal + 80 (GSEvent.c:2245)
7 UIKit 0x2266da52 UIApplicationMain + 150 (UIApplication.m:4089)
8 Ribony 0x000280a0 main + 38 (ConversationModel.swift:18)
9 libdyld.dylib 0x1cad24ea start + 2
Thread 1:
0 libsystem_kernel.dylib 0x1cba673c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1cc5a744 _pthread_wqthread + 728 (pthread.c:2129)
2 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 2:
0 libsystem_kernel.dylib 0x1cba673c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1cc5a8ea _pthread_wqthread + 1150 (pthread.c:2205)
2 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 3:
0 libsystem_pthread.dylib 0x1cc5a454 start_wqthread + 0
Thread 4 name:
Thread 4 Crashed:
0 ??? 0x168392e0 0 + 377721568
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x1cb90900 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x1cb906e0 mach_msg + 44 (mach_msg.c:103)
2 CoreFoundation 0x1d393be2 __CFRunLoopServiceMachPort + 144 (CFRunLoop.c:2527)
3 CoreFoundation 0x1d392064 __CFRunLoopRun + 1436 (CFRunLoop.c:2870)
4 CoreFoundation 0x1d2e51ae CFRunLoopRunSpecific + 470 (CFRunLoop.c:3113)
5 CoreFoundation 0x1d2e4fd0 CFRunLoopRunInMode + 104 (CFRunLoop.c:3143)
6 Foundation 0x1dc39af4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 258 (NSRunLoop.m:367)
7 Foundation 0x1dc5676c -[NSRunLoop(NSRunLoop) runUntilDate:] + 86 (NSRunLoop.m:411)
8 UIKit 0x22f6ead8 -[UIEventFetcher threadMain] + 128 (UIEventFetcher.m:313)
9 Foundation 0x1dd1d8ea __NSThread__start__ + 1122 (NSThread.m:1163)
10 libsystem_pthread.dylib 0x1cc5c93a _pthread_body + 216 (pthread.c:697)
11 libsystem_pthread.dylib 0x1cc5c85c _pthread_start + 234 (pthread.c:744)
12 libsystem_pthread.dylib 0x1cc5a468 thread_start + 8
Thread 6 name:
Thread 6:
0 libsystem_kernel.dylib 0x1cb93ba8 kevent + 24
1 Realm 0x00a6930a realm::_impl::ExternalCommitHelper::listen() + 118
2 Realm 0x00a69b20 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, st... + 112
3 libsystem_pthread.dylib 0x1cc5c93a _pthread_body + 216 (pthread.c:697)
4 libsystem_pthread.dylib 0x1cc5c85c _pthread_start + 234 (pthread.c:744)
5 libsystem_pthread.dylib 0x1cc5a468 thread_start + 8
Thread 7:
0 libsystem_kernel.dylib 0x1cba673c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1cc5a744 _pthread_wqthread + 728 (pthread.c:2129)
2 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 8:
0 libsystem_pthread.dylib 0x1cc5a454 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x1cc5a454 start_wqthread + 0
Thread 10:
0 libsystem_pthread.dylib 0x1cc5a454 start_wqthread + 0
Thread 11 name:
Thread 11:
0 libsystem_kernel.dylib 0x1cb90900 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x1cb906e0 mach_msg + 44 (mach_msg.c:103)
2 Ribony 0x00175960 CLSMachExceptionServer + 900
3 libsystem_pthread.dylib 0x1cc5c93a _pthread_body + 216 (pthread.c:697)
4 libsystem_pthread.dylib 0x1cc5c85c _pthread_start + 234 (pthread.c:744)
5 libsystem_pthread.dylib 0x1cc5a468 thread_start + 8
Thread 12 name:
Thread 12:
0 libsystem_kernel.dylib 0x1cb90900 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x1cb906e0 mach_msg + 44 (mach_msg.c:103)
2 CoreFoundation 0x1d393be2 __CFRunLoopServiceMachPort + 144 (CFRunLoop.c:2527)
3 CoreFoundation 0x1d392064 __CFRunLoopRun + 1436 (CFRunLoop.c:2870)
4 CoreFoundation 0x1d2e51ae CFRunLoopRunSpecific + 470 (CFRunLoop.c:3113)
5 CoreFoundation 0x1d2e4fd0 CFRunLoopRunInMode + 104 (CFRunLoop.c:3143)
6 CFNetwork 0x1d9c2392 +[NSURLConnection(Loader) _resourceLoadLoop:] + 402 (NSURLConnection.mm:364)
7 Foundation 0x1dd1d8ea __NSThread__start__ + 1122 (NSThread.m:1163)
8 libsystem_pthread.dylib 0x1cc5c93a _pthread_body + 216 (pthread.c:697)
9 libsystem_pthread.dylib 0x1cc5c85c _pthread_start + 234 (pthread.c:744)
10 libsystem_pthread.dylib 0x1cc5a468 thread_start + 8
Thread 13 name:
Thread 13:
0 libcorecrypto.dylib 0x1ca5f62c ccn_sqr_ws + 168 (ccn_sqr.c:60)
1 libcorecrypto.dylib 0x1ca85b7c ccn_make_recip_newtonraphson + 374 (ccn_make_recip.c:142)
2 libcorecrypto.dylib 0x1ca85c80 ccn_make_recip + 60 (ccn_make_recip.c:201)
3 libcorecrypto.dylib 0x1ca84fb6 ccder_decode_rsa_pub + 72 (ccder_decode_rsa_pub.c:21)
4 libcorecrypto.dylib 0x1ca8531e ccrsa_import_pub + 30 (ccrsa_import_pub.c:16)
5 Security 0x1d7b0d04 SecRSAPublicKeyInit + 108 (SecRSAKey.c:176)
6 Security 0x1d79a198 SecKeyCreate + 106 (SecKey.c:493)
7 Security 0x1d7b10f2 SecKeyCreateRSAPublicKey_ios + 28 (SecRSAKey.c:384)
8 Security 0x1d78adf2 SecCertificateCopyPublicKey + 90 (SecCertificate.c:4814)
9 Security 0x1d7b6564 __SecTrustCopyPublicKey_block_invoke + 24 (SecTrust.c:1411)
10 libdispatch.dylib 0x1cab1a34 _dispatch_barrier_sync_f_invoke + 50 (queue.c:3446)
11 Security 0x1d7b64fe SecTrustCopyPublicKey + 92 (SecTrust.c:1402)
12 libcoretls_cfhelpers.dylib 0x371ef898 tls_helper_set_peer_pubkey + 62 (tls_helpers.c:199)
13 CFNetwork 0x1da60c98 TCPIOConnection::_tlsProcessPublicKey(nw_tls_context*) + 12 (TCPIOConnection.cpp:3566)
14 CFNetwork 0x1da5faa2 TCPIOConnection::_handleTLSEvent(nw_tls_context*, tls_handshake_message_t, void () block_pointer,... + 486 (TCPIOConnection.cpp:4363)
15 CFNetwork 0x1da5f8b6 ___ZN15TCPIOConnection9_startTLSEv_block_invoke + 20 (TCPIOConnection.cpp:2668)
16 libnetwork.dylib 0x2879fd90 __tcp_connection_set_tls_message_handler_on_nw_connection_block_invoke + 126 (tcp_connection.m:1716)
17 libnetwork.dylib 0x287acdbe __nw_coretls_callback_handshake_message_block_invoke + 88 (protocol_coretls.c:776)
18 libdispatch.dylib 0x1caa5796 _dispatch_call_block_and_release + 10 (init.c:963)
19 libdispatch.dylib 0x1cab259c _dispatch_queue_serial_drain + 854 (inline_internal.h:2431)
20 libdispatch.dylib 0x1caa8b70 _dispatch_queue_invoke + 886 (queue.c:4853)
21 libdispatch.dylib 0x1cab41b4 _dispatch_root_queue_drain + 326 (inline_internal.h:2468)
22 libdispatch.dylib 0x1cab400e _dispatch_worker_thread3 + 106 (queue.c:5550)
23 libsystem_pthread.dylib 0x1cc5a87c _pthread_wqthread + 1040 (pthread.c:2196)
24 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 14:
0 libsystem_kernel.dylib 0x1cba673c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1cc5a8ea _pthread_wqthread + 1150 (pthread.c:2205)
2 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 15:
0 libsystem_kernel.dylib 0x1cba673c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1cc5a8ea _pthread_wqthread + 1150 (pthread.c:2205)
2 libsystem_pthread.dylib 0x1cc5a45c start_wqthread + 8
Thread 16:
0 libsystem_pthread.dylib 0x1cc5a454 start_wqthread + 0
Thread 4 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000004 r2: 0x00000003 r3: 0x192356d0
r4: 0x33010005 r5: 0x39cfc048 r6: 0x39cf8000 r7: 0x00000001
r8: 0x005c0000 r9: 0x00000000 r10: 0x00000001 r11: 0x00000001
ip: 0x015a9f68 sp: 0x19235570 lr: 0x00001200 pc: 0x168392e0
cpsr: 0x60000010
As you can see Thread 4 is crashed. But this report looks like not symbolicated but actually it is symbolicated report. How can i fix this problem?
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
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
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
I'm getting a really weird behavior, my app crashes almost only with the device (I did manage to reproduce the bug on the simulator, but only twice), and only when it is not running from Xcode.
What happens is, I can, sometimes, reproduce the bug by closing the app from the multitask, opening it again, locking the screen fast and unlocking the screen.
Also I get different errors sometimes.
Crash log 1:
Incident Identifier: F2997747-0068-4DA7-BDB8-734B786855E9
CrashReporter Key: 369354cb12966b72d136b40418726dd923de7aae
Hardware Model: iPhone5,1
Process: HomeAutomation [813]
Path: /var/mobile/Applications/6F99E387-2530-4433-8DB8-0B657C4F9742/HomeAutomation.app/HomeAutomation
Identifier: com.carbon306.HomeAutomation
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-12 01:49:50.880 -0300
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x717ec19e
Triggered by Thread: 6
Thread 0:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329e32e6 GSEventRunModal + 134
7 UIKit 0x305631e0 UIApplicationMain + 1132
8 HomeAutomation 0x000dbca0 0xd6000 + 23712
9 libdyld.dylib 0x3856cab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38610838 kevent64 + 24
1 libdispatch.dylib 0x3855f0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3855963e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 Foundation 0x2e6e764c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e75cdc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 6 Crashed:
0 libobjc.A.dylib 0x3806eb66 objc_msgSend + 6
1 libdispatch.dylib 0x38558100 _dispatch_call_block_and_release + 8
2 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
3 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
4 libsystem_pthread.dylib 0x38687dfc _pthread_wqthread + 296
5 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x38623440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dd4745e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 6 crashed with ARM Thread State (32-bit):
r0: 0x17ea6320 r1: 0x30b5f763 r2: 0x00000000 r3: 0x00000003
r4: 0x17d96b30 r5: 0x00000000 r6: 0x001c0840 r7: 0x02ac5f8c
r8: 0x00000001 r9: 0x717ec192 r10: 0x00000000 r11: 0x00000000
ip: 0x38b94224 sp: 0x02ac5f88 lr: 0x38558103 pc: 0x3806eb66
cpsr: 0x60000030
Crash log 2:
Incident Identifier: D605BD2A-6787-4534-8AB9-BC89A7DD9945
CrashReporter Key: 369354cb12966b72d136b40418726dd923de7aae
Hardware Model: iPhone5,1
Process: HomeAutomation [698]
Path: /var/mobile/Applications/6F99E387-2530-4433-8DB8-0B657C4F9742/HomeAutomation.app/HomeAutomation
Identifier: com.carbon306.HomeAutomation
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-12 01:24:29.139 -0300
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 4
Last Exception Backtrace:
0 CoreFoundation 0x2dd78e86 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x380736c2 objc_exception_throw + 34
2 CoreFoundation 0x2dd7c7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x2dd7b0b2 ___forwarding___ + 702
4 CoreFoundation 0x2dcc9e94 __forwarding_prep_0___ + 20
5 libdispatch.dylib 0x385580fe _dispatch_call_block_and_release + 6
6 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
7 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
8 libsystem_pthread.dylib 0x38687dfa _pthread_wqthread + 294
9 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 0:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329e32e6 GSEventRunModal + 134
7 UIKit 0x305631e0 UIApplicationMain + 1132
8 HomeAutomation 0x000e4d48 0xdf000 + 23880
9 libdyld.dylib 0x3856cab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38610838 kevent64 + 24
1 libdispatch.dylib 0x3855f0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3855963e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 4 Crashed:
0 libsystem_kernel.dylib 0x386231fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3868aa4e pthread_kill + 54
2 libsystem_c.dylib 0x385d4028 abort + 72
3 libc++abi.dylib 0x37a2298a abort_message + 70
4 libc++abi.dylib 0x37a3b6e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x38073936 _objc_terminate() + 190
6 libc++abi.dylib 0x37a391b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x37a38a04 __cxa_throw + 112
8 libobjc.A.dylib 0x38073796 objc_exception_throw + 246
9 CoreFoundation 0x2dd7c7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
10 CoreFoundation 0x2dd7b0b2 ___forwarding___ + 702
11 CoreFoundation 0x2dcc9e94 __forwarding_prep_0___ + 20
12 libdispatch.dylib 0x38558100 _dispatch_call_block_and_release + 8
13 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
14 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
15 libsystem_pthread.dylib 0x38687dfc _pthread_wqthread + 296
16 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687c98 pthread_workqueue_addthreads_np + 40
2 libdispatch.dylib 0x3855d46c _dispatch_queue_wakeup_global_slow + 52
3 libdispatch.dylib 0x3855c5a6 _dispatch_wakeup + 122
4 libdispatch.dylib 0x3855cbe8 _dispatch_queue_push_list_slow2 + 16
5 libdispatch.dylib 0x3855c5a6 _dispatch_wakeup + 122
6 libdispatch.dylib 0x3855cbe8 _dispatch_queue_push_list_slow2 + 16
7 libdispatch.dylib 0x3855f432 _dispatch_mach_msg_send + 518
8 libdispatch.dylib 0x3855a12e dispatch_mach_send + 166
9 libxpc.dylib 0x386948d2 xpc_connection_send_message + 46
10 libsystem_network.dylib 0x3866384a __net_helper_send_block_invoke + 62
11 libdispatch.dylib 0x3855c8f6 _dispatch_barrier_sync_f_invoke + 22
12 libsystem_network.dylib 0x38661c64 net_helper_send + 164
13 libsystem_network.dylib 0x38661b4c net_helper_client_cancel + 76
14 libsystem_network.dylib 0x3865f384 __tcp_connection_cancel_block_invoke + 156
15 libdispatch.dylib 0x385580ec _dispatch_client_callout + 20
16 libdispatch.dylib 0x3855c8f6 _dispatch_barrier_sync_f_invoke + 22
17 libsystem_network.dylib 0x3865f2da tcp_connection_cancel + 102
18 CFNetwork 0x2d972ab4 SocketStream::close(void const*) + 312
19 CFNetwork 0x2d97294e CoreStreamBase::_streamInterface_Close() + 46
20 CFNetwork 0x2d991286 HTTPReadFilter::_streamImpl_Close() + 66
21 CFNetwork 0x2d97294e CoreStreamBase::_streamInterface_Close() + 46
22 CFNetwork 0x2d9911c6 NetConnection::shutdownConnectionStreams() + 98
23 CFNetwork 0x2d9c51b4 NetConnection::errorOccurred(CFStreamError*) + 56
24 CFNetwork 0x2d988b0a HTTPNetConnection::responseStreamCallback(void*, __CoreReadStream*, unsigned long) + 282
25 CFNetwork 0x2d9889d2 NetConnection::connectionResponse(__CoreReadStream*, unsigned long) + 114
26 CFNetwork 0x2d96cb20 CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 32
27 CFNetwork 0x2da131f0 CoreStreamBase::_callClientNow(CoreStreamClient*) + 40
28 CFNetwork 0x2d96c8c2 CoreStreamBase::_streamSetEventAndScheduleDelivery(unsigned long, unsigned char) + 118
29 CFNetwork 0x2d96c76e CoreStreamBase::_streamInterface_SignalEvent(unsigned long, CFStreamError const*) + 30
30 CFNetwork 0x2d9878ca HTTPReadFilter::socketReadStreamCallback(unsigned long) + 342
31 CFNetwork 0x2d987762 HTTPReadFilter::_httpRdFilterStreamCallBack(__CoreReadStream*, unsigned long, void*) + 78
32 CFNetwork 0x2d96cb20 CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 32
33 CFNetwork 0x2da131f0 CoreStreamBase::_callClientNow(CoreStreamClient*) + 40
34 CFNetwork 0x2d96c8c2 CoreStreamBase::_streamSetEventAndScheduleDelivery(unsigned long, unsigned char) + 118
35 CFNetwork 0x2d96c76e CoreStreamBase::_streamInterface_SignalEvent(unsigned long, CFStreamError const*) + 30
36 CFNetwork 0x2d96c70a SocketStream::dispatchSignalFromSocketCallbackUnlocked(SocketStreamSignalHolder*) + 50
37 CFNetwork 0x2d96c1ae SocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 138
38 CFNetwork 0x2d96c0ea SocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 54
39 CoreFoundation 0x2dd46102 __CFSocketPerformV0 + 578
40 CoreFoundation 0x2dd43f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
41 CoreFoundation 0x2dd433ea __CFRunLoopDoSources0 + 202
42 CoreFoundation 0x2dd41bda __CFRunLoopRun + 626
43 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
44 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
45 Foundation 0x2e6e764c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
46 Foundation 0x2e75cdc2 __NSThread__main__ + 1058
47 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
48 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
49 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x38623440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dd4745e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 4 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x02826000 r6: 0x00000000 r7: 0x02825174
r8: 0x17ddfae0 r9: 0x00000001 r10: 0x30b5f763 r11: 0x00000000
ip: 0x00000148 sp: 0x02825168 lr: 0x3868aa53 pc: 0x386231fc
cpsr: 0x00000010
Crash log 3:
Incident Identifier: 09CD02C2-162E-40FB-8AA5-2F098D833D1C
CrashReporter Key: 369354cb12966b72d136b40418726dd923de7aae
Hardware Model: iPhone5,1
Process: HomeAutomation [679]
Path: /var/mobile/Applications/6F99E387-2530-4433-8DB8-0B657C4F9742/HomeAutomation.app/HomeAutomation
Identifier: com.carbon306.HomeAutomation
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-12 01:18:19.932 -0300
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x73746564
Triggered by Thread: 5
Thread 0:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329e32e6 GSEventRunModal + 134
7 UIKit 0x305631e0 UIApplicationMain + 1132
8 HomeAutomation 0x00073d48 main (main.m:16)
9 libdyld.dylib 0x3856cab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38610838 kevent64 + 24
1 libdispatch.dylib 0x3855f0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3855963e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 5 Crashed:
0 libobjc.A.dylib 0x3807677a lookUpImpOrForward + 46
1 libobjc.A.dylib 0x3806f026 _class_lookupMethodAndLoadCache3 + 30
2 libobjc.A.dylib 0x3806edf6 _objc_msgSend_uncached + 22
3 libdispatch.dylib 0x38558100 _dispatch_call_block_and_release + 8
4 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
5 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
6 libsystem_pthread.dylib 0x38687dfc _pthread_wqthread + 296
7 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 Foundation 0x2e6e764c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e75cdc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x38623440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dd4745e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 5 crashed with ARM Thread State (32-bit):
r0: 0x73746564 r1: 0x30b5f763 r2: 0x17e3b980 r3: 0x00000001
r4: 0x30b5f763 r5: 0x30b40a4f r6: 0x00140c40 r7: 0x02837f54
r8: 0x00000000 r9: 0x00000001 r10: 0x00000001 r11: 0x00000000
ip: 0x3806f009 sp: 0x02837f30 lr: 0x3806f02b pc: 0x3807677a
cpsr: 0x80000030
Crash log 4:
Incident Identifier: B9DCE622-A962-4C0F-8653-E0B6EECFCC66
CrashReporter Key: 369354cb12966b72d136b40418726dd923de7aae
Hardware Model: iPhone5,1
Process: HomeAutomation [598]
Path: /var/mobile/Applications/6F99E387-2530-4433-8DB8-0B657C4F9742/HomeAutomation.app/HomeAutomation
Identifier: com.carbon306.HomeAutomation
Version: 1.0 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-12 00:57:58.928 -0300
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 4
Last Exception Backtrace:
0 CoreFoundation 0x2dd78e86 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x380736c2 objc_exception_throw + 34
2 CoreFoundation 0x2dd7c7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x2dd7b0b2 ___forwarding___ + 702
4 CoreFoundation 0x2dcc9e94 __forwarding_prep_0___ + 20
5 libdispatch.dylib 0x385580fe _dispatch_call_block_and_release + 6
6 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
7 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
8 libsystem_pthread.dylib 0x38687dfa _pthread_wqthread + 294
9 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 0:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x329e32e6 GSEventRunModal + 134
7 UIKit 0x305631e0 UIApplicationMain + 1132
8 HomeAutomation 0x00019ca0 main (main.m:16)
9 libdyld.dylib 0x3856cab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38610838 kevent64 + 24
1 libdispatch.dylib 0x3855f0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3855963e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 4 Crashed:
0 libsystem_kernel.dylib 0x386231fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3868aa4e pthread_kill + 54
2 libsystem_c.dylib 0x385d4028 abort + 72
3 libc++abi.dylib 0x37a2298a abort_message + 70
4 libc++abi.dylib 0x37a3b6e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x38073936 _objc_terminate() + 190
6 libc++abi.dylib 0x37a391b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x37a38a04 __cxa_throw + 112
8 libobjc.A.dylib 0x38073796 objc_exception_throw + 246
9 CoreFoundation 0x2dd7c7b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
10 CoreFoundation 0x2dd7b0b2 ___forwarding___ + 702
11 CoreFoundation 0x2dcc9e94 __forwarding_prep_0___ + 20
12 libdispatch.dylib 0x38558100 _dispatch_call_block_and_release + 8
13 libdispatch.dylib 0x3855d7e0 _dispatch_root_queue_drain + 220
14 libdispatch.dylib 0x3855d9cc _dispatch_worker_thread2 + 52
15 libsystem_pthread.dylib 0x38687dfc _pthread_wqthread + 296
16 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 6:
0 libsystem_kernel.dylib 0x38623c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38687e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38687cc0 start_wqthread + 4
Thread 7 name: com.apple.NSURLConnectionLoader
Thread 7:
0 libsystem_kernel.dylib 0x38610a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3861087c mach_msg + 36
2 CoreFoundation 0x2dd4355c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2dd41c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2dcac53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2dcac31e CFRunLoopRunInMode + 102
6 Foundation 0x2e6e764c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2e75cdc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
10 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 8 name: com.apple.CFSocket.private
Thread 8:
0 libsystem_kernel.dylib 0x38623440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2dd4745e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x38689c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x38689bca _pthread_start + 98
4 libsystem_pthread.dylib 0x38687ccc thread_start + 4
Thread 4 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x0275c000 r6: 0x00000000 r7: 0x0275b174
r8: 0x165970a0 r9: 0x00000001 r10: 0x30b5f763 r11: 0x00000000
ip: 0x00000148 sp: 0x0275b168 lr: 0x3868aa53 pc: 0x386231fc
cpsr: 0x00000010
Also I think it has something to do with this method:
- [UIManagedDocument openWithCompletionHandler:]
because if I comment out this line (used to open the document when document.documentState == UIDocumentStateClosed), the crash stops.
Just to make it easier, that UIManagedDocument Singleton Code openWithCompletionHandler called twice and crashes is not the problem, because - [UIManagedDocument openWithCompletionHandler:] is not being called twice.
Also, just to be sure, I did try that solution, and didn't change anything.
I'm sorry for the amount of information, but I did try to write here only the most relevant ones, also only one of each type of error that I found.
Thanks for the help.
Below links explains how to symbolicate the crash logs. it sounds useful.
from apples documentation :
https://developer.apple.com/library/ios/technotes/tn2151/_index.html
from raywanderlitch's explanation :
http://www.raywenderlich.com/23704/demystifying-ios-application-crash-logs