picker: [IOS] crash on react-native 0.77(new architecture)
Library version: 2.11.0 React native version: 0.77.2, new architecture enabled It occasionally crashes when using the selector:
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x3c20 objc_msgSend + 32
1 UIKitCore 0x1103d3c -[UIPickerView hitTest:withEvent:] + 432
2 LeySerKids 0x6cbfa8 -[RCTViewComponentView betterHitTest:withEvent:] + 627 (RCTViewComponentView.mm:627)
3 LeySerKids 0x6cc0bc -[RCTViewComponentView hitTest:withEvent:] + 640 (RCTViewComponentView.mm:640)
4 LeySerKids 0x6cbfa8 -[RCTViewComponentView betterHitTest:withEvent:] + 627 (RCTViewComponentView.mm:627)
5 LeySerKids 0x6cc0bc -[RCTViewComponentView hitTest:withEvent:] + 640 (RCTViewComponentView.mm:640)
6 UIKitCore 0x7a3cc -[UIView(Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 84
7 UIKitCore 0x7a210 __38-[UIView(Geometry) hitTest:withEvent:]_block_invoke + 92
8 CoreFoundation 0x25430 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
9 CoreFoundation 0x8e4ac -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 92
10 UIKitCore 0xda67c -[UIView(Geometry) hitTest:withEvent:] + 480
11 UIKitCore 0x7a3cc -[UIView(Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 84
12 UIKitCore 0x7a210 __38-[UIView(Geometry) hitTest:withEvent:]_block_invoke + 92
13 CoreFoundation 0x25430 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
14 CoreFoundation 0x8e4ac -[__NSSingleObjectArrayI enumerateObjectsWithOptions:usingBlock:] + 92
15 UIKitCore 0xda67c -[UIView(Geometry) hitTest:withEvent:] + 480
16 UIKitCore 0x1553260 -[UITransitionView hitTest:withEvent:] + 56
17 UIKitCore 0x7a3cc -[UIView(Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 84
18 UIKitCore 0x7a210 __38-[UIView(Geometry) hitTest:withEvent:]_block_invoke + 92
19 CoreFoundation 0x25430 __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 24
20 CoreFoundation 0x25310 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 432
21 UIKitCore 0xda67c -[UIView(Geometry) hitTest:withEvent:] + 480
22 UIKitCore 0x7a3cc -[UIView(Geometry) _hitTest:withEvent:windowServerHitTestWindow:] + 84
23 UIKitCore 0x595f8 -[UIWindow _hitTestLocation:sceneLocationZ:inScene:withWindowServerHitTestWindow:event:] + 96
24 UIKitCore 0x593a4 __75+[UIWindow _hitTestToPoint:scenePointZ:forEvent:windowServerHitTestWindow:]_block_invoke + 68
25 UIKitCore 0x5870c __64-[UIWindowScene _topVisibleWindowEnumeratingAsCopy:passingTest:]_block_invoke + 116
26 UIKitCore 0x583f0 -[UIWindowScene _enumerateWindowsIncludingInternalWindows:onlyVisibleWindows:asCopy:stopped:withBlock:] + 312
27 UIKitCore 0x4bb9c -[UIWindowScene _topVisibleWindowEnumeratingAsCopy:passingTest:] + 416
28 UIKitCore 0x11bf28 +[UIWindow _hitTestToPoint:scenePointZ:forEvent:windowServerHitTestWindow:] + 220
29 UIKitCore 0x11bdfc -[UIWindow _targetWindowForPathIndex:atPoint:scenePointZ:forEvent:windowServerHitTestWindow:] + 188
30 UIKitCore 0x117e0c __startNewUITouch + 604
31 UIKitCore 0x11a4a20 ____updateTouchesWithDigitizerEventAndDetermineIfShouldSend_block_invoke.30 + 316
32 UIKitCore 0x1ad720 _UIEventHIDEnumerateChildren + 172
33 UIKitCore 0x1ac1bc __dispatchPreprocessedEventFromEventQueue + 2596
34 UIKitCore 0x1b5994 __processEventQueue + 5696
35 UIKitCore 0xadf40 updateCycleEntry + 160
36 UIKitCore 0xabcb8 _UIUpdateSequenceRun + 84
37 UIKitCore 0xab908 schedulerStepScheduledMainSection + 172
38 UIKitCore 0xac87c runloopSourceCallback + 92
39 CoreFoundation 0x57088 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
40 CoreFoundation 0x5701c __CFRunLoopDoSource0 + 176
41 CoreFoundation 0x54b08 __CFRunLoopDoSources0 + 244
42 CoreFoundation 0x53d04 __CFRunLoopRun + 840
43 CoreFoundation 0x535b8 CFRunLoopRunSpecific + 572
44 GraphicsServices 0x11c4 GSEventRunModal + 164
45 UIKitCore 0x3de2c0 -[UIApplication _run] + 816
46 UIKitCore 0x48cddc UIApplicationMain + 340
47 UIKitCore 0x7b9b20 block_destroy_helper.23 + 10212
48 LeySerKids 0x8ed4 main + 4375416532 (AppDelegate.swift:4375416532)
49 ??? 0x1b04a0d34 (缺少)
com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1728 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x4e38 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4d50 mach_msg_overwrite + 424
3 libsystem_kernel.dylib 0x4b9c mach_msg + 24
4 CoreFoundation 0x547cc __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53e78 __CFRunLoopRun + 1212
6 CoreFoundation 0x535b8 CFRunLoopRunSpecific + 572
7 Foundation 0xb7000 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0xb6e50 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x3f1714 -[UIEventFetcher threadMain] + 420
10 Foundation 0xc8158 __NSThread__start__ + 724
11 libsystem_pthread.dylib 0x637c _pthread_start + 136
12 libsystem_pthread.dylib 0x1494 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x14b0 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x4cc8 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1488 start_wqthread + 8
com.google.firebase.crashlytics.MachExceptionServer
0 LeySerKids 0x7283c FIRCLSProcessRecordAllThreads + 392 (FIRCLSProcess.c:392)
1 LeySerKids 0x72c1c FIRCLSProcessRecordAllThreads + 423 (FIRCLSProcess.c:423)
2 LeySerKids 0x6a954 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 LeySerKids 0x6d2c8 FIRCLSMachExceptionServer + 525 (FIRCLSMachException.c:525)
4 libsystem_pthread.dylib 0x637c _pthread_start + 136
5 libsystem_pthread.dylib 0x1494 thread_start + 8
com.facebook.react.runtime.JavaScript
0 libsystem_kernel.dylib 0x1728 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x4e38 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4d50 mach_msg_overwrite + 424
3 libsystem_kernel.dylib 0x4b9c mach_msg + 24
4 CoreFoundation 0x547cc __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53e78 __CFRunLoopRun + 1212
6 CoreFoundation 0x535b8 CFRunLoopRunSpecific + 572
7 LeySerKids 0x9bc008 +[RCTJSThreadManager runRunLoop] + 102 (RCTJSThreadManager.mm:102)
8 Foundation 0xc8158 __NSThread__start__ + 724
9 libsystem_pthread.dylib 0x637c _pthread_start + 136
10 libsystem_pthread.dylib 0x1494 thread_start + 8
hades
0 libsystem_kernel.dylib 0x7030 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3a50 _pthread_cond_wait + 1204
2 libc++.1.dylib 0x21584 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3 hermes 0xcc7fc hermes::vm::HadesGC::Executor::worker() + 116
4 hermes 0xcc764 void* std::__1::__thread_proxy[abi:v160006]<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct>>, hermes::vm::HadesGC::Executor::Executor()::'lambda'()>>(void*) + 44
5 libsystem_pthread.dylib 0x637c _pthread_start + 136
6 libsystem_pthread.dylib 0x1494 thread_start + 8
com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1728 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x4e38 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x4d50 mach_msg_overwrite + 424
3 libsystem_kernel.dylib 0x4b9c mach_msg + 24
4 CoreFoundation 0x547cc __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x53e78 __CFRunLoopRun + 1212
6 CoreFoundation 0x535b8 CFRunLoopRunSpecific + 572
7 CFNetwork 0xfdf44 +[__CFN_CoreSchedulingSetRunnable _run:] + 416
8 Foundation 0xc8158 __NSThread__start__ + 724
9 libsystem_pthread.dylib 0x637c _pthread_start + 136
10 libsystem_pthread.dylib 0x1494 thread_start + 8
Thread
0 libsystem_kernel.dylib 0x14b0 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x4cc8 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1488 start_wqthread + 8
Thread
0 libsystem_pthread.dylib 0x1480 start_wqthread + 8892318846
Thread
0 libsystem_pthread.dylib 0x1480 start_wqthread + 8892318846
Thread
0 libsystem_pthread.dylib 0x1480 start_wqthread + 8892318846
Thread
0 libsystem_kernel.dylib 0x14b0 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x4cc8 _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1488 start_wqthread + 8
JavaScriptCore libpas scavenger
0 libsystem_kernel.dylib 0x7030 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x3a50 _pthread_cond_wait + 1204
2 JavaScriptCore 0x15a3fe8 scavenger_thread_main + 1316
3 libsystem_pthread.dylib 0x637c _pthread_start + 136
4 libsystem_pthread.dylib 0x1494 thread_start + 8
AudioSession - RootQueue
0 libsystem_kernel.dylib 0x16bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x46e8 _dispatch_sema4_timedwait + 64
2 libdispatch.dylib 0x4ce8 _dispatch_semaphore_wait_slow + 76
3 libdispatch.dylib 0x15b60 _dispatch_worker_thread + 324
4 libsystem_pthread.dylib 0x637c _pthread_start + 136
5 libsystem_pthread.dylib 0x1494 thread_start + 8
AudioSession - RootQueue
0 libsystem_kernel.dylib 0x16bc semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x46e8 _dispatch_sema4_timedwait + 64
2 libdispatch.dylib 0x4ce8 _dispatch_semaphore_wait_slow + 76
3 libdispatch.dylib 0x15b60 _dispatch_worker_thread + 324
4 libsystem_pthread.dylib 0x637c _pthread_start + 136
5 libsystem_pthread.dylib 0x1494 thread_start + 8
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 3
- Comments: 15
@bobinrinder There are crashes with both Picker and PickerIOS, I suggest to move into a custom solution (it could be a flat list / legend list for more performance) until this is fixed.
on react native 0.80.0 also experiencing the crash. guess will have to use another picker
I tried finding a solution, but because the crash happens between React Native’s hitTest and the library it’s hard to resolve it (for now).