We have been trying to submit an app with Apple for the last month and it keeps coming back rejected for small reasons. We are completely stuck with this last response and have no idea how to proceed.
They said the app crashed when creating a profile on our app. The problem is we thoroughly tested this on 4 different devices (iPhone 5, iPhone5S, iPhone 6S, iPad Air) and it works flawlessly for us.
They provided us a crash log but after hours of reading it and Googling we are coming up dry. Any help understanding what this crash log means will be a greatly appreciated.
Incident Identifier: 1985D6ED-9ED1-428D-9E27-41DBFD053205
CrashReporter Key: 7623e816ce9df811618c4e9b022a6c8f3c98bddb
Hardware Model: xxx
Process: fitDEGREE [784]
Path: /private/var/mobile/Containers/Bundle/Application/706E0CE8-B30F-4F30-B1B4-BEFE5F3FC51A/fitDEGREE.app/fitDEGREE
Identifier: com.FitDegree.fitDEGREE
Version: 3 (1.0.1)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-02-02 12:11:39.39 -0800
Launch Time: 2016-02-02 12:07:56.56 -0800
OS Version: iOS 9.2.1 (13D15)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x1832cd900 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18293bf80 objc_exception_throw + 56
2 CoreFoundation 0x1831bc1a8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 324
3 CoreFoundation 0x1831bc040 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 64
4 fitDEGREE 0x1000b7964 0x10006c000 + 309604
5 fitDEGREE 0x10014f4b4 0x10006c000 + 930996
6 fitDEGREE 0x100127a94 0x10006c000 + 768660
7 fitDEGREE 0x10014efec 0x10006c000 + 929772
8 libdispatch.dylib 0x182d21630 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x182d215f0 _dispatch_client_callout + 16
10 libdispatch.dylib 0x182d26cf8 _dispatch_main_queue_callback_4CF + 1844
11 CoreFoundation 0x183284bb0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
12 CoreFoundation 0x183282a18 __CFRunLoopRun + 1628
13 CoreFoundation 0x1831b1680 CFRunLoopRunSpecific + 384
14 GraphicsServices 0x1846c0088 GSEventRunModal + 180
15 UIKit 0x188028d90 UIApplicationMain + 204
16 fitDEGREE 0x1000fe758 0x10006c000 + 599896
17 libdyld.dylib 0x182d528b8 start + 4
Global Trace Buffer (reverse chronological seconds):
0.099409 CFNetwork 0x0000000183948708 TCP Conn 0x158cf1640 started
0.293100 CFNetwork 0x0000000183947104 TCP Conn 0x158b19340 complete. fd: 22, err: 0
0.293568 CFNetwork 0x0000000183948630 TCP Conn 0x158b19340 event 1. err: 0
0.377927 CFNetwork 0x0000000183948708 TCP Conn 0x158b19340 started
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182e70140 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000182f38ef8 pthread_kill + 112
2 libsystem_c.dylib 0x0000000182de1dac abort + 140
3 libc++abi.dylib 0x00000001829153f4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000182931e98 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x000000018293c248 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018292ef44 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018292e85c __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libobjc.A.dylib 0x000000018293c094 _objc_exception_destructor(void*) + 0
9 CoreFoundation 0x00000001831bc1a8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 324
10 CoreFoundation 0x00000001831bc040 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 64
11 fitDEGREE 0x00000001000b7964 0x10006c000 + 309604
12 fitDEGREE 0x000000010014f4b4 0x10006c000 + 930996
13 fitDEGREE 0x0000000100127a94 0x10006c000 + 768660
14 fitDEGREE 0x000000010014efec 0x10006c000 + 929772
15 libdispatch.dylib 0x0000000182d21630 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x0000000182d215f0 _dispatch_client_callout + 16
17 libdispatch.dylib 0x0000000182d26cf8 _dispatch_main_queue_callback_4CF + 1844
18 CoreFoundation 0x0000000183284bb0 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
19 CoreFoundation 0x0000000183282a18 __CFRunLoopRun + 1628
20 CoreFoundation 0x00000001831b1680 CFRunLoopRunSpecific + 384
21 GraphicsServices 0x00000001846c0088 GSEventRunModal + 180
22 UIKit 0x0000000188028d90 UIApplicationMain + 204
23 fitDEGREE 0x00000001000fe758 0x10006c000 + 599896
24 libdyld.dylib 0x0000000182d528b8 start + 4
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000182e714fc kevent_qos + 8
1 libdispatch.dylib 0x0000000182d3494c _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x0000000182d237bc _dispatch_source_invoke + 0
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x0000000182e554bc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000182e55338 mach_msg + 72
2 CoreFoundation 0x0000000183284ac0 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001832827c4 __CFRunLoopRun + 1032
4 CoreFoundation 0x00000001831b1680 CFRunLoopRunSpecific + 384
5 CFNetwork 0x0000000183921434 +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 Foundation 0x0000000183c8fc40 __NSThread__start__ + 1000
7 libsystem_pthread.dylib 0x0000000182f37b28 _pthread_body + 156
8 libsystem_pthread.dylib 0x0000000182f37a8c _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000182f35028 thread_start + 4
Thread 3 name: com.apple.CFSocket.private
Thread 3:
0 libsystem_kernel.dylib 0x0000000182e70368 __select + 8
1 CoreFoundation 0x000000018328b028 __CFSocketManager + 648
2 libsystem_pthread.dylib 0x0000000182f37b28 _pthread_body + 156
3 libsystem_pthread.dylib 0x0000000182f37a8c _pthread_body + 0
4 libsystem_pthread.dylib 0x0000000182f35028 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x0000000182e70b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182f35530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 5:
0 libsystem_kernel.dylib 0x0000000182e70b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182f35530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 6 name: Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x156e82f30.events
Thread 6:
0 libsystem_kernel.dylib 0x0000000182e55510 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x0000000182d32508 _dispatch_semaphore_wait_slow + 160
2 CoreLocation 0x0000000189b3ed78 0x189b3c000 + 11640
3 CoreLocation 0x0000000189b437ec 0x189b3c000 + 30700
4 CoreLocation 0x0000000189b7df28 0x189b3c000 + 270120
5 CoreLocation 0x0000000189b7bb7c 0x189b3c000 + 260988
6 CoreLocation 0x0000000189b7bab0 0x189b3c000 + 260784
7 CoreLocation 0x0000000189b7ccfc 0x189b3c000 + 265468
8 libxpc.dylib 0x0000000182f69358 _xpc_connection_call_event_handler + 68
9 libxpc.dylib 0x0000000182f67100 _xpc_connection_mach_event + 2132
10 libdispatch.dylib 0x0000000182d216ec _dispatch_client_callout4 + 16
11 libdispatch.dylib 0x0000000182d259d8 _dispatch_mach_msg_invoke + 656
12 libdispatch.dylib 0x0000000182d2d808 _dispatch_queue_drain + 1332
13 libdispatch.dylib 0x0000000182d24aec _dispatch_mach_invoke + 600
14 libdispatch.dylib 0x0000000182d2d808 _dispatch_queue_drain + 1332
15 libdispatch.dylib 0x0000000182d250f4 _dispatch_queue_invoke + 464
16 libdispatch.dylib 0x0000000182d2d808 _dispatch_queue_drain + 1332
17 libdispatch.dylib 0x0000000182d250f4 _dispatch_queue_invoke + 464
18 libdispatch.dylib 0x0000000182d215f0 _dispatch_client_callout + 16
19 libdispatch.dylib 0x0000000182d2fa88 _dispatch_root_queue_drain + 2140
20 libdispatch.dylib 0x0000000182d2f224 _dispatch_worker_thread3 + 112
21 libsystem_pthread.dylib 0x0000000182f35470 _pthread_wqthread + 1092
22 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x0000000182e70b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182f35530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x0000000182e70b6c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000182f35530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 9 name: Dispatch queue: com.apple.networking.connection.0x158cf1640
Thread 9:
0 libsystem_kernel.dylib 0x0000000182e56830 close + 8
1 libsystem_network.dylib 0x0000000182eca31c nw_network_agent_internal_copy_dictionary_for_uuid + 472
2 libsystem_network.dylib 0x0000000182ef089c nw_path_create_evaluator_for_helper_client_id + 2576
3 libsystem_network.dylib 0x0000000182ec298c __tcp_connection_start_block_invoke + 368
4 libdispatch.dylib 0x0000000182d21630 _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x0000000182d215f0 _dispatch_client_callout + 16
6 libdispatch.dylib 0x0000000182d2d634 _dispatch_queue_drain + 864
7 libdispatch.dylib 0x0000000182d250f4 _dispatch_queue_invoke + 464
8 libdispatch.dylib 0x0000000182d2f504 _dispatch_root_queue_drain + 728
9 libdispatch.dylib 0x0000000182d2f224 _dispatch_worker_thread3 + 112
10 libsystem_pthread.dylib 0x0000000182f35470 _pthread_wqthread + 1092
11 libsystem_pthread.dylib 0x0000000182f35020 start_wqthread + 4
Thread 10:
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000158ce0df7
x4: 0x0000000182932e02 x5: 0x000000016fd91450 x6: 0x000000000000006e x7: 0x0000000000000fa0
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x0000000000000002 x11: 0x0000000000000010
x12: 0x0000000000000000 x13: 0x0000000000000002 x14: 0x0000000009010810 x15: 0x0000000010808020
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001a0bbf000 x21: 0x000000016fd91450 x22: 0x0000000156d207d0 x23: 0x800029e5f0542d01
x24: 0x00000000000000b8 x25: 0x0000000158cf3d00 x26: 0xa006769666e6f636 x27: 0x0000000000000000
x28: 0xa0030303a35302d6 fp: 0x000000016fd913b0 lr: 0x0000000182f38ef8
sp: 0x000000016fd91390 pc: 0x0000000182e70140 cpsr: 0x00000000
Related
Im experiencing an error in my app affecting almost 80% of my active users.
It seems it has something to do with the thread
`com.twitter.crashlytics.ios.MachExceptionServer`
but I haven't been able to track it down, the worst thing of all is that I don't even know when this crash occurs, my guess is that it happens when the app is launching in the DidFinishLaunchingWithOptions method. :/
Hope you can help me out, I am new to this crash tracking thing.
Here is the crash log.
Incident Identifier: F627A1C2-A28A-4200-8920-1F77D3C0855C
CrashReporter Key: 88dbf413f263228712a90868f4c08e9d59a715f8
Hardware Model: iPhone10,4
Process: <APP_NAME> [1285]
Path: /private/var/containers/Bundle/Application/XXXXXXXXXXXXXXXXX/<APP_NAME>.app/<APP_NAME>
Identifier: xxx.xxxxxxxx.<APP_NAME>
Version: 34 (4.0.0)
AppStoreTools: 10B63
AppVariant: 1:iPhone10,4:12
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: xxx.xxxxxx.xxxxxx [677]
Date/Time: 2018-12-16 16:41:34.1689 -0600
Launch Time: 2018-12-16 15:52:00.9225 -0600
OS Version: iPhone OS 12.1 (16B92)
Baseband Version: 2.01.07
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000f262e3bc0
VM Region Info: 0xf262e3bc0 is not in any region. Bytes after previous region: 53790784449
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
--->
UNUSED SPACE AT END
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1285]
Triggered by Thread: 10
Thread 0 name:
Thread 0:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 GraphicsServices 0x00000002062b1584 GSEventRunModal + 100 (GSEvent.c:2245)
6 UIKitCore 0x000000023127d054 UIApplicationMain + 212 (UIApplication.m:4347)
7 <APP_NAME> 0x0000000104ae4548 main + 17736 (AppDelegate.swift:22)
8 libdyld.dylib 0x0000000203afabb4 start + 4
Thread 1 name:
Thread 1:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 Foundation 0x0000000204a2f404 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300 (NSRunLoop.m:367)
6 Foundation 0x0000000204a2f2b0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 148 (NSRunLoop.m:411)
7 UIKitCore 0x000000023136a808 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:603)
8 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
9 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
10 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
11 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 2 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 2:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72
2 <APP_NAME> 0x0000000104f0c490 CLSMachExceptionServer + 952
3 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128
4 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48
5 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x0000000203c3bed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000203c3b3a8 mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x000000020403fbc4 __CFRunLoopServiceMachPort + 236 (CFRunLoop.c:2615)
3 CoreFoundation 0x000000020403aa60 __CFRunLoopRun + 1396 (CFRunLoop.c:2971)
4 CoreFoundation 0x000000020403a1cc CFRunLoopRunSpecific + 436 (CFRunLoop.c:3247)
5 CFNetwork 0x000000020465b834 -[__CoreSchedulingSetRunnable runForever] + 212 (CoreSchedulingSet.mm:1365)
6 Foundation 0x0000000204b621ac __NSThread__start__ + 1040 (NSThread.m:1175)
7 libsystem_pthread.dylib 0x0000000203ccb2ac _pthread_body + 128 (pthread.c:857)
8 libsystem_pthread.dylib 0x0000000203ccb20c _pthread_start + 48 (pthread.c:884)
9 libsystem_pthread.dylib 0x0000000203ccecf4 thread_start + 4
Thread 4:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 5:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 8 name:
Thread 8:
0 libsystem_malloc.dylib 0x0000000203c80c74 nanov2_allocate_from_block$VARIANT$armv81 + 220
1 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
2 libsystem_malloc.dylib 0x0000000203c80040 nanov2_allocate$VARIANT$armv81 + 140
3 libsystem_malloc.dylib 0x0000000203c80540 nanov2_calloc$VARIANT$armv81 + 136
4 libsystem_malloc.dylib 0x0000000203c8db74 malloc_zone_calloc + 140 (malloc.c:1475)
5 libsystem_malloc.dylib 0x0000000203c8e3fc calloc + 40 (malloc.c:1731)
6 libobjc.A.dylib 0x0000000203290554 class_createInstance + 72 (objc-runtime-new.mm:0)
7 libdispatch.dylib 0x0000000203ae9ad8 _os_object_alloc_realized + 40 (object.m:55)
8 libdispatch.dylib 0x0000000203ae3af4 dispatch_data_create_concat$VARIANT$armv81 + 164 (data.c:118)
9 CFNetwork 0x00000002048b8ffc invocation function for block in ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 152 (ConnectionProtocol.cpp:771)
10 libnetwork.dylib 0x00000002050d3474 nw_frame_array_foreach + 48 (frame_internal.h:999)
11 CFNetwork 0x00000002048b64ac ConnectionProtocolReadInner(nw_protocol*, unsigned int, unsigned int, bool, long long, void (dispatch_data_s*, CFStreamError) block_pointer, void (nw_frame_array_s*, CFStreamError) block_pointer) + 408 (ConnectionProtocol.cpp:755)
12 CFNetwork 0x00000002048b6264 ConnectionProtocolServiceReads(nw_protocol*) + 380 (ConnectionProtocol.cpp:658)
13 CFNetwork 0x00000002048b7270 ConnectionProtocolInputAvailable(nw_protocol*, nw_protocol*) + 64 (ConnectionProtocol.cpp:964)
14 libboringssl.dylib 0x0000000204f34ac8 nw_boringssl_read + 532 (protocol_boringssl.m:1177)
15 libboringssl.dylib 0x0000000204f362a4 nw_protocol_boringssl_input_available + 120 (protocol_boringssl.m:1218)
16 libusrtcp.dylib 0x00000002053d8e9c nw_protocol_tcp_wake_read + 484 (protocol_tcp.c:269)
17 libusrtcp.dylib 0x00000002053c9774 nw_protocol_tcp_input_flush + 100 (user_north.c:40)
18 libnetwork.dylib 0x0000000205167474 nw_channel_add_input_frames + 4184 (channel.c:1096)
19 libnetwork.dylib 0x00000002051663b8 nw_channel_update_input_source + 136 (channel.c:1138)
20 libnetwork.dylib 0x0000000205165c08 __nw_channel_create_block_invoke.21 + 52 (channel.c:1960)
21 libdispatch.dylib 0x0000000203aea484 _dispatch_client_callout + 16 (object.m:511)
22 libdispatch.dylib 0x0000000203ac0e14 _dispatch_continuation_pop$VARIANT$armv81 + 404 (inline_internal.h:2441)
23 libdispatch.dylib 0x0000000203ad0ab4 _dispatch_source_invoke$VARIANT$armv81 + 1704 (source.c:568)
24 libdispatch.dylib 0x0000000203ac6d70 _dispatch_workloop_invoke$VARIANT$armv81 + 1892 (inline_internal.h:2482)
25 libdispatch.dylib 0x0000000203acdf14 _dispatch_workloop_worker_thread + 584 (queue.c:5889)
26 libsystem_pthread.dylib 0x0000000203ccc0dc _pthread_wqthread + 312 (pthread.c:2363)
27 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 9:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
Thread 11:
0 libsystem_pthread.dylib 0x0000000203ccece8 start_wqthread + 0
Thread 10 crashed with ARM Thread State (64-bit):
x0: 0x0000000280283bb0 x1: 0x00000002317c19b4 x2: 0x0000000000000001 x3: 0x0000000203c8019c
x4: 0x000000014a514400 x5: 0x0000000000000012 x6: 0x000000023b9c4000 x7: 0x000000016b77e538
x8: 0x0000000281685080 x9: 0x0000000000000000 x10: 0x0000000148860a00 x11: 0x0000002f0000003f
x12: 0x0000000148860d40 x13: 0x0000a69f262e3bb0 x14: 0x000000000000004c x15: 0x0000000080000000
x16: 0x0000000f262e3bb0 x17: 0x0000000206c0f138 x18: 0x0000000000000000 x19: 0x0000000282fc8b70
x20: 0x00000002317c19b4 x21: 0x000000000000000c x22: 0x0000000000000020 x23: 0x0000000000000015
x24: 0x0000000000000010 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x000000016b77f0e0 fp: 0x000000016b77ea80 lr: 0x0000000206c17754
sp: 0x000000016b77ea40 pc: 0x0000000203298d70 cpsr: 0x20000000
AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
GeoBasedManager.instance.setCountry()
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
NotificationManager.shared.retrievePushNotifications()
FirebaseApp.configure()
SwiftDate.defaultRegion = Region.local
DropDown.startListeningToKeyboard()
return true
The thread com.twitter.crashlytics.ios.MachExceptionServer is a part of the Crashlytics reporting machinery. It is present in every report that Crashlytics generates, and is not related to your issue.
From your report, that Triggered by Thread: 10 indicates which thread is at fault. From that, we can see that you've got what looks like a classic over-release.
Thread 10 name:
Thread 10 Crashed:
0 libobjc.A.dylib 0x0000000203298d70 objc_msgSend + 16
1 CoreData 0x0000000206c17754 -[_PFArray dealloc] + 100 (_PFArray.m:379)
2 libobjc.A.dylib 0x000000020329b38c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 676 (NSObject.mm:1605)
3 libdispatch.dylib 0x0000000203aea464 _dispatch_last_resort_autorelease_pool_pop + 40 (object.m:488)
4 libdispatch.dylib 0x0000000203accddc _dispatch_root_queue_drain + 1080 (queue.c:6049)
5 libdispatch.dylib 0x0000000203acd35c _dispatch_worker_thread2 + 116 (queue.c:6072)
6 libsystem_pthread.dylib 0x0000000203ccc17c _pthread_wqthread + 472 (pthread.c:2353)
7 libsystem_pthread.dylib 0x0000000203ccecec start_wqthread + 4
From frame 2 and 3, you can see that the system is cleaning up auto-released objects, from what looks like an internal dispatch queue. In there is an object that has already been deallocated, but is now being released again.
This kinds of bugs can manifest themselves in a variety of different-looking crashes. They can be hard to debug. As you are seeing, it is very hard to determine where the actual over-release occurred. Fortunately, Apple provides a few tools that can help. Check out the Zombies feature of Instruments. Good luck!
My app opens up another app and crashes on the splash screen when the user returns to my app.
I haven't been able to replicate the issue and have gone through the debug logs to no avail so far. I think the crash relates to application:openURL:options in App Delegate.
Any ideas?
Here's my code for that method:
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options {
NSString *string = [options objectForKey:UIApplicationOpenURLOptionsSourceApplicationKey];
if (string && [string hasPrefix:#"com.squareup.square"]) {
PFObject *parseOrder = self.dataManager.parseOrderObject;
if (parseOrder && url && options) {
[self.dataExtraction squareUploadSuccessfulPaymentHelperWithParseOrder:parseOrder
URL:url
options:options];
}
return YES;
}
return NO;
}
Here are the logs:
Incident Identifier: 4506A316-557A-4E89-9A24-3A48AB167EE4
CrashReporter Key: ba26439f76bc207f8db936b344220e545a0b368d
Hardware Model: iPad5,4
Process: APPNAME [974]
Path: /private/var/containers/Bundle/Application/8810679A-29AB-41E1-8A9D-B08D1C68B72B/APPNAME.app/APPNAME
Identifier: com.NAME.APPNAME
Version: 1 (1.47)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.NAME.APPNAME [815]
Date/Time: 2018-03-07 14:45:27.1669 -0500
Launch Time: 2018-03-07 14:45:26.2575 -0500
OS Version: iPhone OS 10.1.1 (14B100)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x187a821c0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1864bc55c objc_exception_throw + 55
2 CoreFoundation 0x187961600 -[__NSPlaceholderArray initWithObjects:count:] + 311
3 CoreFoundation 0x18796d38c +[NSArray arrayWithObjects:count:] + 51
4 Parse 0x10071823c 0x100690000 + 557628
5 APPNAME 0x100149ae4 0x1000d4000 + 482020
6 APPNAME 0x100148e64 0x1000d4000 + 478820
7 APPNAME 0x10014827c 0x1000d4000 + 475772
8 APPNAME 0x1001ab4fc 0x1000d4000 + 881916
9 UIKit 0x18db663a4 __45-[UIApplication _applicationOpenURL:payload:]_block_invoke + 751
10 UIKit 0x18db65e30 -[UIApplication _applicationOpenURL:payload:] + 655
11 UIKit 0x18db58ba8 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4371
12 UIKit 0x18db5e5c8 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1655
13 UIKit 0x18db72e60 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3137 + 47
14 UIKit 0x18db5b5ac -[UIApplication workspaceDidEndTransaction:] + 167
15 FrontBoardServices 0x1896298bc __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 35
16 FrontBoardServices 0x189629728 -[FBSSerialQueue _performNext] + 175
17 FrontBoardServices 0x189629ad0 -[FBSSerialQueue _performNextFromRunLoopSource] + 55
18 CoreFoundation 0x187a30278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 23
19 CoreFoundation 0x187a2fbc0 __CFRunLoopDoSources0 + 523
20 CoreFoundation 0x187a2d7c0 __CFRunLoopRun + 803
21 CoreFoundation 0x18795c048 CFRunLoopRunSpecific + 443
22 UIKit 0x18d9412b0 -[UIApplication _run] + 607
23 UIKit 0x18d93c034 UIApplicationMain + 207
24 APPNAME 0x1001b809c 0x1000d4000 + 934044
25 libdyld.dylib 0x1869405b8 start + 3
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000186a52014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000186b1a450 pthread_kill + 112
2 libsystem_c.dylib 0x00000001869c63e0 abort + 140
3 libc++abi.dylib 0x00000001864912d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x00000001864aecc0 default_unexpected_handler+ 126144 () + 0
5 libobjc.A.dylib 0x00000001864bc844 _objc_terminate+ 34884 () + 124
6 libc++abi.dylib 0x00000001864ab66c std::__terminate(void (*)+ 112236 ()) + 16
7 libc++abi.dylib 0x00000001864ab234 __cxa_rethrow + 144
8 libobjc.A.dylib 0x00000001864bc71c objc_exception_rethrow + 44
9 CoreFoundation 0x000000018795c0bc CFRunLoopRunSpecific + 560
10 UIKit 0x000000018d9412b0 -[UIApplication _run] + 608
11 UIKit 0x000000018d93c034 UIApplicationMain + 208
12 APPNAME 0x00000001001b809c 0x1000d4000 + 934044
13 libdyld.dylib 0x00000001869405b8 start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000186a52a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000186b1635c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x0000000186b15da4 start_wqthread + 4
Thread 2:
0 libsystem_kernel.dylib 0x0000000186a52a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000186b1635c _pthread_wqthread + 1452
2 libsystem_pthread.dylib 0x0000000186b15da4 start_wqthread + 4
Thread 3:
0 libsystem_pthread.dylib 0x0000000186b15da0 start_wqthread + 0
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x0000000186a3416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000186a33fdc mach_msg + 72
2 CoreFoundation 0x0000000187a2fcec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x0000000187a2d908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018795c048 CFRunLoopRunSpecific + 444
5 CFNetwork 0x000000018814dfd0 +[NSURLConnection+ 847824 (Loader) _resourceLoadLoop:] + 336
6 Foundation 0x000000018856b47c __NSThread__start__ + 1024
7 libsystem_pthread.dylib 0x0000000186b18850 _pthread_body + 240
8 libsystem_pthread.dylib 0x0000000186b18760 _pthread_body + 0
9 libsystem_pthread.dylib 0x0000000186b15dac thread_start + 4
Thread 5:
0 libsystem_pthread.dylib 0x0000000186b15da0 start_wqthread + 0
Thread 6 name: Dispatch queue: com.parse.PFCommandCache.processing
Thread 6:
0 libsystem_kernel.dylib 0x0000000186a51e1c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x0000000186b179c0 _pthread_cond_wait + 640
2 Foundation 0x00000001884be590 -[NSCondition wait] + 240
3 Bolts 0x0000000100498218 0x100484000 + 82456
4 Parse 0x0000000100698b1c 0x100690000 + 35612
5 Parse 0x0000000100698ad4 0x100690000 + 35540
6 Parse 0x00000001006cedc8 0x100690000 + 257480
7 Parse 0x00000001006ce930 0x100690000 + 256304
8 Parse 0x00000001006ce4d0 0x100690000 + 255184
9 libdispatch.dylib 0x000000018690d1c0 _dispatch_client_callout + 16
10 libdispatch.dylib 0x000000018691a008 _dispatch_continuation_pop + 576
11 libdispatch.dylib 0x0000000186926648 _dispatch_source_latch_and_call + 204
12 libdispatch.dylib 0x000000018690f164 _dispatch_source_invoke + 820
13 libdispatch.dylib 0x000000018691b278 _dispatch_queue_serial_drain + 468
14 libdispatch.dylib 0x00000001869109a8 _dispatch_queue_invoke + 652
15 libdispatch.dylib 0x000000018691d38c _dispatch_root_queue_drain + 572
16 libdispatch.dylib 0x000000018691d0ec _dispatch_worker_thread3 + 124
17 libsystem_pthread.dylib 0x0000000186b162b8 _pthread_wqthread + 1288
18 libsystem_pthread.dylib 0x0000000186b15da4 start_wqthread + 4
Thread 7 name: com.apple.uikit.eventfetch-thread
Thread 7:
0 libsystem_kernel.dylib 0x0000000186a3416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000186a33fdc mach_msg + 72
2 CoreFoundation 0x0000000187a2fcec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x0000000187a2d908 __CFRunLoopRun + 1132
4 CoreFoundation 0x000000018795c048 CFRunLoopRunSpecific + 444
5 Foundation 0x000000018846da8c -[NSRunLoop+ 51852 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018848e57c -[NSRunLoop+ 185724 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018e2b6a2c -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018856b47c __NSThread__start__ + 1024
9 libsystem_pthread.dylib 0x0000000186b18850 _pthread_body + 240
10 libsystem_pthread.dylib 0x0000000186b18760 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000186b15dac thread_start + 4
Thread 8:
0 libsystem_pthread.dylib 0x0000000186b15da0 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x0000000186b15da0 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700f6437
x4: 0x00000001864afbc3 x5: 0x000000016fd2b580 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x0000000008000000 x9: 0x0000000004000000 x10: 0x000000000000000b x11: 0x0000000000000010
x12: 0x00000001869dd772 x13: 0x0000000000000000 x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001ac2cfc40 x21: 0x000000016fd2b580 x22: 0x00000001ac2d6bb8 x23: 0x0000000000000001
x24: 0x000000017001aad0 x25: 0x0000000000000000 x26: 0x0000000000000001 x27: 0x0000000000000000
x28: 0x000000016fd2bbd8 fp: 0x000000016fd2b4e0 lr: 0x0000000186b1a450
sp: 0x000000016fd2b4c0 pc: 0x0000000186a52014 cpsr: 0x00000000
My submission to the App Store was rejected due to a crash. However, I am unable to reproduce the crash on multiple hardware devices and simulators. I've symbolicated the crash log, and it seems the issue is occurring in an area of code where the app is fetching some data from a server and closing a UIAlertController that notifies the user to "Please wait..." Below is the crash log.
Date/Time: 2017-05-06 00:27:06.7009 +0700
Launch Time: 2017-05-06 00:26:43.8793 +0700
OS Version: iPhone OS 10.3.1 (14E304)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 1
Application Specific Information:
abort() called
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x18c47efd8 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x18aee0538 objc_exception_throw + 56
2 CoreFoundation 0x18c47eeac +[NSException raise:format:arguments:] + 104
3 Foundation 0x18cf16710 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKit 0x192823454 -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:] + 196
5 UIKit 0x192823514 -[UIApplication _systemAnimationFenceCreatingIfNecessary:] + 24
6 UIKit 0x19287c7a0 +[UIWindow _synchronizedDrawingFence] + 116
7 UIKit 0x192a3a150 +[_UIKeyboardChangedInformation informationForKeyboardUp:withIAV:] + 104
8 UIKit 0x192d338d4 -[_UIRemoteKeyboards prepareToMoveKeyboard:withIAV:showing:forScreen:] + 464
9 UIKit 0x19266bc04 -[UIPeripheralHost(UIKitInternal) setInputViews:animationStyle:] + 820
10 UIKit 0x192688cf4 -[UIPeripheralHost(UIKitInternal) _restoreInputViewsWithId:animated:] + 584
11 UIKit 0x19291bd64 -[UIViewController _restoreInputViewsForPresentation] + 280
12 UIKit 0x1928f6e3c -[UIPresentationController runTransitionForCurrentState] + 1560
13 UIKit 0x1928f50f8 -[UIPresentationController _dismissWithAnimationController:interactionController:target:didEndSelector:] + 764
14 UIKit 0x19291b8c0 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:] + 464
15 UIKit 0x1926d0cd4 -[UIViewController _dismissViewControllerWithTransition:from:completion:] + 600
16 UIKit 0x192678b6c -[UIViewController dismissViewControllerWithTransition:completion:] + 1144
17 UIKit 0x19267894c -[UIViewController dismissViewControllerWithTransition:completion:] + 600
18 UIKit 0x19291ab68 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 524
19 UIKit 0x1926786c0 -[UIViewController dismissViewControllerAnimated:completion:] + 152
20 DinokEtp 0x1001014c4 specialized ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:360)
21 DinokEtp 0x1000fd84c ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:0)
22 DinokEtp 0x100101b38 partial apply for ViewController.(downloadCaseTypesFile(workFlowVersionMobileShouleBeOn : Double, validateUserResponse : ValidateUserResponse) -> ()).(closure #1) (ViewController.swift:0)
23 CFNetwork 0x18ca89358 __85-[__NSURLSessionLocal downloadTaskForRequest:downloadFilePath:resumeData:completion:]_block_invoke + 32
24 CFNetwork 0x18caeb18c __50-[__NSCFLocalDownloadTask _private_fileCompletion]_block_invoke.321 + 84
25 Foundation 0x18cf4d804 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
26 Foundation 0x18ce92760 -[NSBlockOperation main] + 96
27 Foundation 0x18ce82b18 -[__NSOperationInternal _start:] + 612
28 Foundation 0x18cf4fba0 __NSOQSchedule_f + 228
29 libdispatch.dylib 0x18b3369a0 _dispatch_client_callout + 16
30 libdispatch.dylib 0x18b344ad4 _dispatch_queue_serial_drain + 928
31 libdispatch.dylib 0x18b33a2cc _dispatch_queue_invoke + 884
32 libdispatch.dylib 0x18b346a50 _dispatch_root_queue_drain + 540
33 libdispatch.dylib 0x18b3467d0 _dispatch_worker_thread3 + 124
34 libsystem_pthread.dylib 0x18b53f1d0 _pthread_wqthread + 1096
35 libsystem_pthread.dylib 0x18b53ed7c start_wqthread + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x000000018ddc4074 GSEventRunModal + 100
6 UIKit 0x000000019260c130 UIApplicationMain + 208
7 DinokEtp 0x00000001000654bc main (EMSCaseUpload.swift:14)
8 libdyld.dylib 0x000000018b36959c start + 4
Thread 1 name: Dispatch queue: NSOperationQueue 0x17003e2c0 :: NSOperation 0x17025e5d0 (QOS: DEFAULT)
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x000000018b479014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018b543334 pthread_kill + 112
2 libsystem_c.dylib 0x000000018b3ed9c4 abort + 140
3 libc++abi.dylib 0x000000018aeb91b0 __cxa_bad_cast + 0
4 libc++abi.dylib 0x000000018aed2c04 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x000000018aee0820 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018aecf5d4 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018aecf640 std::terminate() + 60
8 libdispatch.dylib 0x000000018b3369b4 _dispatch_client_callout + 36
9 libdispatch.dylib 0x000000018b344ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib 0x000000018b33a2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib 0x000000018b346a50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib 0x000000018b3467d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib 0x000000018b53f1d0 _pthread_wqthread + 1096
14 libsystem_pthread.dylib 0x000000018b53ed7c start_wqthread + 4
Thread 2:
0 libsystem_pthread.dylib 0x000000018b53ed78 start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018ce74d64 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018ce95b34 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x0000000192f965f8 -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018cf722c8 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018b54175c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018b54166c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018b53ed84 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x000000018b479a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018b53f274 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x000000018b53ed7c start_wqthread + 4
Thread 5:
0 libsystem_pthread.dylib 0x000000018b53ed78 start_wqthread + 0
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x000000018b45b224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018b45b09c mach_msg + 72
2 CoreFoundation 0x000000018c42ce88 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018c42aadc __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018c35ad94 CFRunLoopRunSpecific + 424
5 CFNetwork 0x000000018cb66ca4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x000000018cf722c8 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x000000018b54175c _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018b54166c _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018b53ed84 thread_start + 4
Thread 1 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x00000001700f8c37
x4: 0x000000018aed3b07 x5: 0x000000016de9a850 x6: 0x000000000000006e x7: 0xffffffffffffffec
x8: 0x000000000c000000 x9: 0x0000000004000000 x10: 0x000000000000000b x11: 0x000000000000000b
x12: 0x0000000000000010 x13: 0x000000018c6c9c0e x14: 0x0000030000000300 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000000 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000016de9b000 x21: 0x000000016de9a850 x22: 0x00000001700ff380 x23: 0x0000000000000004
x24: 0x00000001b1ebd400 x25: 0x0000000000000000 x26: 0x00000001b1ebd400 x27: 0x000000016de9b0e0
x28: 0x0000000000000000 fp: 0x000000016de9a7b0 lr: 0x000000018b543334
sp: 0x000000016de9a790 pc: 0x000000018b479014 cpsr: 0x00000000
I would recommend double checking that you are not interacting with that UIAlertController (or any other UIKit API) outside the main thread (aka, Thread 0 above). Many UIKit APIs are designed to be used only from the main thread.
Worth noting that the crash happened on Thread 1…
If you are in doubt, wrap the call with:
DispatchQueue.main.async {
// Call UIAlertController code here...
}
I am unable to diagnose this crash log, which occurs when using the AVPlayer class-- sometimes it happens right away, and sometimes it happens when trying to play the 2nd or 3rd video..
Incident Identifier: 4E82E665-228D-4A97-8B85-6F5B65E2B457
CrashReporter Key: 46be3f0cd4d380b2ce08823fedd6d6d22c38df2f
Hardware Model: iPad4,2
Process: App [2433]
Path: /private/var/mobile/Containers/Bundle/Application/66E1EFE7-1BD0-4CE3-8FEF-47D58C36ADF7/App.app/App
Identifier: SXX.app
Version: 1.3 (1.3)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-03-31 15:59:07.361 -0700
Launch Time: 2015-03-31 15:57:50.272 -0700
OS Version: iOS 8.2 (12D508)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 6
Last Exception Backtrace:
0 CoreFoundation 0x18530a530 __exceptionPreprocess + 132
1 libobjc.A.dylib 0x1964280e4 objc_exception_throw + 60
2 CoreFoundation 0x18530a470 +[NSException raise:format:] + 128
3 Foundation 0x1861865e0 NSKVODeallocate + 340
4 AVFoundation 0x183b27b38 __destroy_helper_block_1474 + 28
5 libsystem_blocks.dylib 0x196ad1910 _Block_release + 256
6 libdispatch.dylib 0x196a79954 _dispatch_client_callout + 16
7 libdispatch.dylib 0x196a7e20c _dispatch_main_queue_callback_4CF + 1608
8 CoreFoundation 0x1852c22ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
9 CoreFoundation 0x1852c0394 __CFRunLoopRun + 1492
10 CoreFoundation 0x1851ed1f4 CFRunLoopRunSpecific + 396
11 GraphicsServices 0x18e51f6fc GSEventRunModal + 168
12 UIKit 0x189b7e10c UIApplicationMain + 1488
13 App 0x10001d4ac main (main.m:8)
14 libdyld.dylib 0x196aa6a08 start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x0000000196bbf594 __semwait_signal_nocancel + 8
1 libsystem_c.dylib 0x0000000196aef1a0 nanosleep$NOCANCEL + 200
2 libsystem_c.dylib 0x0000000196b142b8 usleep$NOCANCEL + 64
3 libsystem_c.dylib 0x0000000196b36b1c abort + 116
4 App 0x0000000100042b50 uncaught_exception_handler + 32
5 CoreFoundation 0x000000018530a8ec __handleUncaughtException + 688
6 libobjc.A.dylib 0x00000001964283b0 _objc_terminate() + 112
7 libc++abi.dylib 0x0000000195c25bb0 std::__terminate(void (*)()) + 12
8 libc++abi.dylib 0x0000000195c25474 __cxa_throw + 132
9 libobjc.A.dylib 0x0000000196428200 objc_exception_throw + 344
10 CoreFoundation 0x000000018530a46c +[NSException raise:format:] + 124
11 Foundation 0x00000001861865dc NSKVODeallocate + 336
12 AVFoundation 0x0000000183b27b34 __destroy_helper_block_1474 + 24
13 libsystem_blocks.dylib 0x0000000196ad190c _Block_release + 252
14 libdispatch.dylib 0x0000000196a79950 _dispatch_client_callout + 12
15 libdispatch.dylib 0x0000000196a7e208 _dispatch_main_queue_callback_4CF + 1604
16 CoreFoundation 0x00000001852c22e8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
17 CoreFoundation 0x00000001852c0390 __CFRunLoopRun + 1488
18 CoreFoundation 0x00000001851ed1f0 CFRunLoopRunSpecific + 392
19 GraphicsServices 0x000000018e51f6f8 GSEventRunModal + 164
20 UIKit 0x0000000189b7e108 UIApplicationMain + 1484
21 App 0x000000010001d4a8 main (main.m:8)
22 libdyld.dylib 0x0000000196aa6a04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000196ba4c24 kevent64 + 8
1 libdispatch.dylib 0x0000000196a89e6c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000196a7b998 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x0000000196ba4e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196ba4c84 mach_msg + 68
2 CoreFoundation 0x00000001852c2214 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x00000001852c0168 __CFRunLoopRun + 936
4 CoreFoundation 0x00000001851ed1f0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x0000000184cee2a0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000186202304 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
8 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
9 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x0000000196bbf498 __select + 8
1 CoreFoundation 0x00000001852c7c0c __CFSocketManager + 656
2 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
3 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
4 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 5 name: com.apple.coremedia.player.remote
Thread 5:
0 libsystem_kernel.dylib 0x0000000196ba4e0c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000196ba4c84 mach_msg + 68
2 MediaToolbox 0x00000001876efe7c FigExpressNotificationThread + 100
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 6 Crashed:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 8 name: com.apple.coremedia.player.async
Thread 8:
0 libsystem_kernel.dylib 0x0000000196ba4e48 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000196a87f3c _dispatch_semaphore_wait_slow + 252
2 MediaToolbox 0x00000001876e95bc fpa_AsyncMovieControlThread + 1952
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 9 name: com.apple.coremedia.player.async
Thread 9:
0 libsystem_kernel.dylib 0x0000000196ba4e48 semaphore_wait_trap + 8
1 libdispatch.dylib 0x0000000196a87f3c _dispatch_semaphore_wait_slow + 252
2 MediaToolbox 0x00000001876e95bc fpa_AsyncMovieControlThread + 1952
3 CoreMedia 0x0000000185b22028 figThreadMain + 244
4 libsystem_pthread.dylib 0x0000000196c5bdc4 _pthread_body + 160
5 libsystem_pthread.dylib 0x0000000196c5bd20 _pthread_start + 156
6 libsystem_pthread.dylib 0x0000000196c58ef4 thread_start + 0
Thread 10:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x0000000196bbfc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000196c592d8 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000196c58eec start_wqthread + 0
Thread 6 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000004 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000002d1f x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x6800a3c4679d3eb0 x10: 0x0000000000000015 x11: 0x0000000000000000
x12: 0x000000012d0ea200 x13: 0x000000019ab850d8 x14: 0x0000000000000000 x15: 0x0000000000000001
x16: 0x0000000000000170 x17: 0x00000001964426b8 x18: 0x0000000000000000 x19: 0x000000010469c000
x20: 0x0000000000000009 x21: 0x00000000800002ff x22: 0x0000000000009f0f x23: 0x0000000000010000
x24: 0x000000019abab000 x25: 0x0000000000000000 x26: 0x0000000000000000 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000010469bf70 lr: 0x0000000196c592dc
sp: 0x000000010469bf10 pc: 0x0000000196bbfc78 cpsr: 0x40000000
Crash logs like this can be unhelpful. The most likely culprit is a nil pointer somewhere in your code. You may have no option but to step through your code with a debugger making sure that all your variables have the values you expect them to have.
I just uploaded an app to the appstore, it was developed for ios7.
They rejected the app because of a crash I can't reproduce...
They sent me this crash report:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000008
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x000000018e0501c8 objc_msgSend + 8
1 UIKit 0x000000018493e940 __97-[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:]_block_invoke718 + 52
2 UIKit 0x00000001846b6504 -[UIViewController _executeAfterAppearanceBlock] + 60
3 UIKit 0x00000001846b646c _applyBlockToCFArrayCopiedToStack + 352
4 UIKit 0x00000001846224c8 _afterCACommitHandler + 540
5 CoreFoundation 0x00000001816270a4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
6 CoreFoundation 0x000000018162432c __CFRunLoopDoObservers + 368
7 CoreFoundation 0x00000001816246b8 __CFRunLoopRun + 760
8 CoreFoundation 0x00000001815656cc CFRunLoopRunSpecific + 448
9 GraphicsServices 0x0000000187201c08 GSEventRunModal + 164
10 UIKit 0x0000000184696fd8 UIApplicationMain + 1152
11 brandnooz 0x00000001000aaa0c 0x100038000 + 469516
12 libdyld.dylib 0x000000018e633a9c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x000000018e715aa8 kevent64 + 8
1 libdispatch.dylib 0x000000018e619998 _dispatch_mgr_thread + 48
Thread 2 name: AFNetworking
Thread 2:
0 libsystem_kernel.dylib 0x000000018e715ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000181626570 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000181624700 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001815656cc CFRunLoopRunSpecific + 448
4 Foundation 0x00000001821012c0 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 292
5 Foundation 0x000000018215ed74 -[NSRunLoop(NSRunLoop) run] + 92
6 brandnooz 0x0000000100045280 0x100038000 + 53888
7 Foundation 0x00000001821e8408 __NSThread__main__ + 996
8 libsystem_pthread.dylib 0x000000018e7afe18 _pthread_body + 164
9 libsystem_pthread.dylib 0x000000018e7afd70 _pthread_start + 136
10 libsystem_pthread.dylib 0x000000018e7ad550 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x000000018e715ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000181626570 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000181624700 __CFRunLoopRun + 832
3 CoreFoundation 0x00000001815656cc CFRunLoopRunSpecific + 448
4 Foundation 0x000000018215a424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x00000001821e8408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x000000018e7afe18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000018e7afd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x000000018e7ad550 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x000000018e72e76c __select + 8
1 libsystem_pthread.dylib 0x000000018e7afe18 _pthread_body + 164
2 libsystem_pthread.dylib 0x000000018e7afd70 _pthread_start + 136
3 libsystem_pthread.dylib 0x000000018e7ad550 thread_start + 0
Thread 5 name: Dispatch queue: com.apple.root.high-priority
Thread 5:
0 libsystem_kernel.dylib 0x000000018e72e394 __psynch_cvwait + 8
1 Foundation 0x00000001821cf8e0 -[__NSOperationInternal _waitUntilFinished:] + 100
2 brandnooz 0x0000000100083928 0x100038000 + 309544
3 brandnooz 0x00000001000cf3c0 0x100038000 + 619456
4 libdispatch.dylib 0x000000018e618010 _dispatch_call_block_and_release + 20
5 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
6 libdispatch.dylib 0x000000018e61f2b4 _dispatch_root_queue_drain + 552
7 libdispatch.dylib 0x000000018e61f4f8 _dispatch_worker_thread2 + 72
8 libsystem_pthread.dylib 0x000000018e7ad6b8 _pthread_wqthread + 352
9 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 6 name: Dispatch queue: com.apple.root.default-priority
Thread 6:
0 libsystem_kernel.dylib 0x000000018e715cdc semaphore_wait_trap + 8
1 brandnooz 0x00000001000d8044 0x100038000 + 655428
2 libdispatch.dylib 0x000000018e618010 _dispatch_call_block_and_release + 20
3 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
4 libdispatch.dylib 0x000000018e61f2b4 _dispatch_root_queue_drain + 552
5 libdispatch.dylib 0x000000018e61f4f8 _dispatch_worker_thread2 + 72
6 libsystem_pthread.dylib 0x000000018e7ad6b8 _pthread_wqthread + 352
7 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 7 name: Dispatch queue: com.apple.root.high-priority
Thread 7:
0 libsystem_kernel.dylib 0x000000018e72e394 __psynch_cvwait + 8
1 Foundation 0x00000001821cf8e0 -[__NSOperationInternal _waitUntilFinished:] + 100
2 brandnooz 0x0000000100083928 0x100038000 + 309544
3 brandnooz 0x00000001000cf3c0 0x100038000 + 619456
4 libdispatch.dylib 0x000000018e618010 _dispatch_call_block_and_release + 20
5 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
6 libdispatch.dylib 0x000000018e61f2b4 _dispatch_root_queue_drain + 552
7 libdispatch.dylib 0x000000018e61f4f8 _dispatch_worker_thread2 + 72
8 libsystem_pthread.dylib 0x000000018e7ad6b8 _pthread_wqthread + 352
9 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 8 name: Dispatch queue: com.apple.root.default-priority
Thread 8:
0 libsystem_kernel.dylib 0x000000018e715cdc semaphore_wait_trap + 8
1 brandnooz 0x00000001000d8044 0x100038000 + 655428
2 libdispatch.dylib 0x000000018e618010 _dispatch_call_block_and_release + 20
3 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
4 libdispatch.dylib 0x000000018e61f2b4 _dispatch_root_queue_drain + 552
5 libdispatch.dylib 0x000000018e61f4f8 _dispatch_worker_thread2 + 72
6 libsystem_pthread.dylib 0x000000018e7ad6b8 _pthread_wqthread + 352
7 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 9 name: Dispatch queue: com.apple.network.helper_queue
Thread 9:
0 libsystem_kernel.dylib 0x000000018e715ca0 mach_msg_trap + 8
1 libdispatch.dylib 0x000000018e621648 _dispatch_mach_msg_send + 364
2 libdispatch.dylib 0x000000018e61a6d4 dispatch_mach_send + 216
3 libxpc.dylib 0x000000018e7c9814 xpc_connection_send_message_with_reply + 124
4 libsystem_network.dylib 0x000000018e77cfe0 __net_helper_send_block_invoke + 48
5 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
6 libdispatch.dylib 0x000000018e61dc80 _dispatch_barrier_sync_f_invoke + 44
7 libsystem_network.dylib 0x000000018e77ab84 net_helper_send + 212
8 libsystem_network.dylib 0x000000018e77bd4c net_helper_connection_start + 264
9 libsystem_network.dylib 0x000000018e778b78 tcp_connection_register_reachability + 164
10 libsystem_network.dylib 0x000000018e77775c __tcp_connection_start_block_invoke + 312
11 libdispatch.dylib 0x000000018e618010 _dispatch_call_block_and_release + 20
12 libdispatch.dylib 0x000000018e617fd0 _dispatch_client_callout + 12
13 libdispatch.dylib 0x000000018e61e4a4 _dispatch_queue_drain + 636
14 libdispatch.dylib 0x000000018e61a4bc _dispatch_queue_invoke + 64
15 libdispatch.dylib 0x000000018e61f0f0 _dispatch_root_queue_drain + 100
16 libdispatch.dylib 0x000000018e61f4f8 _dispatch_worker_thread2 + 72
17 libsystem_pthread.dylib 0x000000018e7ad6b8 _pthread_wqthread + 352
18 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x000000018e72ee74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x000000018e7ad548 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000008 x1: 0x0000000184d29a89 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000000
x8: 0x000000018f24b4b8 x9: 0x0000000100183460 x10: 0x0000000150882c00 x11: 0x000000520000007f
x12: 0x0000000150883390 x13: 0x000001a500183465 x14: 0x0000000000000006 x15: 0x0000000000000000
x16: 0x000000018e0501c0 x17: 0x00000001846484ec x18: 0x0000000000000000 x19: 0x0000000170053500
x20: 0x000000018f287000 x21: 0x000000016fdc6b28 x22: 0x000000016fdc6b20 x23: 0x000000017012d3e0
x24: 0x000000017012d3f0 x25: 0x000000019157a098 x26: 0x000000016fdc6b20 x27: 0x000000016fdc6d00
x28: 0x0000000000000003 fp: 0x000000016fdc6af0 lr: 0x000000018493e944
sp: 0x000000016fdc6ae0 pc: 0x000000018e0501c8 cpsr: 0x20000000
Please help me to solve this issue. Thanks In Advance
You crashed inside objc_msgSend with an EXC_BAD_ACCESS exception. In my experience this probably means that an object has gone out of scope and you're trying to access it or, the object is supposed to do something on another thread and in the mean time (while it's doing that), its gone out of scope on the original thread.
If you're using one of Apple's multithreaded objects (pretty much anything with delegate callbacks), make sure it is retained (strong-ly) by the object in which it is contained. For example if you're using an object with asynchronous callbacks, you can't just instantiate it inside a method and then let it disappear, you have to make it a strong #property so it remains in scope even when the method returns and you are awaiting the callbacks.
EDIT (Based on CFSocket thread):
By the look of it, you're using a socket API which is commonly used with the NSStream class. Remember to create strong #properties for those NSStream objects (or other connection objects you are using), and, if you're wrapping them inside another object, make sure that it is a strong #property of whichever object is using it. You can't get an asynchronous callback from an object that's not there anymore on the thread that created it.
(Note this is not just a case of messaging an object that has been set to nil. Messages to nil do not crash, they just return nil. The issue is a message being sent to something in memory that you don't own anymore).
EDIT 2 (based on main thread):
Are you sure you own every object that is being used in the View Controller transition? Creating a transient object in a block or asynchronous action could also be causing the EXC_BAD_ACCESS.
From what it looks like, may be two threads are accessing the same variables where one of the threads is corrupting the variables used in the other. It is a synchronization issue. Bad access mostly means you are accessing a variable that is nil
You can integrate a crash reporting tool like www.crashlytics.com in your application. It is very easy to implement and the documentation is available once you download the sdk.
After implementation, test your app throughly and it will tell you the exact lines where your code crashes and you can resolve it.