My app use sqlite as back end database. I am using a wrapper class to use sqlite functions. When using app for long times it crashes and shows crash occurred in sqlite.c . I am using xcode 9.2 and objective c. The app is developed only for ipads.
Please Help. I am also providing crash logs for crashlytics. following are the crash log from crashlytics.
# Issue #: 245
# Issue ID: xxxxxxxxxxxxxxxxxx
# Session ID: xxxxxxxxxxxxxxxxx
# Date: 2017-12-14T14:29:00Z
# OS Version: 10.3.3 (14G60)
# Device: iPad Air 2
# RAM Free: 23.8%
# Disk Free: 70.4%
#7. Crashed: com.apple.root.default-qos
0 BCAS 0x1011a1938 whereClauseClear (sqlite3.c:1031592)
1 BCAS 0x101199908 whereInfoFree (sqlite3.c:998776)
2 BCAS 0x101199908 whereInfoFree (sqlite3.c:998776)
3 BCAS 0x101192520 sqlite3WhereEnd (sqlite3.c:969104)
4 BCAS 0x10116f5c4 sqlite3Select (sqlite3.c:825908)
5 BCAS 0x101167db4 yy_reduce (sqlite3.c:795172)
6 BCAS 0x1011670fc sqlite3Parser (sqlite3.c:791916)
7 BCAS 0x10111eef8 sqlite3RunParser (sqlite3.c:496488)
8 BCAS 0x1011667b0 sqlite3Prepare (sqlite3.c:789536)
9 BCAS 0x10111dee0 sqlite3LockAndPrepare (sqlite3.c:492368)
10 BCAS 0x10111d3d0 sqlite3_prepare_v2 (sqlite3.c:489536)
11 BCAS 0x1000f98f4 -[SQLWrapper ExecuteSelectQuery:] (SQLWrapper.m:218)
12 BCAS 0x1000fb640 -[SQLWrapper getArrayByExecutingQuery:] (SQLWrapper.m:500)
13 BCAS 0x1002d6e94 -[CascadeQueries getViolationCompletionStatus:] (CascadeQueries.m:2287)
14 BCAS 0x10020c760 __48-[CascadingViewController checkCompletionStatus]_block_invoke (CascadingViewController.m:3360)
15 libdispatch.dylib 0x18d0929e0 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x18d0929a0 _dispatch_client_callout + 16
17 libdispatch.dylib 0x18d0a10d4 _dispatch_queue_override_invoke + 644
18 libdispatch.dylib 0x18d0a2a50 _dispatch_root_queue_drain + 540
19 libdispatch.dylib 0x18d0a27d0 _dispatch_worker_thread3 + 124
20 libsystem_pthread.dylib 0x18d29b100 _pthread_wqthread + 1096
21 libsystem_pthread.dylib 0x18d29acac start_wqthread + 4
#0. com.apple.main-thread
0 libsystem_kernel.dylib 0x18d1d4e64 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x18d2a0b8c _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x18d2a0d94 _pthread_mutex_lock_slow + 300
3 libobjc.A.dylib 0x18cc486f8 recursive_mutex_tt<false>::lock() + 16
4 libobjc.A.dylib 0x18cc4bf28 objc_sync_enter + 28
5 BCAS 0x10020bf64 -[CascadingViewController insertInspectionStatusToSqlTable:] (CascadingViewController.m:3317)
6 BCAS 0x100208d38 -[CascadingViewController changeColorCodeForView:WithCompleteFlag:WithStatus:] (CascadingViewController.m:2734)
7 BCAS 0x1002bbd24 -[CascadingView completePbs:WithStatus:] (CascadingView.m:2526)
8 BCAS 0x1002b68f0 -[CascadingView onCancelButtonClickInstance] (CascadingView.m:1505)
9 BCAS 0x100186b94 -[InstanceInfo saveButtonClick:] (InstanceInfo.m:658)
10 UIKit 0x1948d78d0 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 64
11 UIKit 0x1948db104 _UIGestureRecognizerSendTargetActions + 124
12 UIKit 0x1944950b4 _UIGestureRecognizerSendActions + 252
13 UIKit 0x194336fc4 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 720
14 UIKit 0x1948cb3a8 _UIGestureEnvironmentUpdate + 988
15 UIKit 0x1948caf78 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 404
16 UIKit 0x1948ca224 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 268
17 UIKit 0x194335350 -[UIWindow sendEvent:] + 3164
18 UIKit 0x194305f80 -[UIApplication sendEvent:] + 340
19 UIKit 0x194affa20 __dispatchPreprocessedEventFromEventQueue + 2400
20 UIKit 0x194afa17c __handleEventQueue + 4268
21 UIKit 0x194afa5a8 __handleHIDEventFetcherDrain + 148
22 CoreFoundation 0x18e18942c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
23 CoreFoundation 0x18e188d9c __CFRunLoopDoSources0 + 540
24 CoreFoundation 0x18e1869a8 __CFRunLoopRun + 744
25 CoreFoundation 0x18e0b6da4 CFRunLoopRunSpecific + 424
26 GraphicsServices 0x18fb21074 GSEventRunModal + 100
27 UIKit 0x19436ac9c UIApplicationMain + 208
28 BCAS 0x10021f040 main (main.m:14)
29 libdyld.dylib 0x18d0c559c start + 4
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x18d1b7224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18d1b709c mach_msg + 72
2 CoreFoundation 0x18e188e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x18e186ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x18e0b6da4 CFRunLoopRunSpecific + 424
5 Foundation 0x18ebd1db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x18ebf2b84 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x194cf4830 -[UIEventFetcher threadMain] + 136
8 Foundation 0x18eccf318 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x18d29d68c _pthread_body + 240
10 libsystem_pthread.dylib 0x18d29d59c _pthread_body + 282
11 libsystem_pthread.dylib 0x18d29acb4 thread_start + 4
#2. com.twitter.crashlytics.ios.MachExceptionServer
0 BCAS 0x1010e5ec0 CLSProcessRecordAllThreads + 262960
1 BCAS 0x1010e5ec0 CLSProcessRecordAllThreads + 262960
2 BCAS 0x1010e5d7c CLSProcessRecordAllThreads + 262636
3 BCAS 0x1010d653c CLSHandler + 199084
4 BCAS 0x1010d14e0 CLSMachExceptionServer + 178512
5 libsystem_pthread.dylib 0x18d29d68c _pthread_body + 240
6 libsystem_pthread.dylib 0x18d29d59c _pthread_body + 282
7 libsystem_pthread.dylib 0x18d29acb4 thread_start + 4
#3. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x18d1b7224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18d1b709c mach_msg + 72
2 CoreFoundation 0x18e188e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x18e186ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x18e0b6da4 CFRunLoopRunSpecific + 424
5 CFNetwork 0x18e8c3df4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x18eccf318 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x18d29d68c _pthread_body + 240
8 libsystem_pthread.dylib 0x18d29d59c _pthread_body + 282
9 libsystem_pthread.dylib 0x18d29acb4 thread_start + 4
#4. com.apple.root.default-qos
0 libsystem_kernel.dylib 0x18d1d4e64 __psynch_mutexwait + 8
1 libsystem_pthread.dylib 0x18d2a0b8c _pthread_mutex_lock_wait + 96
2 libsystem_pthread.dylib 0x18d2a0d94 _pthread_mutex_lock_slow + 300
3 libobjc.A.dylib 0x18cc486f8 recursive_mutex_tt<false>::lock() + 16
4 libobjc.A.dylib 0x18cc4bf28 objc_sync_enter + 28
5 BCAS 0x1002d69cc -[CascadeQueries getInspectionCompleteionStatus:AssetId:CategoryId:] (CascadeQueries.m:2222)
6 BCAS 0x10020c710 __48-[CascadingViewController checkCompletionStatus]_block_invoke (CascadingViewController.m:3359)
7 libdispatch.dylib 0x18d0929e0 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x18d0929a0 _dispatch_client_callout + 16
9 libdispatch.dylib 0x18d0a10d4 _dispatch_queue_override_invoke + 644
10 libdispatch.dylib 0x18d0a2a50 _dispatch_root_queue_drain + 540
11 libdispatch.dylib 0x18d0a27d0 _dispatch_worker_thread3 + 124
12 libsystem_pthread.dylib 0x18d29b100 _pthread_wqthread + 1096
13 libsystem_pthread.dylib 0x18d29acac start_wqthread + 4
#5. Thread
0 libsystem_kernel.dylib 0x18d1d5a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18d29afd0 _pthread_wqthread + 792
2 libsystem_pthread.dylib 0x18d29acac start_wqthread + 4
#6. Thread
0 libsystem_kernel.dylib 0x18d1d5a88 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18d29b1a4 _pthread_wqthread + 1260
2 libsystem_pthread.dylib 0x18d29acac start_wqthread + 4
#7. Crashed: com.apple.root.default-qos
0 BCAS 0x1011a1938 whereClauseClear (sqlite3.c:1031592)
1 BCAS 0x101199908 whereInfoFree (sqlite3.c:998776)
2 BCAS 0x101199908 whereInfoFree (sqlite3.c:998776)
3 BCAS 0x101192520 sqlite3WhereEnd (sqlite3.c:969104)
4 BCAS 0x10116f5c4 sqlite3Select (sqlite3.c:825908)
5 BCAS 0x101167db4 yy_reduce (sqlite3.c:795172)
6 BCAS 0x1011670fc sqlite3Parser (sqlite3.c:791916)
7 BCAS 0x10111eef8 sqlite3RunParser (sqlite3.c:496488)
8 BCAS 0x1011667b0 sqlite3Prepare (sqlite3.c:789536)
9 BCAS 0x10111dee0 sqlite3LockAndPrepare (sqlite3.c:492368)
10 BCAS 0x10111d3d0 sqlite3_prepare_v2 (sqlite3.c:489536)
11 BCAS 0x1000f98f4 -[SQLWrapper ExecuteSelectQuery:] (SQLWrapper.m:218)
12 BCAS 0x1000fb640 -[SQLWrapper getArrayByExecutingQuery:] (SQLWrapper.m:500)
13 BCAS 0x1002d6e94 -[CascadeQueries getViolationCompletionStatus:] (CascadeQueries.m:2287)
14 BCAS 0x10020c760 __48-[CascadingViewController checkCompletionStatus]_block_invoke (CascadingViewController.m:3360)
15 libdispatch.dylib 0x18d0929e0 _dispatch_call_block_and_release + 24
16 libdispatch.dylib 0x18d0929a0 _dispatch_client_callout + 16
17 libdispatch.dylib 0x18d0a10d4 _dispatch_queue_override_invoke + 644
18 libdispatch.dylib 0x18d0a2a50 _dispatch_root_queue_drain + 540
19 libdispatch.dylib 0x18d0a27d0 _dispatch_worker_thread3 + 124
20 libsystem_pthread.dylib 0x18d29b100 _pthread_wqthread + 1096
21 libsystem_pthread.dylib 0x18d29acac start_wqthread + 4
SqlWrapper code for executing query :
-(sqlite3_stmt *)ExecuteSelectQuery:(NSString *)sqlSelectStatement
{
if( nil == sqlSelectStatement || 0 == sqlSelectStatement.length )
{
NSLog(#"SQL ERROR! empty statement");
return nil;
}
#synchronized(_sharedSQLWrapper)
{
if( !mIsDatabaseOpen )
{
short ret = [self OpenDatabase];
if( SQLITE_OK != ret )
return nil;
}
sqlite3_stmt *selectstmt;
short ret = (short) sqlite3_prepare_v2(mDatabase, [sqlSelectStatement UTF8String], -1, &selectstmt, NULL);
if( SQLITE_OK != ret)
NSLog(#"SQL ERROR! %s", sqlite3_errmsg(mDatabase));
if( SQLITE_OK != ret ) return nil;
return selectstmt;
}
}
Please Help...
Related
Our ios app suffers some crashes recently with below title ,
_objc_fatalv(unsigned long long, unsigned long long, char const*, char*)
abort_with_payload_wrapper_internal
Crashed: com.apple.main-thread
SIGABRT ABORT 0x00000001e6013a00
we using capacitor,cordova,ionic for this app
one thing i noticed on resuming the app also this crash event happens, actually firebase log is not adequate to figure out this issue because it has nearly 200 logs with different screens like
firebase_screen: splash screen
firebase_screen_class: CAPBridgeViewController
this error is mainly in our latest version and ios16 platform
# Crashlytics - Stack trace
# Application: com.shopperApp
# Platform: apple
# Version: 0.0.8 (0.0.8)
# Issue: 09f591d6fb0a00eb74e378b77e5bf7b3
# Date: Sun Feb 12 2023 00:44:20 GMT+0530 (India Standard Time)
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0xea00 __abort_with_payload + 8
1 libsystem_kernel.dylib 0x2fb4c abort_with_payload_wrapper_internal + 100
2 libsystem_kernel.dylib 0x2fae8 abort_with_payload_wrapper_internal + 26
3 libobjc.A.dylib 0x2ac64 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 112
4 libobjc.A.dylib 0x2abf4 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 26
5 libobjc.A.dylib 0x61d0 weak_register_no_lock + 332
6 libobjc.A.dylib 0xa6b0 objc_storeWeak + 344
7 UIKitCore 0x113440 _UIResponderForwarderWantsForwardingFromResponder + 728
8 UIKitCore 0x32fdc __forwardTouchMethod_block_invoke + 40
9 CoreFoundation 0xa2c0 __NSSET_IS_CALLING_OUT_TO_A_BLOCK__ + 16
10 CoreFoundation 0x856e4 -[__NSSetM enumerateObjectsWithOptions:usingBlock:] + 196
11 UIKitCore 0x1eb140 forwardTouchMethod + 216
12 UIKitCore 0xf21f8 -[UIWindow _sendTouchesForEvent:] + 496
13 UIKitCore 0xf16f0 -[UIWindow sendEvent:] + 3224
14 UIKitCore 0xf09ec -[UIApplication sendEvent:] + 740
15 UIKitCore 0xeec58 __dispatchPreprocessedEventFromEventQueue + 2052
16 UIKitCore 0x13496c __processEventQueue + 5612
17 UIKitCore 0x418110 __eventFetcherSourceCallback + 220
18 CoreFoundation 0xcc500 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
19 CoreFoundation 0xd7e70 __CFRunLoopDoSource0 + 172
20 CoreFoundation 0x62224 __CFRunLoopDoSources0 + 232
21 CoreFoundation 0x77230 __CFRunLoopRun + 780
22 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
23 GraphicsServices 0x1984 GSEventRunModal + 160
24 UIKitCore 0x376e7c -[UIApplication _run] + 868
25 UIKitCore 0x376af4 UIApplicationMain + 312
26 shopperApp 0x62e4 main + 7 (AppDelegate.swift:7)
27 ??? 0x1ca24ade0 (Missing)
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 Foundation 0x3e3fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8 Foundation 0x3e2f8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9 UIKitCore 0x49b6d0 -[UIEventFetcher threadMain] + 424
10 Foundation 0x55f44 __NSThread__start__ + 704
11 libsystem_pthread.dylib 0x3060 _pthread_start + 116
12 libsystem_pthread.dylib 0x1688 thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 FirebaseCrashlytics 0x188b8 FIRCLSMachExceptionServer + 194 (FIRCLSMachException.c:194)
5 libsystem_pthread.dylib 0x3060 _pthread_start + 116
6 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1194 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x12a08 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x12c44 mach_msg_overwrite + 384
3 libsystem_kernel.dylib 0x1688 mach_msg + 20
4 CoreFoundation 0x76244 __CFRunLoopServiceMachPort + 156
5 CoreFoundation 0x773f4 __CFRunLoopRun + 1232
6 CoreFoundation 0x7bdfc CFRunLoopRunSpecific + 584
7 CFNetwork 0x22d6cc _CFURLStorageSessionDisableCache + 51024
8 Foundation 0x55f44 __NSThread__start__ + 704
9 libsystem_pthread.dylib 0x3060 _pthread_start + 116
10 libsystem_pthread.dylib 0x1688 thread_start + 8
JavaScriptCore libpas scavenger
0 libsystem_kernel.dylib 0x19e0 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x2584 _pthread_cond_wait$VARIANT$armv81 + 1220
2 JavaScriptCore 0xec4b4 scavenger_thread_main + 1012
3 libsystem_pthread.dylib 0x3060 _pthread_start + 116
4 libsystem_pthread.dylib 0x1688 thread_start + 8
com.apple.root.default-qos
0 libsystem_kernel.dylib 0x1110 semaphore_wait_trap + 8
1 libdispatch.dylib 0x33e88 _dispatch_sema4_wait$VARIANT$armv81 + 24
2 libdispatch.dylib 0x344c4 _dispatch_semaphore_wait_slow + 128
3 UIKitCore 0x4999c8 __69+[_UIAsyncInvocationObserver whenInvocationsCompleteForObservers:do:]_block_invoke_2 + 56
4 libdispatch.dylib 0x63850 _dispatch_call_block_and_release + 24
5 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
6 libdispatch.dylib 0x3bb2c _dispatch_queue_override_invoke + 708
7 libdispatch.dylib 0x48d48 _dispatch_root_queue_drain + 328
8 libdispatch.dylib 0x49514 _dispatch_worker_thread2 + 160
9 libsystem_pthread.dylib 0x1b14 _pthread_wqthread + 224
10 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.dnssd.client
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 libxpc.dylib 0x26a58 -[OS_xpc_object dealloc] + 52
6 libxpc.dylib 0x15178 _xpc_dictionary_node_free + 80
7 libxpc.dylib 0x12cd8 _xpc_dictionary_dispose + 44
8 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
9 libxpc.dylib 0x80cc _xpc_array_dispose + 40
10 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
11 libxpc.dylib 0x12d4c _xpc_dictionary_dispose + 160
12 libxpc.dylib 0x26a3c -[OS_xpc_object dealloc] + 24
13 libxpc.dylib 0x10040 _xpc_connection_mach_event + 948
14 libdispatch.dylib 0x6487c _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x377c0 _dispatch_mach_msg_invoke$VARIANT$armv81 + 372
16 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
17 libdispatch.dylib 0x3835c _dispatch_mach_invoke$VARIANT$armv81 + 444
18 libdispatch.dylib 0x3f72c _dispatch_lane_serial_drain$VARIANT$armv81 + 308
19 libdispatch.dylib 0x402e4 _dispatch_lane_invoke$VARIANT$armv81 + 380
20 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
21 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
22 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0x1654 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1b9c _pthread_wqthread + 360
2 libsystem_pthread.dylib 0x167c start_wqthread + 8
com.apple.network.connections
0 libsystem_kernel.dylib 0x1c34 __ulock_wait + 8
1 libsystem_platform.dylib 0x8028 _os_unfair_lock_lock_slow + 168
2 libobjc.A.dylib 0x23dc objc_object::sidetable_clearDeallocating() + 100
3 libobjc.A.dylib 0x5a3c objc_destructInstance + 160
4 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 52
5 Network 0x3611a0 -[OS_nw_array dealloc] + 52
6 Network 0x12a768 nw_resolver_remove_endpoint_locked + 228
7 Network 0x12e468 __nw_resolver_create_dns_getaddrinfo_locked_block_invoke.165 + 6932
8 libdns_services.dylib 0x12f0 ___dnssd_getaddrinfo_activate_block_invoke + 204
9 libdispatch.dylib 0x647c8 _dispatch_client_callout + 16
10 libdispatch.dylib 0x3be7c _dispatch_continuation_pop$VARIANT$armv81 + 436
11 libdispatch.dylib 0x4d860 _dispatch_source_invoke$VARIANT$armv81 + 1552
12 libdispatch.dylib 0x4144c _dispatch_workloop_invoke$VARIANT$armv81 + 1636
13 libdispatch.dylib 0x4a000 _dispatch_workloop_worker_thread + 612
14 libsystem_pthread.dylib 0x1b50 _pthread_wqthread + 284
15 libsystem_pthread.dylib 0x167c start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0x1674 start_wqthread + 270
when i googled this error Crash in UIKitCore [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] iOS 12 only also shares similar error message but since we are not using native elements i think my cause of problem is from somewhere else?
did any faced this crashes before?
thanks in advance!
The App is crashing on iphone 7 ios 12. But i checked on my own system with same configuration (iphone 7 + ios 12) and it is working fine.
The report i get from crashlytics is
Date: 2018-10-01T15:29:00Z
OS Version: 12.0.0 (16A366)
Device: iPhone 7
RAM Free: 13.7%
Disk Free: 68.3%
#0. Crashed: com.apple.main-thread
0 VRapid 0x104a3d0b4 specialized GroupKViewController.getAttributedTime(time:) (GroupKViewController.swift:1095)
1 VRapid 0x104a3f5fc specialized GroupKViewController.collectionView(_:cellForItemAt:) (GroupKViewController.swift:1211)
2 VRapid 0x104a32494 #objc GroupKViewController.collectionView(_:cellForItemAt:) (GroupKViewController.swift)
3 UIKitCore 0x2036df4ac -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 356
4 UIKitCore 0x2036e37ec -[UICollectionView _updateVisibleCellsNow:] + 4036
5 UIKitCore 0x2036e888c -[UICollectionView layoutSubviews] + 324
6 UIKitCore 0x203ced998 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
7 QuartzCore 0x1db251a34 -[CALayer layoutSublayers] + 184
8 QuartzCore 0x1db2569c4 CA::Layer::layout_if_needed(CA::Transaction*) + 324
9 QuartzCore 0x1db1b59d4 CA::Context::commit_transaction(CA::Transaction*) + 340
10 QuartzCore 0x1db1e42f4 CA::Transaction::commit() + 608
11 QuartzCore 0x1db1e515c CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
12 CoreFoundation 0x1d6bfdb94 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
13 CoreFoundation 0x1d6bf8828 __CFRunLoopDoObservers + 412
14 CoreFoundation 0x1d6bf8dc8 __CFRunLoopRun + 1264
15 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
16 GraphicsServices 0x1d8e6c584 GSEventRunModal + 100
17 UIKitCore 0x20363f558 UIApplicationMain + 212
18 VRapid 0x104a19614 main (GroupVCCell.swift:19)
19 libdyld.dylib 0x1d66b8b94 start + 4
--
#0. Crashed: com.apple.main-thread
0 VRapid 0x104a3d0b4 specialized GroupKViewController.getAttributedTime(time:) (GroupKViewController.swift:1095)
1 VRapid 0x104a3f5fc specialized GroupKViewController.collectionView(_:cellForItemAt:) (GroupKViewController.swift:1211)
2 VRapid 0x104a32494 #objc GroupKViewController.collectionView(_:cellForItemAt:) (GroupKViewController.swift)
3 UIKitCore 0x2036df4ac -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 356
4 UIKitCore 0x2036e37ec -[UICollectionView _updateVisibleCellsNow:] + 4036
5 UIKitCore 0x2036e888c -[UICollectionView layoutSubviews] + 324
6 UIKitCore 0x203ced998 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
7 QuartzCore 0x1db251a34 -[CALayer layoutSublayers] + 184
8 QuartzCore 0x1db2569c4 CA::Layer::layout_if_needed(CA::Transaction*) + 324
9 QuartzCore 0x1db1b59d4 CA::Context::commit_transaction(CA::Transaction*) + 340
10 QuartzCore 0x1db1e42f4 CA::Transaction::commit() + 608
11 QuartzCore 0x1db1e515c CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
12 CoreFoundation 0x1d6bfdb94 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
13 CoreFoundation 0x1d6bf8828 __CFRunLoopDoObservers + 412
14 CoreFoundation 0x1d6bf8dc8 __CFRunLoopRun + 1264
15 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
16 GraphicsServices 0x1d8e6c584 GSEventRunModal + 100
17 UIKitCore 0x20363f558 UIApplicationMain + 212
18 VRapid 0x104a19614 main (GroupVCCell.swift:19)
19 libdyld.dylib 0x1d66b8b94 start + 4
#1. com.twitter.crashlytics.ios.binary-images
0 libsystem_kernel.dylib 0x1d6807948 write + 8
1 VRapid 0x104b1bcc0 __CLSFileWriteWithRetries_block_invoke (CLSFile.m:241)
2 VRapid 0x104b1bc00 CLSFileLoopWithWriteBlock (CLSFile.m:213)
3 VRapid 0x104b1beb0 CLSFileWriteToFileDescriptorOrBuffer (CLSFile.m:190)
4 VRapid 0x104b1c180 CLSFileWriteCollectionStart (CLSFile.m:442)
5 VRapid 0x104b1c084 CLSFileWriteSectionStart (CLSFile.m:422)
6 VRapid 0x104b042a0 __CLSBinaryImageChanged_block_invoke (CLSBinaryImage.m:501)
7 libdispatch.dylib 0x1d66a76c8 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x1d66a8484 _dispatch_client_callout + 16
9 libdispatch.dylib 0x1d664fc18 _dispatch_lane_serial_drain$VARIANT$mp + 592
10 libdispatch.dylib 0x1d6650760 _dispatch_lane_invoke$VARIANT$mp + 432
11 libdispatch.dylib 0x1d6658f00 _dispatch_workloop_worker_thread + 600
12 libsystem_pthread.dylib 0x1d688a0f0 _pthread_wqthread + 312
13 libsystem_pthread.dylib 0x1d688cd00 start_wqthread + 4
#2. com.apple.root.default-qos
0 libsystem_kernel.dylib 0x1d68040c8 __connect + 8
1 Quickblox 0x10535bd28 qb_jid + 171224
2 libdispatch.dylib 0x1d66a76c8 _dispatch_call_block_and_release + 24
3 libdispatch.dylib 0x1d66a8484 _dispatch_client_callout + 16
4 libdispatch.dylib 0x1d664b4d8 _dispatch_queue_override_invoke + 680
5 libdispatch.dylib 0x1d6657a60 _dispatch_root_queue_drain + 376
6 libdispatch.dylib 0x1d6658308 _dispatch_worker_thread2 + 128
7 libsystem_pthread.dylib 0x1d688a190 _pthread_wqthread + 472
8 libsystem_pthread.dylib 0x1d688cd00 start_wqthread + 4
#3. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1d67f9ed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1d67f93a8 mach_msg + 72
2 CoreFoundation 0x1d6bfdfb0 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1d6bf8e4c __CFRunLoopRun + 1396
4 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
5 Foundation 0x1d75ec6a4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 300
6 Foundation 0x1d75ec514 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x20359cac0 -[UIEventFetcher threadMain] + 136
8 Foundation 0x1d771f3b0 __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x1d68892fc _pthread_body + 128
10 libsystem_pthread.dylib 0x1d688925c _pthread_start + 48
11 libsystem_pthread.dylib 0x1d688cd08 thread_start + 4
#4. Thread
0 libsystem_pthread.dylib 0x1d688ccfc start_wqthread + 190
#5. Thread
0 libsystem_kernel.dylib 0x1d6805b9c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1d688a114 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0x1d688cd00 start_wqthread + 4
#6. Thread
0 libsystem_kernel.dylib 0x1d6805b9c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1d688a114 _pthread_wqthread + 348
2 libsystem_pthread.dylib 0x1d688cd00 start_wqthread + 4
#7. AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x1d67f9ed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1d67f93a8 mach_msg + 72
2 CoreFoundation 0x1d6bfdfb0 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1d6bf8e4c __CFRunLoopRun + 1396
4 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
5 AVFAudio 0x1dcbd1c4c GenericRunLoopThread::Entry(void*) + 164
6 AVFAudio 0x1dcbfdd34 CAPThread::Entry(CAPThread*) + 88
7 libsystem_pthread.dylib 0x1d68892fc _pthread_body + 128
8 libsystem_pthread.dylib 0x1d688925c _pthread_start + 48
9 libsystem_pthread.dylib 0x1d688cd08 thread_start + 4
#8. Thread
0 libsystem_pthread.dylib 0x1d688ccfc start_wqthread + 190
#9. Thread
0 libsystem_pthread.dylib 0x1d688ccfc start_wqthread + 190
#10. com.twitter.crashlytics.ios.MachExceptionServer
0 VRapid 0x104b1cd80 CLSProcessRecordAllThreads (CLSProcess.c:376)
1 VRapid 0x104b1cd80 CLSProcessRecordAllThreads (CLSProcess.c:376)
2 VRapid 0x104b1d1f4 CLSProcessRecordAllThreads (CLSProcess.c:407)
3 VRapid 0x104b0d078 CLSHandler (CLSHandler.m:26)
4 VRapid 0x104b08390 CLSMachExceptionServer (CLSMachException.c:446)
5 libsystem_pthread.dylib 0x1d68892fc _pthread_body + 128
6 libsystem_pthread.dylib 0x1d688925c _pthread_start + 48
7 libsystem_pthread.dylib 0x1d688cd08 thread_start + 4
#11. AXBundleLoadQueue
0 libsystem_kernel.dylib 0x1d6804350 __getdirentries64 + 8
1 libsystem_c.dylib 0x1d6731398 _readdir_unlocked + 128
2 libsystem_c.dylib 0x1d6731458 readdir + 40
3 CoreFoundation 0x1d6bcfa74 _CFIterateDirectory + 100
4 CoreFoundation 0x1d6cc6ebc _CFBundleCopyInfoDictionaryInDirectoryWithVersion + 564
5 CoreFoundation 0x1d6cc79e4 CFBundleGetInfoDictionary + 164
6 CoreFoundation 0x1d6bb0630 _CFBundleCreate + 636
7 Foundation 0x1d75e95a4 -[NSBundle _cfBundle] + 84
8 Foundation 0x1d762824c -[NSBundle loadAndReturnError:] + 204
9 UIAccessibility 0x1e8990d38 -[NSBundleAccessibility loadAndReturnError:] + 52
10 AccessibilityUtilities 0x1e6d7b9c0 __50-[AXCodeItem loadWithStrategy:onQueue:completion:]_block_invoke_2 + 240
11 libdispatch.dylib 0x1d66a76c8 _dispatch_call_block_and_release + 24
12 libdispatch.dylib 0x1d66a8484 _dispatch_client_callout + 16
13 libdispatch.dylib 0x1d664fc18 _dispatch_lane_serial_drain$VARIANT$mp + 592
14 libdispatch.dylib 0x1d6650760 _dispatch_lane_invoke$VARIANT$mp + 432
15 libdispatch.dylib 0x1d6658f00 _dispatch_workloop_worker_thread + 600
16 libsystem_pthread.dylib 0x1d688a0f0 _pthread_wqthread + 312
17 libsystem_pthread.dylib 0x1d688cd00 start_wqthread + 4
#12. Thread
0 libsystem_pthread.dylib 0x1d688ccfc start_wqthread + 190
#13. com.apple.CoreMotion.MotionThread
0 libsystem_kernel.dylib 0x1d67f9ed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1d67f93a8 mach_msg + 72
2 CoreFoundation 0x1d6bfdfb0 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1d6bf8e4c __CFRunLoopRun + 1396
4 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
5 CoreFoundation 0x1d6bf9354 CFRunLoopRun + 80
6 CoreMotion 0x1dc6272cc (Missing)
7 libsystem_pthread.dylib 0x1d68892fc _pthread_body + 128
8 libsystem_pthread.dylib 0x1d688925c _pthread_start + 48
9 libsystem_pthread.dylib 0x1d688cd08 thread_start + 4
#14. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1d67f9ed0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1d67f93a8 mach_msg + 72
2 CoreFoundation 0x1d6bfdfb0 __CFRunLoopServiceMachPort + 236
3 CoreFoundation 0x1d6bf8e4c __CFRunLoopRun + 1396
4 CoreFoundation 0x1d6bf85b8 CFRunLoopRunSpecific + 436
5 CFNetwork 0x1d7218e18 -[__CoreSchedulingSetRunnable runForever] + 212
6 Foundation 0x1d771f3b0 __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x1d68892fc _pthread_body + 128
8 libsystem_pthread.dylib 0x1d688925c _pthread_start + 48
9 libsystem_pthread.dylib 0x1d688cd08 thread_start + 4
But i am not able to locate the crash as on my iPhone 7 the app is working fine.
Can anyone state the possible reason.
The following steps has already taken
Soft restart of App
Uninstall and then reinstall the app
but looks nothing works.
Below is the code for ref
Get Attributed Time Code
func getAttributedTime(time: String) -> NSAttributedString {
let attributeString = NSMutableAttributedString.init()
let timeComp = time.components(separatedBy: " ")
let timeAttributeString = NSAttributedString.init(string: timeComp[0], attributes: [NSAttributedStringKey.font : UIFont.init(name: "Roboto-Medium", size: 42)!.setFontAccordingToScreenHeight(), NSAttributedStringKey.foregroundColor : KenanteColors.timeCol])
let pmAttributedString = NSAttributedString.init(string: timeComp[1], attributes: [NSAttributedStringKey.font: UIFont.init(name: "Roboto-Medium", size: 20)!.setFontAccordingToScreenHeight(), NSAttributedStringKey.foregroundColor : KenanteColors.timeCol])
attributeString.append(timeAttributeString)
attributeString.append(pmAttributedString)
return attributeString
}
}
Calling getAttributedTime in cellForItemAt
let startTime = dateFormatter.date(from: time)?.toLocalTime() ?? Date.init()
dateFormatter.amSymbol = "am"
dateFormatter.pmSymbol = "pm"
dateFormatter.dateFormat = "hh:mm a"
let startTimeInDate = dateFormatter.string(from: startTime)
time = startTimeInDate
cell.timeIcon.attributedText = getAttributedTime(time: time)
you must share a code snippet where you assign attributed text to your label,
otherwise it could be several reasons like:
1) You have to use the attributedText property of UILabel
2) You may unwrap a custom UIFont name while it does not exist.
There would be more accurate solution after you share your code.
Version mismatch failure when trying to persist (update) the identity object (persistIdentity:error:). Object version=1229, persisted version=1230.
#10. Crashed: com.twitter.crashlytics.ios.exception
0 AppName 0x1032b983c CLSProcessRecordAllThreads + 4309293116
1 AppName 0x1032b983c CLSProcessRecordAllThreads + 4309293116
2 AppName 0x1032b96f8 CLSProcessRecordAllThreads + 4309292792
3 AppName 0x1032a9814 CLSHandler + 4309227540
4 AppName 0x1032b7844 __CLSExceptionRecord_block_invoke + 4309284932
5 libdispatch.dylib 0x18401cae4 _dispatch_client_callout + 16
6 libdispatch.dylib 0x184025640 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 AppName 0x1032b72d8 CLSExceptionRecord + 4309283544
8 AppName 0x1032b7100 CLSExceptionRecordNSException + 4309283072
9 AppName 0x1032b6d14 CLSTerminateHandler() + 4309282068
10 libc++abi.dylib 0x1838d537c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1838d4ccc __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
12 libobjc.A.dylib 0x1838e4720 _objc_exception_destructor(void*) + 362
13 CoreFoundation 0x18472ac6c -[NSException initWithCoder:] + 114
14 LayerKit 0x104eb4bf4 __47-[LYRIdentityRepository persistIdentity:error:]_block_invoke + 3760
15 LayerKit 0x104eb0ff8 -[LYRIdentityRepository attemptBlock:] + 24
16 LayerKit 0x104eb3bd8 -[LYRIdentityRepository persistIdentity:error:] + 468
17 LayerKit 0x104eab904 __59-[LYRIdentity setPresenceStatusAndPostObjectChanges:error:]_block_invoke_2 + 212
18 LayerKit 0x104e6dfb4 -[LYRDatabaseTransaction executeTransactionUsingBlock:completion:] + 116
19 LayerKit 0x104eab7c4 __59-[LYRIdentity setPresenceStatusAndPostObjectChanges:error:]_block_invoke + 312
20 libdispatch.dylib 0x18401cb24 _dispatch_call_block_and_release + 24
21 libdispatch.dylib 0x18401cae4 _dispatch_client_callout + 16
22 libdispatch.dylib 0x184026a38 _dispatch_queue_serial_drain$VARIANT$mp + 608
23 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
24 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
25 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp + 668
26 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread + 860
27 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
--
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x18472ad8c __exceptionPreprocess
1 libobjc.A.dylib 0x1838e45ec objc_exception_throw
2 CoreFoundation 0x18472ac6c -[NSException initWithCoder:]
3 LayerKit 0x104eb4bf4 (Missing)
4 LayerKit 0x104eb0ff8 (Missing)
5 LayerKit 0x104eb3bd8 (Missing)
6 LayerKit 0x104eab904 (Missing)
7 LayerKit 0x104e6dfb4 (Missing)
8 LayerKit 0x104eab7c4 (Missing)
9 libdispatch.dylib 0x18401cb24 _dispatch_call_block_and_release
10 libdispatch.dylib 0x18401cae4 _dispatch_client_callout
11 libdispatch.dylib 0x184026a38 _dispatch_queue_serial_drain$VARIANT$mp
12 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp
13 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
14 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp
15 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread
16 libsystem_pthread.dylib 0x18434fb08 start_wqthread
#0. com.apple.main-thread
0 libswiftCore.dylib 0x1064d9a38 swift_getInitializedObjCClass + 58
1 CoreFoundation 0x184732580 __invoking___ + 144
2 CoreFoundation 0x184611748 -[NSInvocation invoke] + 284
3 CoreFoundation 0x18461656c -[NSInvocation invokeWithTarget:] + 60
4 AppName 0x103791134 -[LLAppDelegateProxy forwardInvocation:] (LLAppDelegateProxy.m:68)
5 CoreFoundation 0x1847302d4 ___forwarding___ + 624
6 CoreFoundation 0x18461641c _CF_forwarding_prep_0 + 92
7 UIKit 0x18e6b4510 -[UIApplication _sendWillEnterForegroundCallbacks] + 172
8 UIKit 0x18e2c5e10 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1388
9 UIKit 0x18ef5b72c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296
10 UIKit 0x18e2c5268 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432
11 UIKit 0x18ed409b8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
12 UIKit 0x18ee8eae8 _performActionsWithDelayForTransitionContext + 112
13 UIKit 0x18e2c4c88 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
14 UIKit 0x18e2c4624 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368
15 UIKit 0x18e3023b0 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 468
16 FrontBoardServices 0x186f28f24 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.362 + 212
17 libdispatch.dylib 0x18401cae4 _dispatch_client_callout + 16
18 libdispatch.dylib 0x1840241f4 _dispatch_block_invoke_direct$VARIANT$mp + 224
19 FrontBoardServices 0x186f5c878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
20 FrontBoardServices 0x186f5c51c -[FBSSerialQueue _performNext] + 404
21 FrontBoardServices 0x186f5cab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
22 CoreFoundation 0x1846d3404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
23 CoreFoundation 0x1846d2c2c __CFRunLoopDoSources0 + 276
24 CoreFoundation 0x1846d079c __CFRunLoopRun + 1204
25 CoreFoundation 0x1845f0da8 CFRunLoopRunSpecific + 552
26 GraphicsServices 0x1865d3020 GSEventRunModal + 100
27 UIKit 0x18e5d178c UIApplicationMain + 236
28 AppName 0x1027a698c main (AppDelegate.swift:21)
29 libdyld.dylib 0x184081fc0 start + 4
#1. com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x18418fe08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18418fc80 mach_msg + 72
2 CoreFoundation 0x1846d2e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1846d0908 __CFRunLoopRun + 1568
4 CoreFoundation 0x1845f0da8 CFRunLoopRunSpecific + 552
5 Foundation 0x185065674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x18506551c -[NSRunLoop(NSRunLoop) runUntilDate:] + 148
7 UIKit 0x18e2b67e4 -[UIEventFetcher threadMain] + 136
8 Foundation 0x185175efc __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
10 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
11 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#2. com.twitter.crashlytics.ios.MachExceptionServer
0 libsystem_kernel.dylib 0x18418fe08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18418fc80 mach_msg + 72
2 AppName 0x1032a46e4 CLSMachExceptionServer + 4309206756
3 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
4 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
5 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#3. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x18418fe08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18418fc80 mach_msg + 72
2 CoreFoundation 0x1846d2e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1846d0908 __CFRunLoopRun + 1568
4 CoreFoundation 0x1845f0da8 CFRunLoopRunSpecific + 552
5 CFNetwork 0x184efe4b0 -[__CoreSchedulingSetRunnable runForever] + 220
6 Foundation 0x185175efc __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
8 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
9 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#4. com.apple.CFNetwork.CustomProtocols
0 libsystem_kernel.dylib 0x18418fe08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18418fc80 mach_msg + 72
2 CoreFoundation 0x1846d2e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1846d0908 __CFRunLoopRun + 1568
4 CoreFoundation 0x1845f0da8 CFRunLoopRunSpecific + 552
5 CFNetwork 0x184efe4b0 -[__CoreSchedulingSetRunnable runForever] + 220
6 Foundation 0x185175efc __NSThread__start__ + 1040
7 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
8 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
9 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#5. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x1841b1538 __select + 8
1 CoreFoundation 0x1846db378 __CFSocketManager + 644
2 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
3 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
4 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#6. com.squareup.SocketRocket.NetworkThread
0 libsystem_kernel.dylib 0x18418fe08 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x18418fc80 mach_msg + 72
2 CoreFoundation 0x1846d2e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x1846d0908 __CFRunLoopRun + 1568
4 CoreFoundation 0x1845f0da8 CFRunLoopRunSpecific + 552
5 Foundation 0x185065674 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 AppName 0x1033ffd30 -[_FSRRunLoopThread main] + 4310629680
7 Foundation 0x185175efc __NSThread__start__ + 1040
8 libsystem_pthread.dylib 0x184351220 _pthread_body + 272
9 libsystem_pthread.dylib 0x184351110 _pthread_body + 290
10 libsystem_pthread.dylib 0x18434fb10 thread_start + 4
#7. Thread
0 libsystem_pthread.dylib 0x18434fb04 start_wqthread + 122
#8. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#9. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#10. Crashed: com.twitter.crashlytics.ios.exception
0 AppName 0x1032b983c CLSProcessRecordAllThreads + 4309293116
1 AppName 0x1032b983c CLSProcessRecordAllThreads + 4309293116
2 AppName 0x1032b96f8 CLSProcessRecordAllThreads + 4309292792
3 AppName 0x1032a9814 CLSHandler + 4309227540
4 AppName 0x1032b7844 __CLSExceptionRecord_block_invoke + 4309284932
5 libdispatch.dylib 0x18401cae4 _dispatch_client_callout + 16
6 libdispatch.dylib 0x184025640 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 AppName 0x1032b72d8 CLSExceptionRecord + 4309283544
8 AppName 0x1032b7100 CLSExceptionRecordNSException + 4309283072
9 AppName 0x1032b6d14 CLSTerminateHandler() + 4309282068
10 libc++abi.dylib 0x1838d537c std::__terminate(void (*)()) + 16
11 libc++abi.dylib 0x1838d4ccc __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
12 libobjc.A.dylib 0x1838e4720 _objc_exception_destructor(void*) + 362
13 CoreFoundation 0x18472ac6c -[NSException initWithCoder:] + 114
14 LayerKit 0x104eb4bf4 __47-[LYRIdentityRepository persistIdentity:error:]_block_invoke + 3760
15 LayerKit 0x104eb0ff8 -[LYRIdentityRepository attemptBlock:] + 24
16 LayerKit 0x104eb3bd8 -[LYRIdentityRepository persistIdentity:error:] + 468
17 LayerKit 0x104eab904 __59-[LYRIdentity setPresenceStatusAndPostObjectChanges:error:]_block_invoke_2 + 212
18 LayerKit 0x104e6dfb4 -[LYRDatabaseTransaction executeTransactionUsingBlock:completion:] + 116
19 LayerKit 0x104eab7c4 __59-[LYRIdentity setPresenceStatusAndPostObjectChanges:error:]_block_invoke + 312
20 libdispatch.dylib 0x18401cb24 _dispatch_call_block_and_release + 24
21 libdispatch.dylib 0x18401cae4 _dispatch_client_callout + 16
22 libdispatch.dylib 0x184026a38 _dispatch_queue_serial_drain$VARIANT$mp + 608
23 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
24 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
25 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp + 668
26 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread + 860
27 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#11. com.apple.CoreLocation.ConnectionClient.0x1c032a460.events
0 libsystem_kernel.dylib 0x18418fe5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x18401f0b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x18401f924 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x18ae9c888 CLClientInvalidate + 888
4 CoreLocation 0x18aea2878 CLClientRetrieveData + 2828
5 CoreLocation 0x18aef8b18 CLClientCreateIso6709Notation + 79496
6 CoreLocation 0x18aef4bf0 CLClientCreateIso6709Notation + 63328
7 CoreLocation 0x18aef6390 CLClientCreateIso6709Notation + 69376
8 libxpc.dylib 0x18438b220 _xpc_connection_call_event_handler + 68
9 libxpc.dylib 0x18438f19c do_mach_notify_port_destroyed + 160
10 libxpc.dylib 0x18438f0c8 _Xmach_notify_port_destroyed + 80
11 libxpc.dylib 0x18438f04c notify_server + 92
12 libxpc.dylib 0x1843956b0 _xpc_connection_pass2mig + 164
13 libxpc.dylib 0x184388c14 _xpc_connection_mach_event + 1080
14 libdispatch.dylib 0x18401cbb4 _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x1840334c4 _dispatch_mach_msg_invoke$VARIANT$mp + 352
16 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
17 libdispatch.dylib 0x184033f70 _dispatch_mach_invoke$VARIANT$mp + 508
18 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
19 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
20 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
21 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
22 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
23 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp + 668
24 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread + 860
25 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#12. com.apple.CoreLocation.ConnectionClient.0x1c4322b20.events
0 libsystem_kernel.dylib 0x18418fe5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x18401f0b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x18401f924 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x18ae9c888 CLClientInvalidate + 888
4 CoreLocation 0x18aea2878 CLClientRetrieveData + 2828
5 CoreLocation 0x18aef8b18 CLClientCreateIso6709Notation + 79496
6 CoreLocation 0x18aef4bf0 CLClientCreateIso6709Notation + 63328
7 CoreLocation 0x18aef6390 CLClientCreateIso6709Notation + 69376
8 libxpc.dylib 0x18438b220 _xpc_connection_call_event_handler + 68
9 libxpc.dylib 0x18438f19c do_mach_notify_port_destroyed + 160
10 libxpc.dylib 0x18438f0c8 _Xmach_notify_port_destroyed + 80
11 libxpc.dylib 0x18438f04c notify_server + 92
12 libxpc.dylib 0x1843956b0 _xpc_connection_pass2mig + 164
13 libxpc.dylib 0x184388c14 _xpc_connection_mach_event + 1080
14 libdispatch.dylib 0x18401cbb4 _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x1840334c4 _dispatch_mach_msg_invoke$VARIANT$mp + 352
16 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
17 libdispatch.dylib 0x184033f70 _dispatch_mach_invoke$VARIANT$mp + 508
18 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
19 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
20 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
21 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
22 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
23 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp + 668
24 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread + 860
25 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#13. com.apple.CoreLocation.ConnectionClient.0x1c0324ec0.events
0 libsystem_kernel.dylib 0x18418fe5c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x18401f0b0 _dispatch_sema4_timedwait$VARIANT$mp + 60
2 libdispatch.dylib 0x18401f924 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x18ae9c888 CLClientInvalidate + 888
4 CoreLocation 0x18aea2878 CLClientRetrieveData + 2828
5 CoreLocation 0x18aef8b18 CLClientCreateIso6709Notation + 79496
6 CoreLocation 0x18aef4bf0 CLClientCreateIso6709Notation + 63328
7 CoreLocation 0x18aef6390 CLClientCreateIso6709Notation + 69376
8 libxpc.dylib 0x18438b220 _xpc_connection_call_event_handler + 68
9 libxpc.dylib 0x18438f19c do_mach_notify_port_destroyed + 160
10 libxpc.dylib 0x18438f0c8 _Xmach_notify_port_destroyed + 80
11 libxpc.dylib 0x18438f04c notify_server + 92
12 libxpc.dylib 0x1843956b0 _xpc_connection_pass2mig + 164
13 libxpc.dylib 0x184388c14 _xpc_connection_mach_event + 1080
14 libdispatch.dylib 0x18401cbb4 _dispatch_client_callout4 + 16
15 libdispatch.dylib 0x1840334c4 _dispatch_mach_msg_invoke$VARIANT$mp + 352
16 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
17 libdispatch.dylib 0x184033f70 _dispatch_mach_invoke$VARIANT$mp + 508
18 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
19 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
20 libdispatch.dylib 0x1840268f0 _dispatch_queue_serial_drain$VARIANT$mp + 280
21 libdispatch.dylib 0x184027380 _dispatch_queue_invoke$VARIANT$mp + 336
22 libdispatch.dylib 0x184027d4c _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 340
23 libdispatch.dylib 0x18403011c _dispatch_workloop_worker_thread$VARIANT$mp + 668
24 libsystem_pthread.dylib 0x18434fe70 _pthread_wqthread + 860
25 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#14. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#15. Thread
0 libsystem_pthread.dylib 0x18434fb04 start_wqthread + 122
#16. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#17. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#18. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
#19. Thread
0 libsystem_kernel.dylib 0x1841b1d84 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x18434feb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x18434fb08 start_wqthread + 4
Corelocation is mentioned in the thread. 53% of the crashes happen in the background. Makes me think that has something to do with live tracking the user while they are out of the app.
How can I solve it?
This was a crash in layer SDK and has been fixed in Layerkit 4.0.4
Simply updating the layer 4.0.4 resolved the problem.
Our application started to act weird when ios 11 update is released. We are using pushkit to receive push notifications related with incoming call and messages.
While the app is not in the background(in terminated state), when a push notification arrives IOS raises our app and execute didFinishLaunching method than notification arrives to didReceiveIncomingPushWithPayload method
However after updating to IOS 11 we found out that while the app is terminated sometimes we cannot receive notifications and when we checked the crashlogs we saw that app is crashing and as the reason IOS says cpu usage but it succesfully executes didFinishLaunching method(we put logs to the end of the method and they are printed)
We dont know what may cause this problem, does anyone have any idea about the changes in IOS 11 to trigger that problem
Below you can find our crashlog
Incident Identifier: 6ED4EB5C-7E9E-4639-860B-312A48C74F49
CrashReporter Key: cbdfc5f8b24a9e7b992bec953fb095b1909482bc
Hardware Model: iPhone9,1
Process: DTimmmr [4534]
Path: /private/var/containers/Bundle/Application/B3B6FE24-DBCE-4966-9C6D-18778F73E668/DTimmmr.app/DTimmmr
Identifier: com.genband.immmrMagenta
Version: 7.3.3.791 (0.94)
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.genband.immmrMagenta [3863]
Date/Time: 2017-11-06 21:58:45.0631 +0300
Launch Time: 2017-11-06 21:58:39.6223 +0300
OS Version: iPhone OS 11.1 (15B93)
Baseband Version: 3.21.01
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: com.genband.immmrMagenta exhausted CPU time allowance of 3.96 seconds | | Elapsed total CPU time (seconds): 7.920 (user 7.920, system 0.000), 78% CPU | Elapsed application CPU time (seconds): 5.525, 54% CPU |
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Main Thread Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreUI 0x00000001891f9938 _CUICopySortedKeySignature + 232
1 CoreUI 0x00000001891f9894 _CUICopySortedKeySignature + 68
2 CoreUI 0x00000001891f9c14 CUICopyKeySignatureWithPrefix + 284
3 CoreUI 0x0000000189241680 -[CUIStructuredThemeStore copyKeySignatureForKey:withBytesNoCopy:length:] + 60
4 CoreUI 0x000000018922a0b8 -[CUIMutableStructuredThemeStore renditionWithKey:] + 64
5 CoreUI 0x000000018922a05c -[CUIMutableStructuredThemeStore canGetRenditionWithKey:] + 20
6 CoreUI 0x000000018926d3c0 -[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:iconSizeIndex:] + 2192
7 CoreUI 0x000000018926cb2c -[CUICatalog _resolvedRenditionKeyForName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:withBaseKeySelector:] + 308
8 CoreUI 0x000000018926896c -[CUICatalog _imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 184
9 CoreUI 0x0000000189268acc -[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 156
10 CoreUI 0x00000001892687a8 -[CUICatalog imageWithName:scaleFactor:deviceIdiom:deviceSubtype:displayGamut:layoutDirection:sizeClassHorizontal:sizeClassVertical:] + 160
11 UIKit 0x000000018bec6a88 -[UIImageAsset imageWithTraitCollection:] + 628
12 UIKit 0x000000018bec7d70 -[_UIPathLazyImageAsset imageWithTraitCollection:] + 400
13 UIKit 0x000000018b4ad594 +[UIImage imageNamed:inBundle:compatibleWithTraitCollection:] + 380
14 UIKit 0x000000018b329160 +[UIImage imageNamed:] + 124
15 DTimmmr 0x000000010465acc8 +[UIStorage loadPixelPreciseImageNamed:] + 3747016 (UIStorage.mm:425)
16 DTimmmr 0x000000010461b2b8 -[WelcomeScreenViewController viewDidLoad] + 3486392 (WelcomeScreenViewController.mm:47)
17 UIKit 0x000000018b208f08 -[UIViewController loadViewIfRequired] + 1040
18 UIKit 0x000000018b2b05f8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 76
19 UIKit 0x000000018b2afa98 -[UINavigationController _startTransition:fromViewController:toViewController:] + 196
20 UIKit 0x000000018b2af49c -[UINavigationController _startDeferredTransitionIfNeeded:] + 1168
21 UIKit 0x000000018b2aef18 -[UINavigationController __viewWillLayoutSubviews] + 164
22 UIKit 0x000000018b2aee18 -[UILayoutContainerView layoutSubviews] + 188
23 UIKit 0x000000018b478f74 _runAfterCACommitDeferredBlocks + 292
24 UIKit 0x000000018b46c318 _cleanUpAfterCAFlushAndRunDeferredBlocks + 288
25 UIKit 0x000000018b48418c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 152
26 CoreFoundation 0x0000000181d7a0fc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
27 CoreFoundation 0x0000000181d799cc __CFRunLoopDoBlocks + 288
28 CoreFoundation 0x0000000181d776dc __CFRunLoopRun + 1068
29 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30 GraphicsServices 0x0000000183b2ff84 GSEventRunModal + 100
31 UIKit 0x000000018b26c2f4 UIApplicationMain + 208
32 DTimmmr 0x00000001042d8038 main + 65592 (main.m:15)
33 libdyld.dylib 0x00000001817ba56c start + 4
Thread 1 name: Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x1c412c620.events
Thread 1:
0 libsystem_kernel.dylib 0x00000001818c8c18 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x00000001817574d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2 libdispatch.dylib 0x0000000181757d40 _dispatch_semaphore_wait_slow + 72
3 CoreLocation 0x0000000188326aa8 0x188323000 + 15016
4 CoreLocation 0x000000018832c53c 0x188323000 + 38204
5 CoreLocation 0x000000018832c26c 0x188323000 + 37484
6 CoreLocation 0x0000000188383f58 0x188323000 + 397144
7 CoreLocation 0x000000018838032c 0x188323000 + 381740
8 CoreLocation 0x0000000188380250 0x188323000 + 381520
9 CoreLocation 0x0000000188381ae4 0x188323000 + 387812
10 libxpc.dylib 0x0000000181a367d0 _xpc_connection_call_event_handler + 68
11 libxpc.dylib 0x0000000181a34168 _xpc_connection_mach_event + 984
12 libdispatch.dylib 0x0000000181755118 _dispatch_client_callout4 + 16
13 libdispatch.dylib 0x000000018176b8b8 _dispatch_mach_msg_invoke$VARIANT$mp + 356
14 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
15 libdispatch.dylib 0x000000018176c534 _dispatch_mach_invoke$VARIANT$mp + 952
16 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
17 libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
18 libdispatch.dylib 0x000000018175ed00 _dispatch_queue_serial_drain$VARIANT$mp + 200
19 libdispatch.dylib 0x000000018175f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
20 libdispatch.dylib 0x0000000181760200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
21 libdispatch.dylib 0x00000001817684a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
22 libsystem_pthread.dylib 0x00000001819fafd0 _pthread_wqthread + 932
23 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 2 name: 7543851008
Thread 2:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 -[NSRunLoop+ 50916 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x00000001826e0afc -[NSRunLoop+ 178940 (NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000018bdcb2f4 -[UIEventFetcher threadMain] + 136
8 Foundation 0x00000001827c2860 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
10 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
11 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 4 name: 7619425472 Dispatch queue: com.apple.root.default-qos
Thread 4:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 Foundation 0x00000001826d3b44 -[NSObject+ 125764 (NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 764
3 Foundation 0x00000001826d7e28 -[NSObject+ 142888 (NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 144
4 DTimmmr 0x0000000104476f64 -[GsmAddressBookManager _initAddressBookObj] + 1765220 (GsmAddressBookManager.mm:163)
5 DTimmmr 0x000000010447a624 -[GsmAddressBookManager implicitlyLoadAddressBookContacts] + 1779236 (GsmAddressBookManager.mm:892)
6 DTimmmr 0x0000000104a1d924 -[NSObject(DebounceSelector) debounceSelector:object:timeout:] + 7690532 (NSObject+DebounceSelector.m:78)
7 DTimmmr 0x0000000104a1d6b0 -[NSObject(DebounceSelector) debounceSelector:timeout:] + 7689904 (NSObject+DebounceSelector.m:56)
8 DTimmmr 0x000000010447a594 -[GsmAddressBookManager loadAddressBookContacts] + 1779092 (GsmAddressBookManager.mm:879)
9 DTimmmr 0x000000010447a264 __53-[GsmAddressBookManager asyncLoadAddressBookContacts]_block_invoke + 1778276 (GsmAddressBookManager.mm:864)
10 libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
12 libdispatch.dylib 0x000000018175c090 _dispatch_queue_override_invoke$VARIANT$mp + 716
13 libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
14 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
15 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
16 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 5 name: 7619384576 Dispatch queue: com.apple.root.user-initiated-qos
Thread 5:
0 libsystem_platform.dylib 0x00000001819f7f0c DYLD-STUB$$OSAtomicAdd32 + 0
1 CoreFoundation 0x0000000181de214c -[_CFXNotificationRegistrar add:object:observer:tokenRegistration:] + 460
2 CoreFoundation 0x0000000181ca3d94 _CFXNotificationRegisterObserver + 1332
3 Foundation 0x00000001826b8530 -[NSNotificationCenter addObserver:selector:name:object:] + 392
4 DTimmmr 0x0000000104622010 -[Contact initWithFirstName:andLastName:andDisplayName:] + 3514384 (Contact.mm:116)
5 DTimmmr 0x0000000104627c94 +[Contact contactWithDictionary:] + 3538068 (Contact.mm:906)
6 DTimmmr 0x0000000104479f0c -[GsmAddressBookManager _getCachedContactsFromArray:] + 1777420 (GsmAddressBookManager.mm:841)
7 DTimmmr 0x000000010447a10c __58-[GsmAddressBookManager _asyncGetCachedContactsFromArray:]_block_invoke + 1777932 (GsmAddressBookManager.mm:856)
8 libdispatch.dylib 0x0000000181755088 _dispatch_call_block_and_release + 24
9 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
10 libdispatch.dylib 0x0000000181762378 _dispatch_root_queue_drain + 1028
11 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
12 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
13 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 6 name: AVAudioSession Notify Thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 AVFAudio 0x0000000187580774 GenericRunLoopThread::Entry+ 542580 (void*) + 164
6 AVFAudio 0x00000001875ab018 CAPThread::Entry+ 716824 (CAPThread*) + 84
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 7 name: Thread 0x0x127d240a0
Thread 7:
0 libsystem_kernel.dylib 0x00000001818e9570 __select + 8
1 DTimmmr 0x0000000104f26148 rtc::PhysicalSocketServer::Wait+ 12968264 (int, bool) + 696
2 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
3 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
4 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
5 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
6 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
7 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 8 name: Thread 0x0x127d24240
Thread 8:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fc1c rtc::Thread::ProcessMessages+ 13007900 (int) + 120
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 9 name: Thread 0x0x127d243e0
Thread 9:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92e8 rtc::Event::Wait+ 12784360 (int) + 244
3 DTimmmr 0x0000000104f1dae4 rtc::NullSocketServer::Wait+ 12933860 (int, bool) + 16
4 DTimmmr 0x0000000104f1706c rtc::MessageQueue::Get+ 12906604 (rtc::Message*, int, bool) + 1064
5 DTimmmr 0x0000000104f2fce8 rtc::Thread::ProcessMessages+ 13008104 (int) + 324
6 DTimmmr 0x0000000104f2fb84 rtc::Thread::PreRun+ 13007748 (void*) + 104
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 10 name: VoiceProcessThread
Thread 10:
0 libsystem_kernel.dylib 0x00000001818e9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001819fed30 _pthread_cond_wait$VARIANT$mp + 640
2 DTimmmr 0x0000000104ef92b8 rtc::Event::Wait+ 12784312 (int) + 196
3 DTimmmr 0x0000000104f089d4 webrtc::EventWrapperImpl::Wait+ 12847572 (unsigned long) + 16
4 DTimmmr 0x00000001051839d0 webrtc::ProcessThreadImpl::Process+ 15448528 () + 876
5 DTimmmr 0x0000000104efa06c rtc::PlatformThread::Run+ 12787820 () + 400
6 DTimmmr 0x0000000104ef9ed0 rtc::PlatformThread::StartThread+ 12787408 (void*) + 12
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 11 name: 7548104896
Thread 11:
0 libsystem_pthread.dylib 0x00000001819fac1c start_wqthread + 0
Thread 12 name: 7617291584 Dispatch queue: WebRequestsOperationQueue (QOS: UNSPECIFIED)
Thread 12:
0 libsystem_kernel.dylib 0x00000001818ea800 kevent_id + 8
1 libdispatch.dylib 0x00000001817708f8 _dispatch_kq_poll + 204
2 libdispatch.dylib 0x00000001817712c0 _dispatch_event_loop_wait_for_ownership$VARIANT$mp + 432
3 libdispatch.dylib 0x0000000181763018 _dispatch_sync_wait + 416
4 DTimmmr 0x0000000104a84d74 -[DDLog queueLogMessage:asynchronously:] + 8113524 (DDLog.m:370)
5 DTimmmr 0x0000000104a85438 -[DDLog log:message:level:flag:context:file:function:line:tag:] + 8115256 (DDLog.m:510)
6 DTimmmr 0x0000000104a852d4 +[DDLog log:message:level:flag:context:file:function:line:tag:] + 8114900 (DDLog.m:0)
7 DTimmmr 0x0000000104a84f1c +[DDLog log:level:flag:context:file:function:line:tag:format:] + 8113948 (DDLog.m:403)
8 DTimmmr 0x00000001045de72c +[FSPLogger logAsync:level:flag:context:tag:function:format:] + 3237676 (FSPLogger.m:89)
9 DTimmmr 0x00000001047f0ebc -[KandySDKLogger logWithLevel:andLogString:] + 5410492 (KandySDKLogger.m:37)
10 DTimmmr 0x0000000104da4724 -[KandyLoggerMediator logWithDate:andThreadName:andLevel:andFileName:andLine:andMethodName:andLogString:] + 508
11 DTimmmr 0x0000000104dc9af4 -[KandyBaseWebRequestOperation connection:didReceiveResponse:] + 380
12 CFNetwork 0x00000001825a9d48 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 60
13 CFNetwork 0x00000001825a9cec -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 204
14 CFNetwork 0x00000001825a9e60 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
15 CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
16 CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
17 CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
18 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
19 libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
20 CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
21 CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
22 CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
23 CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
24 CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
25 CoreFoundation 0x0000000181d7a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26 CoreFoundation 0x0000000181d7a268 __CFRunLoopDoSource0 + 88
27 CoreFoundation 0x0000000181d79af0 __CFRunLoopDoSources0 + 204
28 CoreFoundation 0x0000000181d776c8 __CFRunLoopRun + 1048
29 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
30 CoreFoundation 0x0000000181ce7098 CFRunLoopRun + 116
31 DTimmmr 0x0000000104dc85c0 -[KandyBaseWebRequestOperation start] + 680
32 Foundation 0x000000018279f004 __NSOQSchedule_f + 404
33 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
34 libdispatch.dylib 0x000000018175d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
35 libdispatch.dylib 0x000000018175bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
36 libdispatch.dylib 0x00000001817621c8 _dispatch_root_queue_drain + 596
37 libdispatch.dylib 0x0000000181761f10 _dispatch_worker_thread3 + 120
38 libsystem_pthread.dylib 0x00000001819fb120 _pthread_wqthread + 1268
39 libsystem_pthread.dylib 0x00000001819fac20 start_wqthread + 4
Thread 13 name: com.squareup.SocketRocket.NetworkThread
Thread 13:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 Foundation 0x00000001826c16e4 -[NSRunLoop+ 50916 (NSRunLoop) runMode:beforeDate:] + 304
6 DTimmmr 0x000000010534bba8 -[_SRRunLoopThread main] + 252
7 Foundation 0x00000001827c2860 __NSThread__start__ + 996
8 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
9 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
10 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 14 name: com.apple.NSURLConnectionLoader
Thread 14:
0 libsystem_kernel.dylib 0x00000001818c8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001818c8a3c mach_msg + 72
2 CoreFoundation 0x0000000181d79c74 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000181d77840 __CFRunLoopRun + 1424
4 CoreFoundation 0x0000000181c97fb8 CFRunLoopRunSpecific + 436
5 CFNetwork 0x0000000182402264 +[NSURLConnection+ 717412 (Loader) _resourceLoadLoop:] + 404
6 Foundation 0x00000001827c2860 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x00000001819fc31c _pthread_body + 308
8 libsystem_pthread.dylib 0x00000001819fc1e8 _pthread_body + 0
9 libsystem_pthread.dylib 0x00000001819fac28 thread_start + 4
Thread 15 name: 7617336192 Dispatch queue: cocoa.lumberjack
Thread 15:
0 libsystem_kernel.dylib 0x00000001818c8c00 semaphore_wait_trap + 8
1 libdispatch.dylib 0x00000001817573d4 _dispatch_sema4_wait$VARIANT$mp + 24
2 libdispatch.dylib 0x0000000181758328 _dispatch_group_wait_slow + 196
3 DTimmmr 0x0000000104a86840 -[DDLog lt_log:] + 8120384 (DDLog.m:844)
4 DTimmmr 0x0000000104a84dd0 __40-[DDLog queueLogMessage:asynchronously:]_block_invoke + 8113616 (DDLog.m:362)
5 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
6 libdispatch.dylib 0x000000018175dae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7 DTimmmr 0x0000000104a84d74 -[DDLog queueLogMessage:asynchronously:] + 8113524 (DDLog.m:370)
8 DTimmmr 0x0000000104a85438 -[DDLog log:message:level:flag:context:file:function:line:tag:] + 8115256 (DDLog.m:510)
9 DTimmmr 0x0000000104a852d4 +[DDLog log:message:level:flag:context:file:function:line:tag:] + 8114900 (DDLog.m:0)
10 DTimmmr 0x0000000104a84f1c +[DDLog log:level:flag:context:file:function:line:tag:format:] + 8113948 (DDLog.m:403)
11 DTimmmr 0x00000001045de72c +[FSPLogger logAsync:level:flag:context:tag:function:format:] + 3237676 (FSPLogger.m:89)
12 DTimmmr 0x00000001047f0ebc -[KandySDKLogger logWithLevel:andLogString:] + 5410492 (KandySDKLogger.m:37)
13 DTimmmr 0x0000000104da4724 -[KandyLoggerMediator logWithDate:andThreadName:andLevel:andFileName:andLine:andMethodName:andLogString:] + 508
14 DTimmmr 0x0000000104dc9af4 -[KandyBaseWebRequestOperation connection:didReceiveResponse:] + 380
15 CFNetwork 0x00000001825a9d48 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 60
16 CFNetwork 0x00000001825a9cec -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 204
17 CFNetwork 0x00000001825a9e60 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56
18 CFNetwork 0x0000000182564f60 _NSURLConnectionDidReceiveResponse+ 2170720 (_CFURLConnection*, _CFURLResponse*, void const*) + 84
19 CFNetwork 0x00000001824b402c invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse+ 1445932 (_CFURLResponse*) + 108
20 CFNetwork 0x00000001824af9d0 invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void + 1427920 (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108
21 libdispatch.dylib 0x0000000181755048 _dispatch_client_callout + 16
22 libdispatch.dylib 0x000000018175c6c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
23 CFNetwork 0x0000000182581f94 RunloopBlockContext::_invoke_block+ 2289556 (void const*, void*) + 36
24 CoreFoundation 0x0000000181c97900 CFArrayApplyFunction + 80
25 CFNetwork 0x0000000182581e58 RunloopBlockContext::perform+ 2289240 () + 128
26 CFNetwork 0x00000001825831d8 MultiplexerSource::perform+ 2294232 () + 312
27 CFNetwork 0x0000000182582f38 MultiplexerSource::_perform+ 2293560 (void*) + 60
28 CoreFoundation 0x0000000181d7a2e8
We found out that, in ios11 apple reduces the time that is needed to start the application while the app is in background(In our case it was 2.9 seconds), so when you go beyond it, app is automaticaly killed by IOS.
So we find the solution as minimizing the loading times (such as minimizing the splash screens etc..) and also removing the codes which is not neccesarily need to work on background. And we made our app to launch at 1.8 seconds than crash problem is resolved
I have used Crashlytics to catch errors in my application. Sometimes app is crashing and Crashlytics says that the error is in following code block.I have declared all variables in .h file.
-(id)init
{
if ( self = [super init] ) {
_currentTemperature=#"";
_currentHumidity=#"";
_currentWindSpeed=#"";
_currentStatus=#"";
self.weeklyMinTemperature=[[NSMutableArray alloc]init];
self.weeklyMaxTemperature=[[NSMutableArray alloc]init];
self.weeklyHumidity=[[NSMutableArray alloc]init];
self.hourlySummary=[[NSMutableArray alloc]init];
}
return self;
}
The error log is like following.
EXC_BAD_ACCESS_KERN_INVALID ADDRESS
#6. Crashed: com.apple.UNSNotificationSchedulerConnection
0 libobjc.A.dylib 0x182ae1b90 objc_msgSend + 16
1 Foundation 0x183d517a8 -[NSXPCEncoder _encodeObject:] + 484
2 UIKit 0x188c8b1ec -[UIConcreteLocalNotification encodeWithCoder:] + 84
3 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
4 Foundation 0x183dbad48 -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 264
5 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
6 Foundation 0x183d51d58 encodeInvocationArguments + 320
7 Foundation 0x183d51a18 -[NSXPCEncoder encodeInvocation:] + 368
8 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
9 Foundation 0x183f27d64 -[NSXPCConnection _sendInvocation:withProxy:remoteInterface:withErrorHandler:timeout:userInfo:] + 2328
10 CoreFoundation 0x18346ea1c ___forwarding___ + 408
11 CoreFoundation 0x18336cc5c _CF_forwarding_prep_0 + 92
12 libdispatch.dylib 0x182eb54bc _dispatch_call_block_and_release + 24
13 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
14 libdispatch.dylib 0x182ec14c0 _dispatch_queue_drain + 864
15 libdispatch.dylib 0x182eb8f80 _dispatch_queue_invoke + 464
16 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
17 libdispatch.dylib 0x182ec3914 _dispatch_root_queue_drain + 2140
18 libdispatch.dylib 0x182ec30b0 _dispatch_worker_thread3 + 112
19 libsystem_pthread.dylib 0x1830cd470 _pthread_wqthread + 1092
20 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
--
#0. com.apple.main-thread
0 libsystem_kernel.dylib 0x182febea8 read + 8
1 Foundation 0x183d73f0c _NSReadFromFileDescriptorWithProgress + 228
2 Foundation 0x183d73cec _NSReadBytesFromFileWithExtendedAttributes + 676
3 Foundation 0x183d739f8 -[NSData(NSData) initWithContentsOfFile:] + 80
4 GeoServices 0x189e8ec2c -[GEOResourceManifestManager _loadActiveTileGroupIfNecessary:] + 240
5 GeoServices 0x189d2f3e8 GEOURLWorldDefaultURLStringWithSource + 164
6 GeoServices 0x189d43658 _GEOURLStringWithSource + 56
7 GeoServices 0x189e0d824 +[GEOLocationShifter isLocationShiftRequiredForCoordinate:] + 72
8 GeoServices 0x189e7c970 -[_GEOReverseGeocodeRequestTicket submitWithHandler:networkActivity:] + 168
9 CoreLocation 0x18a1f3eb4 (null) + 32576
10 libdispatch.dylib 0x182eb54bc _dispatch_call_block_and_release + 24
11 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
12 libdispatch.dylib 0x182ebab84 _dispatch_main_queue_callback_4CF + 1844
13 CoreFoundation 0x183420d50 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14 CoreFoundation 0x18341ebb8 __CFRunLoopRun + 1628
15 CoreFoundation 0x183348c50 CFRunLoopRunSpecific + 384
16 GraphicsServices 0x184c30088 GSEventRunModal + 180
17 UIKit 0x188632088 UIApplicationMain + 204
18 AgileblazeWeather 0x100053b78 main (main.m:14)
19 libdispatch.dylib 0x182ee68b8 (Missing)
#1. com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x1830054d8 kevent_qos + 8
1 libdispatch.dylib 0x182ec87d8 _dispatch_mgr_invoke + 232
2 libdispatch.dylib 0x182eb7648 _dispatch_source_invoke + 50
#2. Thread
0 libsystem_kernel.dylib 0x183004b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1830cd530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#3. com.apple.CoreLocation.ConnectionClient.0x1446aa130.events
0 libsystem_kernel.dylib 0x182fe902c semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x182ec6394 _dispatch_semaphore_wait_slow + 160
2 CoreLocation 0x18a1bad4c (null) + 628
3 CoreLocation 0x18a1bf804 (null) + 1176
4 CoreLocation 0x18a1fac44 (null) + 60624
5 CoreLocation 0x18a1f8898 (null) + 51492
6 CoreLocation 0x18a1f87cc (null) + 51288
7 CoreLocation 0x18a1f9a18 (null) + 55972
8 libxpc.dylib 0x183100f68 _xpc_connection_call_event_handler + 68
9 libxpc.dylib 0x1830fed10 _xpc_connection_mach_event + 2132
10 libdispatch.dylib 0x182eb5578 _dispatch_client_callout4 + 16
11 libdispatch.dylib 0x182eb9864 _dispatch_mach_msg_invoke + 656
12 libdispatch.dylib 0x182ec1694 _dispatch_queue_drain + 1332
13 libdispatch.dylib 0x182eb8978 _dispatch_mach_invoke + 600
14 libdispatch.dylib 0x182ec1694 _dispatch_queue_drain + 1332
15 libdispatch.dylib 0x182eb8f80 _dispatch_queue_invoke + 464
16 libdispatch.dylib 0x182ec1694 _dispatch_queue_drain + 1332
17 libdispatch.dylib 0x182eb8f80 _dispatch_queue_invoke + 464
18 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
19 libdispatch.dylib 0x182ec3914 _dispatch_root_queue_drain + 2140
20 libdispatch.dylib 0x182ec30b0 _dispatch_worker_thread3 + 112
21 libsystem_pthread.dylib 0x1830cd470 _pthread_wqthread + 1092
22 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#4. com.apple.NSXPCConnection.m-user.com.apple.usernotification.notificationscheduler
0 libsystem_kernel.dylib 0x182fe8fd8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fe8e54 mach_msg + 72
2 libxpc.dylib 0x18311314c xpc_pipe_routine + 256
3 libxpc.dylib 0x183105f18 _xpc_interface_routine + 200
4 libxpc.dylib 0x1831062f0 _xpc_look_up_endpoint + 224
5 libxpc.dylib 0x1830ffc60 _xpc_connection_bootstrap_look_up_slow + 212
6 libxpc.dylib 0x1830ff958 _xpc_connection_init + 536
7 libxpc.dylib 0x1830ff730 _xpc_connection_resume_init + 20
8 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
9 libdispatch.dylib 0x182ec14c0 _dispatch_queue_drain + 864
10 libdispatch.dylib 0x182eb8f80 _dispatch_queue_invoke + 464
11 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
12 libdispatch.dylib 0x182ec3914 _dispatch_root_queue_drain + 2140
13 libdispatch.dylib 0x182ec30b0 _dispatch_worker_thread3 + 112
14 libsystem_pthread.dylib 0x1830cd470 _pthread_wqthread + 1092
15 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#5. Thread
0 libsystem_kernel.dylib 0x183004b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1830cd530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#6. Crashed: com.apple.UNSNotificationSchedulerConnection
0 libobjc.A.dylib 0x182ae1b90 objc_msgSend + 16
1 Foundation 0x183d517a8 -[NSXPCEncoder _encodeObject:] + 484
2 UIKit 0x188c8b1ec -[UIConcreteLocalNotification encodeWithCoder:] + 84
3 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
4 Foundation 0x183dbad48 -[NSXPCEncoder _encodeArrayOfObjects:forKey:] + 264
5 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
6 Foundation 0x183d51d58 encodeInvocationArguments + 320
7 Foundation 0x183d51a18 -[NSXPCEncoder encodeInvocation:] + 368
8 Foundation 0x183d51870 -[NSXPCEncoder _encodeObject:] + 684
9 Foundation 0x183f27d64 -[NSXPCConnection _sendInvocation:withProxy:remoteInterface:withErrorHandler:timeout:userInfo:] + 2328
10 CoreFoundation 0x18346ea1c ___forwarding___ + 408
11 CoreFoundation 0x18336cc5c _CF_forwarding_prep_0 + 92
12 libdispatch.dylib 0x182eb54bc _dispatch_call_block_and_release + 24
13 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
14 libdispatch.dylib 0x182ec14c0 _dispatch_queue_drain + 864
15 libdispatch.dylib 0x182eb8f80 _dispatch_queue_invoke + 464
16 libdispatch.dylib 0x182eb547c _dispatch_client_callout + 16
17 libdispatch.dylib 0x182ec3914 _dispatch_root_queue_drain + 2140
18 libdispatch.dylib 0x182ec30b0 _dispatch_worker_thread3 + 112
19 libsystem_pthread.dylib 0x1830cd470 _pthread_wqthread + 1092
20 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#7. com.twitter.crashlytics.ios.MachExceptionServer
0 AgileblazeWeather 0x10006c74c CLSProcessRecordAllThreads + 4295460684
1 AgileblazeWeather 0x10006c74c CLSProcessRecordAllThreads + 4295460684
2 AgileblazeWeather 0x10006cb6c CLSProcessRecordAllThreads + 4295461740
3 AgileblazeWeather 0x10005d82c CLSHandler + 4295399468
4 AgileblazeWeather 0x1000589b0 CLSMachExceptionServer + 4295379376
5 libsystem_pthread.dylib 0x1830cfb28 _pthread_body + 156
6 libsystem_pthread.dylib 0x1830cfa8c _pthread_body + 154
7 libsystem_pthread.dylib 0x1830cd028 thread_start + 4
#8. com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x182fe8fd8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x182fe8e54 mach_msg + 72
2 CoreFoundation 0x183420c60 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x18341e964 __CFRunLoopRun + 1032
4 CoreFoundation 0x183348c50 CFRunLoopRunSpecific + 384
5 CFNetwork 0x183ac9bcc +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
6 Foundation 0x183e3fe4c __NSThread__start__ + 1000
7 libsystem_pthread.dylib 0x1830cfb28 _pthread_body + 156
8 libsystem_pthread.dylib 0x1830cfa8c _pthread_body + 154
9 libsystem_pthread.dylib 0x1830cd028 thread_start + 4
#9. Thread
0 libsystem_kernel.dylib 0x183004b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1830cd530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#10. Thread
0 libsystem_kernel.dylib 0x183004b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1830cd530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#11. Thread
0 libsystem_kernel.dylib 0x183004b48 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1830cd530 _pthread_wqthread + 1284
2 libsystem_pthread.dylib 0x1830cd020 start_wqthread + 4
#12. com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x183004344 __select + 8
1 CoreFoundation 0x1834271c8 __CFSocketManager + 648
2 libsystem_pthread.dylib 0x1830cfb28 _pthread_body + 156
3 libsystem_pthread.dylib 0x1830cfa8c _pthread_body + 154
4 libsystem_pthread.dylib 0x1830cd028 thread_start + 4
What is the reason for this type of crash?Is there any mistake in my code block?