Post

Replies

Boosts

Views

Activity

Reply to UITextView Crashes on iOS 17 [NSInternalInconsistencyException attempt to create NSTextRange from nil location
I have a similar problem. 0 CoreFoundation 0xed5e0 __exceptionPreprocess 1 libobjc.A.dylib 0x2bc00 objc_exception_throw 2 Foundation 0x6bc398 _userInfoForFileAndLine 3 UIFoundation 0x19464 -[NSTextRange initWithLocation:endLocation:] 4 UIFoundation 0x29c78 __NSTextLayoutManagerRemoveTextLayoutFragmentsInTextRange 5 UIFoundation 0x75ad4 -[NSTextLayoutManager _invalidateLayoutForTextRange:hard:] 6 UIFoundation 0x764c0 -[NSTextLayoutManager processLayoutInvalidationForTextRange:synchronizing:] 7 CoreFoundation 0x35d94 NSARRAY_IS_CALLING_OUT_TO_A_BLOCK 8 CoreFoundation 0x35ac0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] 9 UIFoundation 0xa863c __54-[NSTextContentManager synchronizeTextLayoutManagers:]_block_invoke 10 CoreFoundation 0x35d94 NSARRAY_IS_CALLING_OUT_TO_A_BLOCK 11 CoreFoundation 0x35ac0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] 12 UIFoundation 0x19720 -[NSTextContentManager synchronizeTextLayoutManagers:] 13 UIFoundation 0x187a4 -[NSTextContentStorage synchronizeTextLayoutManagers:] 14 UIFoundation 0x11dcc -[NSTextStorage endEditing] 15 UIFoundation 0x11c20 -[NSTextStorage coordinateEditing:] 16 UIKitCore 0x10cf858 -[UITextInputController _insertText:fromKeyboard:] 17 UIKitCore 0x10d14f4 -[UITextInputController deleteBackward] 18 UIKitCore 0x10f2ea8 -[UITextView deleteBackward] 19 UIKitCore 0x933dc8 -[UIKBInputDelegateManager _deleteBackwardAndNotify:reinsertText:overrideOriginalContextBeforeInputWith:] 20 UIKitCore 0xc1c64c -[UIKeyboardImpl deleteBackwardAndNotifyAtEnd:deletionCount:reinsertTextInLoop:] 21 UIKitCore 0xc12364 -[UIKeyboardImpl performKeyboardOutput:checkingDelegate:forwardToRemoteInputSource:] 22 UIKitCore 0xc11aa8 -[UIKeyboardImpl performKeyboardOutput:forwardToRemoteInputSource:] 23 UIKitCore 0xc11a60 -[UIKeyboardImpl performKeyboardOutput:] 24 UIKitCore 0xc39bcc -[UIKeyboardImpl _performKeyboardOutput:respectingForwardingDelegate:] 25 UIKitCore 0xc100c8 __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke.1176 26 UIKitCore 0xbf50d8 -[UIKeyboardImpl performOperations:withTextInputSource:] 27 UIKitCore 0xc0fe6c __55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 28 UIKitCore 0x312464 -[UIKeyboardTaskEntry execute:] 29 UIKitCore 0x312348 -[UIKeyboardTaskQueue continueExecutionOnMainThread] 30 Foundation 0xf6064 __NSThreadPerformPerform 31 CoreFoundation 0x37acc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION 32 CoreFoundation 0x36d48 __CFRunLoopDoSource0 33 CoreFoundation 0x354fc __CFRunLoopDoSources0 34 CoreFoundation 0x34238 __CFRunLoopRun 35 CoreFoundation 0x33e18 CFRunLoopRunSpecific 36 GraphicsServices 0x35ec GSEventRunModal 37 UIKitCore 0x22f2fc -[UIApplication _run] 38 UIKitCore 0x22e938 UIApplicationMain
Nov ’23