SIGBUS Crash with UIKeyboardImpl unmarkText:

Xcode12.5

These crashes mostly happened after app launch for several seconds on iOS14

Thread 0 Crashed:
0   libobjc.A.dylib                      0x00000001a2ab7978 objc_msgSend + 24
1   UIKitCore                            0x000000019113bea4 -[UIKeyboardImpl unmarkText:] + 200
2   UIKitCore                            0x0000000191141eec __59-[UIKeyboardImpl handleAcceptedCandidate:executionContext:]_block_invoke_2 + 432
3   UIKitCore                            0x0000000191174478 -[UIKeyboardTaskEntry execute:] + 184
4   UIKitCore                            0x0000000191172f6c -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 320
5   UIKitCore                            0x00000001911738d0 -[UIKeyboardTaskQueue waitUntilTaskIsFinished:] + 168
6   UIKitCore                            0x00000001911739e4 -[UIKeyboardTaskQueue performSingleTask:] + 152
7   UIKitCore                            0x000000019114e9c8 -[UIKeyboardImpl acceptCurrentCandidateForInput:] + 296
8   UIKitCore                            0x0000000190fa3a44 -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:generateFeedback:] + 176
9   UIKitCore                            0x0000000190fa396c -[UIKeyboardCandidateController candidateView:didAcceptCandidate:atIndexPath:inGridType:] + 96
10  TextInputUI                          0x0000000196979c2c -[TUICandidateView candidateGrid:didAcceptCandidate:atIndexPath:] + 204
11  TextInputUI                          0x0000000196992a58 -[TUICandidateGrid collectionView:didSelectItemAtIndexPath:] + 180
12  UIKitCore                            0x0000000190a96104 -[UICollectionView _selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:deselectPrevious:performCustomSelectionAction:] + 896
13  UIKitCore                            0x0000000190abfe7c -[UICollectionView touchesEnded:withEvent:] + 572
14  UIKitCore                            0x0000000191392200 forwardTouchMethod + 340
15  UIKitCore                            0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60
16  UIKitCore                            0x0000000191392200 forwardTouchMethod + 340
17  UIKitCore                            0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60
18  UIKitCore                            0x0000000191392200 forwardTouchMethod + 340
19  UIKitCore                            0x00000001913922fc -[UIResponder touchesEnded:withEvent:] + 60
20  UIKitCore                            0x00000001913a0c04 -[UIWindow _sendTouchesForEvent:] + 984
21  UIKitCore                            0x00000001913a256c -[UIWindow sendEvent:] + 3972
22  UIKitCore                            0x000000019137c190 -[UIApplication sendEvent:] + 708
23  UIKitCore                            0x0000000191403560 __dispatchPreprocessedEventFromEventQueue + 7356
24  UIKitCore                            0x00000001914064b8 __processEventQueue + 6456
25  UIKitCore                            0x00000001913fda3c __eventFetcherSourceCallback + 156
26  CoreFoundation                       0x000000018e9bf81c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
27  CoreFoundation                       0x000000018e9bf718 __CFRunLoopDoSource0 + 204
28  CoreFoundation                       0x000000018e9bea28 __CFRunLoopDoSources0 + 264
29  CoreFoundation                       0x000000018e9b8d20 __CFRunLoopRun + 820
30  CoreFoundation                       0x000000018e9b84bc CFRunLoopRunSpecific + 596
31  GraphicsServices                     0x00000001a543d820 GSEventRunModal + 160
32  UIKitCore                            0x000000019135c734 -[UIApplication _run] + 1068
33  UIKitCore                            0x0000000191361e10 UIApplicationMain + 164
34  sohuhy                               0x0000000103892b88 main (main.m:14)
35  libdyld.dylib                        0x000000018e67fe60 start + 0

My question is How to location this crash call stack in App Source Code?

These crashes mostly happened after app launch for several seconds on iOS14

Please post a full crash report. For advice on how to do that, see Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

full crash report please see

Is that an Apple crash report? It looks a bit weird.

Also, that was from iOS 14.0. Do you see this on later versions of iOS 14.x?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

yes, it also happens on later versions of iOS 14.x

Thanks for the Apple crash report. Unfortunately I wasn’t able to glean any extra info from that.

yes, it also happens on later versions of iOS 14.x

But not on iOS 15? Or is it too soon to tell?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

SIGBUS Crash with UIKeyboardImpl unmarkText:
 
 
Q