I labored on a iOS undertaking. 4 months in the past, this iOS app all the time crash instantly. I’ve Firebase Crashlytic to observe however I can’t discover which a part of code has concern. And in my system, I can’t reproduce the crash as nicely. I additionally do not know how one can learn the crash report, does anyone have some tutorials to learn that? I don’t know what I have to study to learn it.
Right here is the exception:
Deadly Exception: NSInternalInconsistencyException
Modifications to the format engine should not be carried out from a background thread after it has been accessed from the principle thread.
I do know that every one of UI replace must be on most important thread and I verify with my code many instances. I do not see any warning within the terminal. Every part appears good.
Right here is the entire report in Firebase:
Deadly Exception: NSInternalInconsistencyException
0 CoreFoundation 0xecb28 __exceptionPreprocess
1 libobjc.A.dylib 0x2af78 objc_exception_throw
2 CoreAutoLayout 0x565c NSISSparseVectorAddTermWithPlaceValueCoefficientStartingIndex
3 CoreAutoLayout 0xba70 -[NSISEngine _optimizeWithoutRebuilding]
4 CoreAutoLayout 0xb784 -[NSISEngine optimize]
5 CoreAutoLayout 0xb510 -[NSISEngine performPendingChangeNotifications]
6 UIKitCore 0x333c8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
7 UIKitCore 0x32adc -[_UILabelLayer layoutSublayers]
8 QuartzCore 0x66e30 CA::Layer::layout_if_needed(CA::Transaction*)
9 QuartzCore 0x669b4 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
10 QuartzCore 0x6cbb4 CA::Context::commit_transaction(CA::Transaction*, double, double*)
11 QuartzCore 0x661bc CA::Transaction::commit()
12 QuartzCore 0x1faee4 CA::Transaction::release_thread(void*)
13 libsystem_pthread.dylib 0xab8c _pthread_tsd_cleanup
14 libsystem_pthread.dylib 0x4f84 _pthread_exit
15 libsystem_pthread.dylib 0x6854 _pthread_wqthread_legacy_worker_wrap
16 libsystem_pthread.dylib 0x1fa8 _pthread_wqthread
17 libsystem_pthread.dylib 0x1fc0 start_wqthread
com.apple.main-thread
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 GraphicsServices 0x34e0 GSEventRunModal + 164
8 UIKitCore 0x22aedc -[UIApplication _run] + 888
9 UIKitCore 0x22a518 UIApplicationMain + 340
10 CWRU HeartBit 0x370f4 most important + 15 (AppDelegate.swift:15)
11 ??? 0x1bef12d84 (Lacking)
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 Basis 0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Basis 0x554e8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x18dac8 -[UIEventFetcher threadMain] + 420
10 Basis 0x9ca9c __NSThread__start__ + 732
11 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib 0x1fcc thread_start + 8
com.google.firebase.crashlytics.MachExceptionServer
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 FirebaseCrashlytics 0x1b2b8 FIRCLSMachExceptionServer + 104
5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
6 libsystem_pthread.dylib 0x1fcc thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 CFNetwork 0x25ac48 estimatedPropertyListSize + 38228
8 Basis 0x9ca9c __NSThread__start__ + 732
9 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
10 libsystem_pthread.dylib 0x1fcc thread_start + 8
Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8
Crashed: com.google.firebase.crashlytics.ios.exception
0 FirebaseCrashlytics 0x217f8 FIRCLSProcessRecordAllThreads + 184
1 FirebaseCrashlytics 0x21bd8 FIRCLSProcessRecordAllThreads + 1176
2 FirebaseCrashlytics 0x18c7c FIRCLSHandler + 48
3 FirebaseCrashlytics 0x139a4 __FIRCLSExceptionRecord_block_invoke + 92
4 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
5 libdispatch.dylib 0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
6 FirebaseCrashlytics 0x129b0 FIRCLSExceptionRecord + 204
7 FirebaseCrashlytics 0x134c4 FIRCLSExceptionRecordNSException + 452
8 FirebaseCrashlytics 0x12608 FIRCLSTerminateHandler() + 404
9 libc++abi.dylib 0x14090 std::__terminate(void (*)()) + 16
10 libc++abi.dylib 0x172e4 __cxa_get_exception_ptr + 86
11 libc++abi.dylib 0x17228 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 306
12 libobjc.A.dylib 0x2b0e0 objc_exception_throw + 420
13 CoreAutoLayout 0x565c NSISSparseVectorAddTermWithPlaceValueCoefficientStartingIndex + 326
14 CoreAutoLayout 0xba70 -[NSISEngine _optimizeWithoutRebuilding] + 72
15 CoreAutoLayout 0xb784 -[NSISEngine optimize] + 96
16 CoreAutoLayout 0xb510 -[NSISEngine performPendingChangeNotifications] + 104
17 UIKitCore 0x333c8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2248
18 UIKitCore 0x32adc -[_UILabelLayer layoutSublayers] + 560
19 QuartzCore 0x66e30 CA::Layer::layout_if_needed(CA::Transaction*) + 504
20 QuartzCore 0x669b4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
21 QuartzCore 0x6cbb4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 464
22 QuartzCore 0x661bc CA::Transaction::commit() + 648
23 QuartzCore 0x1faee4 CA::Transaction::release_thread(void*) + 228
24 libsystem_pthread.dylib 0xab8c _pthread_tsd_cleanup + 620
25 libsystem_pthread.dylib 0x4f84 _pthread_exit + 84
26 libsystem_pthread.dylib 0x6854 _pthread_wqthread_legacy_worker_wrap + 62
27 libsystem_pthread.dylib 0x1fa8 _pthread_wqthread + 424
28 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8
Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8
The system verison is 13 professional max and iOS model is 17.3.1.
Does anyone have an concept why my app is instantly crashing? Thanks!