UICalloutBar _clearResponderTarget crash

Hello, I'm getting crash reports like this for a few months, but still can't understand the reason of that.

It randomly happens on text input (in UITextView), when replacements or copy/paste menu appears..


Also, I can't understand why is the last call adressed to [UICollectionViewCell _handleMenuGesture:], because like not a single cell is not subscribed to this notifications..


Can someone help me understand this crash report?


Incident Identifier: 6FE93BB2-A18D-4EC4-B8DE-4D8A5C520B7E
Beta Identifier:     9DCCEA73-5F88-4F0C-B9F9-CEB22BBC5282
Hardware Model:      iPhone11,2
Process:             *** [3398]
Path:                /private/var/containers/Bundle/Application/F1550F8E-51C7-413C-A98A-0DF5866136E2/***.app/***
Identifier:          com.***
Version:             859 (1.0.7)
AppStoreTools:       11B48b
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.*** [997]




Date/Time:           2019-11-20 15:39:18.4465 +0300
Launch Time:         2019-11-20 09:46:43.8712 +0300
OS Version:          iPhone OS 13.1.3 (17A878)
Release Type:        User
Baseband Version:    2.01.08
Report Version:      104


Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
VM Region Info: 0x10 is not in any region.  Bytes before following region: 4378230768
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
---> 
      __TEXT                 0000000104f68000-0000000104fdc000 [  464K] r-x/r-x SM=COW  .../***


Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [3398]
Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   libobjc.A.dylib                0x000000018c5f4050 objc_msgSend + 16
1   UIKitCore                      0x00000001901e72f8 __43-[UICollectionViewCell _handleMenuGesture:]_block_invoke + 112 (UICollectionViewCell.m:791)
2   UIKitCore                      0x00000001905250b0 -[UICalloutBar _clearResponderTarget] + 84 (UICalloutBar.m:2925)
3   UIKitCore                      0x000000019052515c -[UICalloutBar setResponderTarget:completion:] + 108 (UICalloutBar.m:2935)
4   UIKitCore                      0x0000000190c08884 -[UITextSelectionView _showCommandsWithReplacements:isForContextMenu:forDictation:rectsToEvade:] + 1296 (UITextSelectionView.m:957)
5   UIKitCore                      0x0000000190c08338 __77-[UITextSelectionView _showCommandsWithReplacements:forDictation:afterDelay:]_block_invoke + 268 (UITextSelectionView.m:894)
6   libdispatch.dylib              0x000000018c58500c _dispatch_client_callout + 20 (object.m:495)
7   libdispatch.dylib              0x000000018c58778c _dispatch_continuation_pop + 408 (inline_internal.h:2487)
8   libdispatch.dylib              0x000000018c597f18 _dispatch_source_invoke2 + 892 (source.c:568)
9   libdispatch.dylib              0x000000018c5978c4 _dispatch_source_invoke + 428 (inline_internal.h:1854)
10  libdispatch.dylib              0x000000018c590bc8 _dispatch_main_queue_callback_4CF + 696 (inline_internal.h:2528)
11  CoreFoundation                0x000000018c858e20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 (CFRunLoop.c:1749)
12  CoreFoundation                0x000000018c853b7c __CFRunLoopRun + 1980 (CFRunLoop.c:3069)
13  CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
14  GraphicsServices              0x00000001969bd534 GSEventRunModal + 108 (GSEvent.c:2246)
15  UIKitCore                      0x00000001909737ac UIApplicationMain + 1940 (UIApplication.m:4753)
16  ***                            0x0000000104fdf4fc main + 88 (main.m:14)
17  libdyld.dylib                  0x000000018c6d2f30 start + 4


Thread 1 name:
Thread 1:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   CoreFoundation                0x000000018c858abc __CFRunLoopServiceMachPort + 220 (CFRunLoop.c:2575)
3   CoreFoundation                0x000000018c853954 __CFRunLoopRun + 1428 (CFRunLoop.c:2931)
4   CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
5   Foundation                    0x000000018cb98580 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374)
6   Foundation                    0x000000018cb98458 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:421)
7   UIKitCore                      0x0000000190a0e668 -[UIEventFetcher threadMain] + 156 (UIEventFetcher.m:637)
8   Foundation                    0x000000018cb971e4 -[NSThread main] + 40 (NSThread.m:760)
9   Foundation                    0x000000018ccd2a84 __NSThread__start__ + 852 (NSThread.m:724)
10  libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
11  libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 2 name:
Thread 2:
0   libsystem_kernel.dylib        0x000000018c6cbbcc write + 8
1   ***                           0x0000000105294df0 CLSSDKFileLog + 336
2   ***                           0x000000010528bfb4 CLSMachExceptionServer + 184
3   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
4   libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   CoreFoundation                0x000000018c858abc __CFRunLoopServiceMachPort + 220 (CFRunLoop.c:2575)
3   CoreFoundation                0x000000018c853954 __CFRunLoopRun + 1428 (CFRunLoop.c:2931)
4   CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
5   AVFAudio                      0x000000019967e1b4 GenericRunLoopThread::Entry(void*) + 160 (GenericRunLoopThread.h:91)
6   AVFAudio                      0x00000001996cf28c CAPThread::Entry(CAPThread*) + 208 (CAPThread.cpp:286)
7   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
8   libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   CoreFoundation                0x000000018c858abc __CFRunLoopServiceMachPort + 220 (CFRunLoop.c:2575)
3   CoreFoundation                0x000000018c853954 __CFRunLoopRun + 1428 (CFRunLoop.c:2931)
4   CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
5   Foundation                    0x000000018cb98580 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 (NSRunLoop.m:374)
6   ***                           0x000000010517735c +[GCDAsyncSocket cfstreamThread] + 360 (GCDAsyncSocket.m:7602)
7   Foundation                    0x000000018cb971e4 -[NSThread main] + 40 (NSThread.m:760)
8   Foundation                    0x000000018ccd2a84 __NSThread__start__ + 852 (NSThread.m:724)
9   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
10  libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   CoreFoundation                0x000000018c858abc __CFRunLoopServiceMachPort + 220 (CFRunLoop.c:2575)
3   CoreFoundation                0x000000018c853954 __CFRunLoopRun + 1428 (CFRunLoop.c:2931)
4   CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
5   CFNetwork                      0x000000018fb15bc8 -[__CoreSchedulingSetRunnable runForever] + 192 (CoreSchedulingSet.mm:1372)
6   Foundation                    0x000000018cb971e4 -[NSThread main] + 40 (NSThread.m:760)
7   Foundation                    0x000000018ccd2a84 __NSThread__start__ + 852 (NSThread.m:724)
8   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
9   libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib        0x000000018c6c9180 __select + 8
1   CoreFoundation                0x000000018c86690c __CFSocketManager + 628 (CFSocket.c:1321)
2   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
3   libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   CoreFoundation                0x000000018c858abc __CFRunLoopServiceMachPort + 220 (CFRunLoop.c:2575)
3   CoreFoundation                0x000000018c853954 __CFRunLoopRun + 1428 (CFRunLoop.c:2931)
4   CoreFoundation                0x000000018c853098 CFRunLoopRunSpecific + 480 (CFRunLoop.c:3192)
5   AudioToolbox                  0x0000000197bec9e8 GenericRunLoopThread::Entry(void*) + 160 (GenericRunLoopThread.h:91)
6   libAudioToolboxUtility.dylib  0x0000000197ca9828 CAPThread::Entry(CAPThread*) + 92 (CAPThread.cpp:318)
7   libsystem_pthread.dylib        0x000000018c5e8d5c _pthread_start + 128 (pthread.c:895)
8   libsystem_pthread.dylib        0x000000018c5f0c84 thread_start + 8


Thread 8:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 9:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib        0x000000018c6a6bc4 mach_msg_trap + 8
1   libsystem_kernel.dylib        0x000000018c6a5fe0 mach_msg + 76 (mach_msg.c:103)
2   libdispatch.dylib              0x000000018c59a510 _dispatch_mach_send_and_wait_for_reply + 556 (mach.c:830)
3   libdispatch.dylib              0x000000018c59a904 dispatch_mach_send_with_result_and_wait_for_reply + 56 (mach.c:2006)
4   libxpc.dylib                  0x000000018c4da724 xpc_connection_send_message_with_reply_sync + 240 (connection.c:829)
5   CoreFoundation                0x000000018c8044e0 __99-[CFPrefsPlistSource sendFullyPreparedMessage:toConnection:settingValues:forKeys:count:retryC... + 60 (CFPrefsPlistSource.m:933)
6   CoreFoundation                0x000000018c7b78d8 -[_CFXPreferences withConnectionForRole:performBlock:] + 56 (CFXPreferences.m:1324)
7   CoreFoundation                0x000000018c804478 -[CFPrefsPlistSource sendFullyPreparedMessage:toConnection:settingValues:forKeys:count:retryCount:] + 208 (CFPrefsPlistSource.m:962)
8   CoreFoundation                0x000000018c8047cc -[CFPrefsPlistSource sendMessageSettingValues:forKeys:count:] + 304 (CFPrefsPlistSource.m:994)
9   CoreFoundation                0x000000018c803568 -[CFPrefsPlistSource alreadylocked_setPrecopiedValues:forKeys:count:from:] + 912 (CFPrefsPlistSource.m:397)
10  CoreFoundation                0x000000018c90ae8c -[CFPrefsSource setValues:forKeys:count:copyValues:removeValuesForKeys:count:from:] + 408 (CFPrefsSource.m:771)
11  CoreFoundation                0x000000018c90b21c -[CFPrefsSource setValues:forKeys:count:copyValues:from:] + 40 (CFPrefsSource.m:793)
12  CoreFoundation                0x000000018c841184 -[CFPrefsSearchListSource alreadylocked_setPrecopiedValues:forKeys:count:from:] + 1036 (CFPrefsSearchListSource.m:738)
13  CoreFoundation                0x000000018c90ae8c -[CFPrefsSource setValues:forKeys:count:copyValues:removeValuesForKeys:count:from:] + 408 (CFPrefsSource.m:771)
14  CoreFoundation                0x000000018c90b21c -[CFPrefsSource setValues:forKeys:count:copyValues:from:] + 40 (CFPrefsSource.m:793)
15  CoreFoundation                0x000000018c7b3330 -[CFPrefsSource setValue:forKey:from:] + 68 (CFPrefsSource.m:799)
16  CoreFoundation                0x000000018c9138b0 __76-[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:]_block_invoke + 68 (CFXPreferences.m:799)
17  CoreFoundation                0x000000018c843ba0 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurat... + 400 (CFPrefsSearchListSource.m:1719)
18  CoreFoundation                0x000000018c8433ec normalizeQuintuplet + 364 (CFPrefsSearchListSource.m:68)
19  CoreFoundation                0x000000018c7afb48 -[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationUR... + 140 (CFPrefsSearchListSource.m:1591)
20  CoreFoundation                0x000000018c7b2d48 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 124 (CFXPreferences.m:795)
21  CoreFoundation                0x000000018c916d68 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136 (CFXPreferences.m:1847)
22  Foundation                    0x000000018cbd9f6c -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 68 (NSUserDefaults.m:226)
23  ***                           0x0000000104fc8320 -[NetworkDataTracker addIncomingBytes:] + 144 (NetworkDataTracker.m:62)
24  ***                           0x0000000105046174 -[TcpConnection socket:didReadData:withTag:] + 128 (TcpConnection.m:135)
25  ***                           0x000000010517350c __37-[GCDAsyncSocket completeCurrentRead]_block_invoke + 56 (GCDAsyncSocket.m:5716)
26  libdispatch.dylib              0x000000018c583bb0 _dispatch_call_block_and_release + 32 (init.c:1408)
27  libdispatch.dylib              0x000000018c58500c _dispatch_client_callout + 20 (object.m:495)
28  libdispatch.dylib              0x000000018c58b484 _dispatch_lane_serial_drain + 568 (inline_internal.h:2487)
29  libdispatch.dylib              0x000000018c58beb0 _dispatch_lane_invoke + 368 (inline_internal.h:1854)
30  libdispatch.dylib              0x000000018c594f20 _dispatch_workloop_worker_thread + 580 (queue.c:6386)
31  libsystem_pthread.dylib        0x000000018c5eaaa0 _pthread_wqthread + 280 (pthread.c:2323)
32  libsystem_pthread.dylib        0x000000018c5f0c78 start_wqthread + 8


Thread 11:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 12:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 13:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 14:
0   libsystem_pthread.dylib        0x000000018c5f0c70 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000010b08bc00   x1: 0x00000001c4843e74   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x0000000000000000   x5: 0x0000000000000015   x6: 0x0000000000000000   x7: 0x00000002827af1fc
    x8: 0x00000001c4843000   x9: 0x00000001c4839314  x10: 0x0000000111c2c000  x11: 0x03ff000111c2c000
   x12: 0x00000001d00db25c  x13: 0x0000000000000001  x14: 0x000000007e81a000  x15: 0x0000000000000034
   x16: 0x0000000000000000  x17: 0x263ae281901e81f8  x18: 0x0000000000000000  x19: 0x000000011715d8b0
   x20: 0x00000000000001c0  x21: 0x000000011715d8b0  x22: 0x00000000000002a8  x23: 0x00000000000002a0
   x24: 0x0000000105c3b450  x25: 0x000000010590e580  x26: 0x0000000000000001  x27: 0x7fffffffffffffff
   x28: 0x000000010703a000   fp: 0x000000016ae967b0   lr: 0x00000001901e72f8
    sp: 0x000000016ae967a0   pc: 0x000000018c5f4050 cpsr: 0x20000000
   esr: 0x92000006 (Data Abort) byte read Translation fault

Replies

Someone?..

Hello, I only know that UICollectionViewCell adds long press gesture by default. target is contentView and Action is _handleMenuGesture. Why I want to add this gesture is also not clear to me. But your problem is probably a conflict of gestures,

The solution is: One way is to remove this long press gesture, (I don’t know which functions will be affected.)

2. Monitor agents to resolve conflicts