Crash on [UITextField inputAssistantItem] + 68

I have a crash on 19 [UITextField inputAssistantItem] + 68

It is running on a Simulator, is this related?

Details:

========= code in app ================================

   numberTextField = CursorInCenterTextField()
        numberTextField.listener = self
        numberTextField.delegate = self
        numberTextField.textAlignment = .left
        numberTextField.adjustsFontSizeToFitWidth = true
        numberTextField.isUserInteractionEnabled = true
        numberTextField.inputView = UIView()
        numberTextField.inputAssistantItem.leadingBarButtonGroups = []
        numberTextField.inputAssistantItem.trailingBarButtonGroups = []
        numberTextField.font = UIFont.systemFont(ofSize: 24.0, weight: .medium)
        numberTextField.autocorrectionType = .no
        numberTextField.returnKeyType = .search

========= crash stack from ips file ========================

Incident Identifier: 50AF117D-546E-409E-8915-6E4607C83BC0
CrashReporter Key:   4AB5D894-3E17-F998-4B64-F931D05DC65D
Hardware Model:      Macmini9,1
Process:             Glip [47003]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/83049BCF-16F7-481C-BE83-58727242A065/data/Containers/Bundle/Application/82E219BC-96B5-4A0F-AB20-D068A88C792F/Glip.app/Glip
Identifier:          com.glip.mobile.rc
Version:             25.1.10 (132)
Code Type:           X86-64 (Native(?))
Role:                Foreground
Parent Process:      launchd_sim [38628]
Coalition:           com.apple.CoreSimulator.SimDevice.83049BCF-16F7-481C-BE83-58727242A065 [1342]

Date/Time:           2024-12-04 22:47:10.4249 +0800
Launch Time:         2024-12-04 22:47:02.4577 +0800
OS Version:          macOS 14.5 (23F79)
Release Type:        User
Baseband Version:    None
Report Version:      104(?)
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype:  KERN_INVALID_ADDRESS at 0x00000001b3531d10 
Exception Codes: 0x0000000000000001, 0x00000001b3531d10
Exception Note:  EXC_CORPSE_NOTIFY(?)

VM Region Info: 0x1b3531d10 is not in any region.  Bytes after previous region: 3427601  Bytes before following region: 176880
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      Rosetta Generic             1b31ec000-1b31ed000    [    4K] rw-/rwx SM=PRV  
--->  GAP OF 0x370000 BYTES
      Rosetta Generic             1b355d000-1b355e000    [    4K] rw-/rwx SM=PRV  

Termination Reason: SIGNAL;[11] Segmentation fault: 11
Terminating Process: exc handler [47003] 

Triggered by Thread:  0

Kernel Triage:
None

Thread 0 name:  com.apple.main-thread
Thread 0 Crashed:
0   None                                    0x11e1e0144 0x0 + 4800250180
1   CoreUI                                  0x14fa08817 -[CUIStructuredThemeStore renditionWithKey:usingKeySignature:] + 406
2   CoreUI                                  0x14fa3e8ac -[CUICatalog _storageRefForRendition:representsODRContent:] + 94
3   CoreUI                                  0x14fa3b244 -[CUICatalog namedVectorGlyphWithName:scaleFactor:deviceIdiom:layoutDirection:glyphContinuousSize:glyphContinuousWeight:glyphPointSize:appearanceName:locale:] + 1909
4   CoreUI                                  0x14fa3b3a5 -[CUICatalog namedVectorGlyphWithName:scaleFactor:deviceIdiom:layoutDirection:glyphSize:glyphWeight:glyphPointSize:appearanceName:locale:] + 74
5   UIKitCore                               0x167c4f99c __78-[_UIAssetManager imageNamed:configuration:cachingOptions:attachCatalogImage:]_block_invoke_2 + 201
6   UIKitCore                               0x167c51fce __88-[_UIAssetManager _performLookUpObjectForTraitCollection:outNamedLookup:objectAccessor:]_block_invoke + 79
7   UIKitCore                               0x16713340e -[UITraitCollection _enumerateThemeAppearanceNamesForLookup:] + 215
8   UIKitCore                               0x167c51f3d -[_UIAssetManager _performLookUpObjectForTraitCollection:outNamedLookup:objectAccessor:] + 172
9   UIKitCore                               0x167c520c0 -[_UIAssetManager _lookUpObjectForTraitCollection:objectAccessor:] + 40
10  UIKitCore                               0x167c4f709 __78-[_UIAssetManager imageNamed:configuration:cachingOptions:attachCatalogImage:]_block_invoke + 849
11  UIKitCore                               0x167c4f137 -[_UIAssetManager imageNamed:configuration:cachingOptions:attachCatalogImage:] + 291
12  UIKitCore                               0x167c5001d -[_UIAssetManager imageNamed:configuration:] + 224
13  UIKitCore                               0x1670c1b87 +[UIImage _systemImageNamed:withConfiguration:allowPrivate:] + 297
14  UIKitCore                               0x167ae8cc0 +[UIAssistantBarButtonItemProvider configuredSymbolImageWithName:size:keyboardLanguageCode:] + 585
15  UIKitCore                               0x167ae747e +[UIAssistantBarButtonItemProvider barButtonItemForAssistantItemStyle:target:forcePlainButton:] + 2850
16  UIKitCore                               0x167ae90f1 +[UIAssistantBarButtonItemProvider defaultSystemLeadingBarButtonGroupsForItem:] + 206
17  UIKitCore                               0x167ae9935 +[UIAssistantBarButtonItemProvider systemDefaultAssistantItem] + 55
18  UIKitCore                               0x167719194 -[UIResponder(UIResponderInputViewAdditions) inputAssistantItem] + 67
19  UIKitCore                               0x167b67898 -[UITextField inputAssistantItem] + 68
20  Glip                                    0x105915dbc BaseDialPadViewController.setupTopContainerViewConstraintAndSubViews() + 780
21  Glip                                    0x105917869 BaseDialPadViewController.setupContentViewForM1X() + 2681
22  Glip                                    0x105915781 BaseDialPadViewController.setupUI() + 193
........
  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x74) frame #0: 0x000000018ac8fe48 UIKitCore`_UIKitCoreGlyphsManager + 128
    • frame #1: 0x000000018ac8fb0c UIKitCore+[UIImage _systemImageNamed:withConfiguration:allowPrivate:] + 232 frame #2: 0x000000018adaa3fc UIKitCore-[UISystemKeyboardDockController configuredGlyphWithName:] + 256 frame #3: 0x000000018ada8024 UIKitCore-[UISystemKeyboardDockController loadView] + 172 frame #4: 0x000000018aaeca08 UIKitCore-[UIViewController loadViewIfRequired] + 156 frame #5: 0x000000018aaec94c UIKitCore-[UIViewController view] + 24 frame #6: 0x000000018ada8268 UIKitCore-[UIInputWindowControllerHostingItem updateKeyboardDockViewVisibility] + 72 frame #7: 0x0000000188831b14 CoreFoundation__NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24 frame #8: 0x000000018889b660 CoreFoundation-[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 92 frame #9: 0x000000018ad5d970 UIKitCore-[UIInputWindowController updateKeyboardDockViewVisibility] + 52 frame #10: 0x000000018885e78c CoreFoundationCFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 148 frame #11: 0x000000018885e6a8 CoreFoundation___CFXRegistrationPost_block_invoke + 88 frame #12: 0x000000018885e5f0 CoreFoundation_CFXRegistrationPost + 440 frame #13: 0x000000018885cbb8 CoreFoundation_CFXNotificationPost + 728 frame #14: 0x00000001876ea254 Foundation-[NSNotificationCenter postNotificationName:object:userInfo:] + 92 frame #15: 0x000000018aec8854 UIKitCore-[UIKeyboardLayoutStar mergeKeysIfNeeded] + 64 frame #16: 0x000000018af9c404 UIKitCore-[UIKeyboardLayoutStar setKeyplaneName:] + 5368 frame #17: 0x000000018afe32d4 UIKitCore-[UIKeyboardLayoutStar setToInitialKeyplane] + 80 frame #18: 0x000000018afe2fd4 UIKitCore-[UIKeyboardLayoutStar showKeyboardWithInputMode:renderConfig:inputTraits:screenTraits:splitTraits:reload:] + 660 frame #19: 0x000000018afe2958 UIKitCore-[UIKeyboardImpl finishLayoutChangeWithArguments:] + 780 frame #20: 0x000000018afe1bbc UIKitCore-[UIKeyboardImpl updateLayout] + 1528 frame #21: 0x000000018af42df8 UIKitCore-[UIKeyboardImpl _setupDelegate:delegateSame:hardwareKeyboardStateChanged:endingInputSessionIdentifier:force:delayEndInputSession:] + 2312 frame #22: 0x000000018af61c28 UIKitCore-[UIKeyboardImpl setDelegate:force:delayEndInputSession:] + 712 frame #23: 0x000000018ad53d80 UIKitCore-[UIKeyboardSceneDelegate _reloadInputViewsForKeyWindowSceneResponder:force:fromBecomeFirstResponder:] + 2916 frame #24: 0x000000018adb4e08 UIKitCore-[UIKeyboardSceneDelegate _reloadInputViewsForResponder:force:fromBecomeFirstResponder:] + 88 frame #25: 0x000000018adf43dc UIKitCore-[UIResponder(UIResponderInputViewAdditions) _reloadInputViewsFromFirstResponder:] + 88 frame #26: 0x000000018adf374c UIKitCore-[UIResponder becomeFirstResponder] + 628 frame #27: 0x000000018ad95fb0 UIKitCore-[UIView(Hierarchy) becomeFirstResponder] + 120 frame #28: 0x0000000107b95964 Flutter-[FlutterTextInputPlugin handleMethodCall:result:] + 200 frame #29: 0x0000000107b707d8 Flutter__47-[FlutterEngine maybeSetupPlatformViewChannels]_block_invoke_3 + 100 frame #30: 0x000000010802eefc Flutter__45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 164 frame #31: 0x0000000107bb8628 Flutterinvocation function for block in flutter::PlatformMessageHandlerIos::HandlePlatformMessage(std::_fl::unique_ptr<flutter::PlatformMessage, std::_fl::default_delete<flutter::PlatformMessage>>) + 116 frame #32: 0x0000000101af4b98 libdispatch.dylib_dispatch_call_block_and_release + 32 frame #33: 0x0000000101af67bc libdispatch.dylib_dispatch_client_callout + 20 frame #34: 0x0000000101b06d58 libdispatch.dylib_dispatch_main_queue_drain + 1084 frame #35: 0x0000000101b0690c libdispatch.dylib_dispatch_main_queue_callback_4CF + 44 frame #36: 0x0000000188863710 CoreFoundationCFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 frame #37: 0x0000000188860914 CoreFoundation__CFRunLoopRun + 1996 frame #38: 0x000000018885fcd8 CoreFoundationCFRunLoopRunSpecific + 608 frame #39: 0x00000001cd2b11a8 GraphicsServicesGSEventRunModal + 164 frame #40: 0x000000018ae99ae8 UIKitCore-[UIApplication _run] + 888 frame #41: 0x000000018af4dd98 UIKitCoreUIApplicationMain + 340 frame #42: 0x000000018b0c7504 UIKitCore___lldb_unnamed_symbol261261 + 104 frame #43: 0x000000010c467db4 Runner.debug.dylibstatic UIApplicationDelegate.main() at <compiler-generated>:0 frame #44: 0x000000010c467d2c Runner.debug.dylibstatic AppDelegate.$main() at <compiler-generated>:0 frame #45: 0x000000010c467e30 Runner.debug.dylibmain at AppDelegate.swift:6:13 frame #46: 0x00000001ac037154 dyldstart + 2356
Crash on [UITextField inputAssistantItem] &#43; 68
 
 
Q