TLKit icon indicating copy to clipboard operation
TLKit copied to clipboard

UITextField+TLSelect、UITextView+TLSelect在iOS16设备会出现闪退。(debug模式下不崩溃)release模式也不崩溃,但是不用Xcode运行就会~,Xcode版本14.1.bugly里出现的设备均为iOS16以上。

Open Dongxi729 opened this issue 3 years ago • 0 comments

双击输入框(textfield、searchBar)双击就会闪退。 闪退信息如下:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7ff80004b8f5 objc_retain + 5 1 UIKitCore 0x10cfbd2c0 -[_UIContextMenuInteractionBasedTextContextInteraction _editMenuForCurrentSelectionWithSuggestedActions:isEditMenu:] + 245 2 UIKitCore 0x10cfbd167 -[_UIContextMenuInteractionBasedTextContextInteraction _querySelectionCommandsForConfiguration:suggestedActions:completionHandler:] + 566 3 UIKitCore 0x10cfbce1e -[_UIContextMenuInteractionBasedTextContextInteraction _editMenuInteraction:menuForConfiguration:suggestedActions:completionHandler:] + 126 4 UIKitCore 0x10d2486f5 -[UIEditMenuInteraction _prepareMenuAtLocation:configuration:completionHandler:] + 296 5 UIKitCore 0x10d246a63 -[UIEditMenuInteraction presentEditMenuWithConfiguration:] + 240 6 UIKitCore 0x10cfbd6b1 -[_UIContextMenuInteractionBasedTextContextInteraction presentSelectionCommandsWithConfiguration:] + 94 7 UIKitCore 0x10d0107b0 -[UITextSelectionView _showCommandsWithReplacements:isForContextMenu:forDictation:arrowDirection:] + 1517 8 UIKitCore 0x10d010157 __77-[UITextSelectionView _showCommandsWithReplacements:forDictation:afterDelay:]_block_invoke + 262 9 libdispatch.dylib 0x7ff80013ca3a _dispatch_client_callout + 8 10 libdispatch.dylib 0x7ff80013fe87 _dispatch_continuation_pop + 715 11 libdispatch.dylib 0x7ff80015534a _dispatch_source_invoke + 2046 12 libdispatch.dylib 0x7ff80014c1e9 _dispatch_main_queue_drain + 1015 13 libdispatch.dylib 0x7ff80014bde4 _dispatch_main_queue_callback_4CF + 31 14 CoreFoundation 0x7ff8003869f7 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 15 CoreFoundation 0x7ff8003813c6 __CFRunLoopRun + 2482 16 CoreFoundation 0x7ff800380637 CFRunLoopRunSpecific + 560 17 GraphicsServices 0x7ff809c0f28a GSEventRunModal + 139 18 UIKitCore 0x10cc85425 -[UIApplication _run] + 994 19 UIKitCore 0x10cc8a301 UIApplicationMain + 123 20 IOS16crashOnTextInputDemo 0x1058cc63e main + 110 21 dyld_sim 0x105b082bf start_sim + 10 22 dyld 0x11509352e start + 462

Thread 1: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 2: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 3: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 4:: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x7ff833ddf97a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x7ff833ddfce8 mach_msg + 56 2 CoreFoundation 0x7ff800386766 __CFRunLoopServiceMachPort + 145 3 CoreFoundation 0x7ff800380f6f __CFRunLoopRun + 1371 4 CoreFoundation 0x7ff800380637 CFRunLoopRunSpecific + 560 5 Foundation 0x7ff800c569fc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213 6 Foundation 0x7ff800c56c75 -[NSRunLoop(NSRunLoop) runUntilDate:] + 72 7 UIKitCore 0x10cd58e7e -[UIEventFetcher threadMain] + 535 8 Foundation 0x7ff800c80247 NSThread__start + 1009 9 libsystem_pthread.dylib 0x7ff833e3d4e1 _pthread_start + 125 10 libsystem_pthread.dylib 0x7ff833e38f6b thread_start + 15

Thread 5: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 6: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 7: 0 libsystem_pthread.dylib 0x7ff833e38f48 start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007ff835448e26 rcx: 0x000000011510e600 rdx: 0x000000000000011c rdi: 0x0000000000000001 rsi: 0x0000000000000000 rbp: 0x00007ff7ba632fe0 rsp: 0x00007ff7ba632f08 r8: 0x00007ff8666897c0 r9: 0x00000000000030f0 r10: 0x0000000000000155 r11: 0x00006000025c0000 r12: 0x00007f856781fc00 r13: 0x00007ff80002d6c0 r14: 0x00007f8566d0d0a0 r15: 0x00007ff80004b5b0 rip: 0x00007ff80004b8f5 rfl: 0x0000000000010202 cr2: 0x0000000000000001

Logical CPU: 6 Error Code: 0x00000004 (no mapping for user data read) Trap Number: 14

Dongxi729 avatar Nov 29 '22 02:11 Dongxi729