Hi,
I've seen a couple of crashes in iOS 15 that I've never seen before.
From what I can tell it seems to be caused when a user pastes text from one application to another.
Could somebody help me verify that:
- The crash is caused by pasting from another app.
- The crash is caused by an iOS defect and not a defect in my app.
code-blockFatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x91cac __exceptionPreprocess
1 libobjc.A.dylib 0x14758 objc_exception_throw
2 Foundation 0x12361c _userInfoForFileAndLine
3 UIKitCore 0x10b6ffc -[_UITextKitTextPosition compare:]
4 UIKitCore 0x2065c -[UITextInputController comparePosition:toPosition:]
5 UIKitCore 0x10c1b5c -[UITextView comparePosition:toPosition:]
6 UIKitCore 0x108de4c -[UITextPasteController _clampRange:]
7 UIKitCore 0x108e5cc __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke
8 UIKitCore 0x108e7c8 __87-[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]_block_invoke.174
9 UIKitCore 0x10b35e4 -[UITextInputController _pasteAttributedString:toRange:completion:]
10 UIKitCore 0x108e518 -[UITextPasteController _performPasteOfAttributedString:toRange:forSession:completion:]
11 UIKitCore 0x108d820 __49-[UITextPasteController _executePasteForSession:]_block_invoke
12 libdispatch.dylib 0x632ec _dispatch_call_block_and_release
13 libdispatch.dylib 0x642f0 _dispatch_client_callout
14 libdispatch.dylib 0x109a0 _dispatch_main_queue_callback_4CF$VARIANT$mp
15 CoreFoundation 0x4d7f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation 0xb0f8 __CFRunLoopRun
17 CoreFoundation 0x1dd8c CFRunLoopRunSpecific
18 GraphicsServices 0x19a0 GSEventRunModal
19 UIKitCore 0x4ee018 -[UIApplication _run]
20 UIKitCore 0x28229c UIApplicationMain
21 TOFS_AppStore 0x71b0 main + 18 (AppDelegate.swift:18)
22 ??? 0x1030f0190 (Missing)
The crash is caused by an iOS defect and not a defect in my app. > Does your code contain any code to do with copy & paste programmatically?
No. There's absolutely no code in my application to do with copying and pasting programmatically.
Does your project has any third party libraries? If so, have you checked all of them are free from copy & paste code?