*** -[__NSPlaceholderSet initWithObjects:count:]: attempt to insert nil object from objects[0]

Device: iPhoneX OS: 16.3.1

App Crash:

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9a24 __exceptionPreprocess
1  libobjc.A.dylib                0x15958 objc_exception_throw
2  CoreFoundation                 0x197524 -[__NSCFString characterAtIndex:].cold.1
3  CoreFoundation                 0x1965c8 -[__NSPlaceholderSet initWithCapacity:].cold.1
4  CoreFoundation                 0x2232c -[__NSPlaceholderSet initWithObjects:count:]
5  CoreFoundation                 0x214b0 __createSet
6  CoreFoundation                 0x67a24 +[NSSet setWithObject:]
7  UIKitCore                      0xe02eac -[UITextSelectionInteraction tapAndAHalf:]
8  UIKitCore                      0xb5de4 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:]
9  UIKitCore                      0x3f9a24 _UIGestureRecognizerSendTargetActions
10 UIKitCore                      0x192c38 _UIGestureRecognizerSendActions
11 UIKitCore                      0x805dc -[UIGestureRecognizer _updateGestureForActiveEvents]
12 UIKitCore                      0x124a54 _UIGestureEnvironmentUpdate
13 UIKitCore                      0x929188 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:]
14 UIKitCore                      0xebf60 -[UIGestureEnvironment _updateForEvent:window:]
15 UIKitCore                      0xf08bc -[UIWindow sendEvent:]
16 UIKitCore                      0xefbb8 -[UIApplication sendEvent:]
17 UIKitCore                      0xede20 __dispatchPreprocessedEventFromEventQueue
18 UIKitCore                      0x133b38 __processEventQueue
19 UIKitCore                      0x4170ac __eventFetcherSourceCallback
20 CoreFoundation                 0xcc288 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
21 CoreFoundation                 0xd7be8 __CFRunLoopDoSource0
22 CoreFoundation                 0x61fa0 __CFRunLoopDoSources0
23 CoreFoundation                 0x76f74 __CFRunLoopRun
24 CoreFoundation                 0x7bb48 CFRunLoopRunSpecific
25 GraphicsServices               0x1984 GSEventRunModal
26 UIKitCore                      0x375638 -[UIApplication _run]
27 UIKitCore                      0x3752b0 UIApplicationMain
28 Balrog                         0x18c5c8 main + 17 (AppDelegate.swift:17)
29 ???                            0x1e80b9df0 (缺少)

Crashed: com.google.firebase.crashlytics.ios.exception
0  FirebaseCrashlytics            0x1eea8 FIRCLSProcessRecordAllThreads + 184
1  FirebaseCrashlytics            0x1f288 FIRCLSProcessRecordAllThreads + 1176
2  FirebaseCrashlytics            0x164d4 FIRCLSHandler + 48
3  FirebaseCrashlytics            0x111a8 __FIRCLSExceptionRecord_block_invoke + 92
4  libdispatch.dylib              0x647c8 _dispatch_client_callout + 16
5  libdispatch.dylib              0x46b54 _dispatch_lane_barrier_sync_invoke_and_complete + 52
6  FirebaseCrashlytics            0x101b4 FIRCLSExceptionRecord + 204
7  FirebaseCrashlytics            0x10cc8 FIRCLSExceptionRecordNSException + 452
8  FirebaseCrashlytics            0xfe0c FIRCLSTerminateHandler() + 404
9  libc++abi.dylib                0x10288 std::__terminate(void (*)()) + 16
10 libc++abi.dylib                0x12e1c __cxa_rethrow + 144
11 libobjc.A.dylib                0x1722c objc_exception_rethrow + 40
12 CoreFoundation                 0x7bc0c CFRunLoopRunSpecific + 780
13 GraphicsServices               0x1984 GSEventRunModal + 160
14 UIKitCore                      0x375638 -[UIApplication _run] + 868
15 UIKitCore                      0x3752b0 UIApplicationMain + 312
16 Balrog                         0x18c5c8 main + 17 (AppDelegate.swift:17)
17 ???                            0x1e80b9df0 (缺少)

jp.co.rakuten.wallet.leverage.rpcReadingQueue
0  libsystem_kernel.dylib         0x1114 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x129e0 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x12c1c mach_msg_overwrite + 384
3  libsystem_kernel.dylib         0x1608 mach_msg + 20
4  CoreFoundation                 0x75f88 __CFRunLoopServiceMachPort + 156
5  CoreFoundation                 0x77138 __CFRunLoopRun + 1232
6  CoreFoundation                 0x7bb48 CFRunLoopRunSpecific + 584
7  Foundation                     0x3e168 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8  Balrog                         0x2c988 -[RpcTransport doConnect] + 215 (RpcTransport.m:215)
9  libdispatch.dylib              0x63850 _dispatch_call_block_and_release + 24
10 libdispatch.dylib              0x647c8 _dispatch_client_callout + 16
11 libdispatch.dylib              0x3f800 _dispatch_lane_serial_drain$VARIANT$armv81 + 604
12 libdispatch.dylib              0x40290 _dispatch_lane_invoke$VARIANT$armv81 + 380
13 libdispatch.dylib              0x4a000 _dispatch_workloop_worker_thread + 612
14 libsystem_pthread.dylib        0x1b50 _pthread_wqthread + 284
15 libsystem_pthread.dylib        0x167c start_wqthread + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x1114 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x129e0 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x12c1c mach_msg_overwrite + 384
3  libsystem_kernel.dylib         0x1608 mach_msg + 20
4  CoreFoundation                 0x75f88 __CFRunLoopServiceMachPort + 156
5  CoreFoundation                 0x77138 __CFRunLoopRun + 1232
6  CoreFoundation                 0x7bb48 CFRunLoopRunSpecific + 584
7  Foundation                     0x3e168 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8  Foundation                     0x3e064 -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9  UIKitCore                      0x49a4b8 -[UIEventFetcher threadMain] + 424
10 Foundation                     0x55ca4 __NSThread__start__ + 704
11 libsystem_pthread.dylib        0x3060 _pthread_start + 116
12 libsystem_pthread.dylib        0x1688 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer
0  libsystem_kernel.dylib         0x1114 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0x129e0 mach_msg2_internal + 76
2  libsystem_kernel.dylib         0x12c1c mach_msg_overwrite + 384
3  libsystem_kernel.dylib         0x1608 mach_msg + 20
4  FirebaseCrashlytics            0x18a50 FIRCLSMachExceptionServer + 108
5  libsystem_pthread.dylib        0x3060 _pthread_start + 116
6  libsystem_pthread.dylib        0x1688 thread_start + 8

It seems UITextSelectionInteraction trigger this crash, Why this happen? Is it associate with system keyboard?

*** -[__NSPlaceholderSet initWithObjects:count:]: attempt to insert nil object from objects[0]
 
 
Q