software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
8.85k stars 1.29k forks source link

App Hanging / potential memory issue (Hermes + 3.3) #4901

Open nandorojo opened 1 year ago

nandorojo commented 1 year ago

Description

I have gotten the following error on Sentry a few times since shipping Reanimated 3.3 to production:

The stack trace on Sentry shows that it has to do with Reanimated:

Screenshot 2023-08-08 at 7 57 23 PM Screenshot 2023-08-08 at 7 57 01 PM Screenshot 2023-08-08 at 7 59 59 PM

Let me know if you need more info.

Steps to reproduce

I'm currently not able to reproduce this since it happens very rarely and in production.

Snack or a link to a repository

https://github.com/software-mansion/react-native-reanimated/issues/4901

Reanimated version

3.3.0

React Native version

0.72.3

Platforms

iOS

JavaScript runtime

Hermes

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 1 year ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

nandorojo commented 1 year ago

Like I said, this is a prod memory issue (I think) so it can't be repro'd in an Expo snack.

tomekzaw commented 1 year ago

Hey @nandorojo, thanks for submitting this issue.

Aside from the root cause of this problem, I believe that ReanimatedReentrancyCheck should be present only in debug build. The contents of the struct are wrapped inside #ifndef NDEBUG. If you're getting this stack trace in the release mode, I'm afraid we don't set NDEBUG properly.

nandorojo commented 1 year ago

Hey @tomekzaw, thanks for the update. Appreciate the quick fix, hope it addresses the issue.

nandorojo commented 5 months ago

This issue is still happening for us by the way:

Using Expo SDK 50 and Reanimated 3.8.1:

View Stack Trace ```sh OS Version: iOS 17.3.1 (21D61) Report Version: 104 Application Specific Information: App hanging for at least 2000 ms. Thread 0 Crashed: 0 CoreFoundation 0x31925601c CFNumberGetValue 1 CoreFoundation 0x319259734 -[__NSCFNumber intValue] 2 APP_REDACTED 0x200f5a8ec reanimated::createReanimatedModule (NativeProxy.mm:339) 3 APP_REDACTED 0x200f67c64 -[REAAnimationsManager viewDidMount:withBeforeSnapshot:withNewFrame:] (REAAnimationsManager.m:559) 4 APP_REDACTED 0x200f7469c __70-[REASwizzledUIManager reanimated_uiBlockWithLayoutUpdateForRootView:]_block_invoke.53 (REASwizzledUIManager.mm:341) 5 APP_REDACTED 0x2010499d0 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke (RCTUIManager.m:1208) 6 APP_REDACTED 0x201049ac0 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke_2 (RCTUIManager.m:1228) 7 libdispatch.dylib 0x32923e6a4 _dispatch_call_block_and_release 8 libdispatch.dylib 0x3292402fc _dispatch_client_callout 9 libdispatch.dylib 0x32924e994 _dispatch_main_queue_drain 10 libdispatch.dylib 0x32924e5ac _dispatch_main_queue_callback_4CF 11 CoreFoundation 0x319282f98 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ 12 CoreFoundation 0x31927fca4 __CFRunLoopRun 13 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 14 GraphicsServices 0x39fdcb4f4 GSEventRunModal 15 UIKitCore 0x31d8d289c -[UIApplication _run] 16 UIKitCore 0x31d8d1ed8 UIApplicationMain 17 APP_REDACTED 0x200530410 main (main.m:7) Thread 0 0 CoreFoundation 0x31925601c CFNumberGetValue 1 CoreFoundation 0x319259734 -[__NSCFNumber intValue] 2 APP_REDACTED 0x200f5a8ec reanimated::createReanimatedModule (NativeProxy.mm:339) 3 APP_REDACTED 0x200f67c64 -[REAAnimationsManager viewDidMount:withBeforeSnapshot:withNewFrame:] (REAAnimationsManager.m:559) 4 APP_REDACTED 0x200f7469c __70-[REASwizzledUIManager reanimated_uiBlockWithLayoutUpdateForRootView:]_block_invoke.53 (REASwizzledUIManager.mm:341) 5 APP_REDACTED 0x2010499d0 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke (RCTUIManager.m:1208) 6 APP_REDACTED 0x201049ac0 __44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke_2 (RCTUIManager.m:1228) 7 libdispatch.dylib 0x32923e6a4 _dispatch_call_block_and_release 8 libdispatch.dylib 0x3292402fc _dispatch_client_callout 9 libdispatch.dylib 0x32924e994 _dispatch_main_queue_drain 10 libdispatch.dylib 0x32924e5ac _dispatch_main_queue_callback_4CF 11 CoreFoundation 0x319282f98 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ 12 CoreFoundation 0x31927fca4 __CFRunLoopRun 13 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 14 GraphicsServices 0x39fdcb4f4 GSEventRunModal 15 UIKitCore 0x31d8d289c -[UIApplication _run] 16 UIKitCore 0x31d8d1ed8 UIApplicationMain 17 APP_REDACTED 0x200530410 main (main.m:7) Thread 1 name: com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 CoreFoundation 0x319281a98 __CFRunLoopServiceMachPort 5 CoreFoundation 0x31927f990 __CFRunLoopRun 6 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 7 Foundation 0x3171ac3e8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 8 Foundation 0x3171d96a8 -[NSRunLoop(NSRunLoop) runUntilDate:] 9 UIKitCore 0x31d83470c -[UIEventFetcher threadMain] 10 Foundation 0x31722fd3c __NSThread__start__ 11 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 2 0 libsystem_kernel.dylib 0x3a8121978 __semwait_signal 1 libsystem_c.dylib 0x3292d3f1c nanosleep 2 libsystem_c.dylib 0x3292d3e34 usleep 3 APP_REDACTED 0x2011c5598 __45-[RSCloudModeManager startCloudModeProcessor]_block_invoke 4 libdispatch.dylib 0x32923e6a4 _dispatch_call_block_and_release 5 libdispatch.dylib 0x3292402fc _dispatch_client_callout 6 libdispatch.dylib 0x329247890 _dispatch_lane_serial_drain 7 libdispatch.dylib 0x3292483c0 _dispatch_lane_invoke 8 libdispatch.dylib 0x329253000 _dispatch_root_queue_drain_deferred_wlh 9 libdispatch.dylib 0x329252874 _dispatch_workloop_worker_thread 10 libsystem_pthread.dylib 0x3ed43d960 _pthread_wqthread Thread 3 name: com.facebook.react.JavaScript 0 hermes 0x102e18730 hermes::vm::HadesGC::writeBarrierSlow 1 hermes 0x102d805a8 [inlined] hermes::vm::Interpreter::interpretFunction 2 hermes 0x102d805a8 hermes::vm::Interpreter::interpretFunction 3 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 4 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 5 hermes 0x102e029ec hermes::vm::functionPrototypeCall 6 hermes 0x102d7029c hermes::vm::NativeFunction::_nativeCall 7 hermes 0x102d7ce04 hermes::vm::Interpreter::handleCallSlowPath 8 hermes 0x102d7e60c hermes::vm::Interpreter::interpretFunction 9 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 10 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 11 hermes 0x102d6ff84 hermes::vm::BoundFunction::_boundCall 12 hermes 0x102d7ce14 hermes::vm::Interpreter::handleCallSlowPath 13 hermes 0x102d7e60c hermes::vm::Interpreter::interpretFunction 14 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 15 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 16 hermes 0x102e029ec hermes::vm::functionPrototypeCall 17 hermes 0x102d7029c hermes::vm::NativeFunction::_nativeCall 18 hermes 0x102d7ce04 hermes::vm::Interpreter::handleCallSlowPath 19 hermes 0x102d7e60c hermes::vm::Interpreter::interpretFunction 20 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 21 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 22 hermes 0x102d6f5a0 hermes::vm::Callable::executeCall 23 hermes 0x102e02774 hermes::vm::functionPrototypeApply 24 hermes 0x102d7029c hermes::vm::NativeFunction::_nativeCall 25 hermes 0x102d7ce04 hermes::vm::Interpreter::handleCallSlowPath 26 hermes 0x102d7e60c hermes::vm::Interpreter::interpretFunction 27 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 28 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 29 hermes 0x102d6ff84 hermes::vm::BoundFunction::_boundCall 30 hermes 0x102d7ce14 hermes::vm::Interpreter::handleCallSlowPath 31 hermes 0x102d7e60c hermes::vm::Interpreter::interpretFunction 32 hermes 0x102d7ddfc hermes::vm::Runtime::interpretFunctionImpl 33 hermes 0x102d70394 hermes::vm::JSFunction::_callImpl 34 hermes 0x102d6ff84 hermes::vm::BoundFunction::_boundCall 35 hermes 0x102d5ad6c facebook::hermes::HermesRuntimeImpl::call 36 APP_REDACTED 0x20153db34 [inlined] facebook::jsi::RuntimeDecorator::call (decorator.h:340) 37 APP_REDACTED 0x20153db34 facebook::jsi::WithRuntimeDecorator::call (decorator.h:753) 38 APP_REDACTED 0x20133ab7c [inlined] facebook::jsi::Function::call (jsi-inl.h:259) 39 APP_REDACTED 0x20133ab7c [inlined] facebook::jsi::Function::call (jsi-inl.h:264) 40 APP_REDACTED 0x20133ab7c facebook::jsi::Function::call (jsi-inl.h:272) 41 APP_REDACTED 0x20133a9e8 [inlined] facebook::react::JSIExecutor::callFunction::lambda::operator() (JSIExecutor.cpp:258) 42 APP_REDACTED 0x20133a9e8 [inlined] std::__1::__invoke[abi:v160006] (invoke.h:394) 43 APP_REDACTED 0x20133a9e8 [inlined] std::__1::__invoke_void_return_wrapper::__call (invoke.h:487) 44 APP_REDACTED 0x20133a9e8 [inlined] std::__1::__function::__alloc_func::operator()[abi:v160006] (function.h:185) 45 APP_REDACTED 0x20133a9e8 std::__1::__function::__func::operator() (function.h:356) 46 APP_REDACTED 0x2010144b4 [inlined] std::__1::__invoke[abi:v160006] (invoke.h:394) 47 APP_REDACTED 0x2010144b4 std::__1::__invoke_void_return_wrapper::__call (invoke.h:487) 48 APP_REDACTED 0x201337bb4 [inlined] std::__1::__function::__value_func::operator()[abi:v160006] (function.h:510) 49 APP_REDACTED 0x201337bb4 [inlined] std::__1::function::operator() (function.h:1156) 50 APP_REDACTED 0x201337bb4 facebook::react::JSIExecutor::callFunction (JSIExecutor.cpp:256) 51 APP_REDACTED 0x201311240 [inlined] std::__1::__function::__value_func::operator()[abi:v160006] (function.h:510) 52 APP_REDACTED 0x201311240 [inlined] std::__1::function::operator() (function.h:1156) 53 APP_REDACTED 0x201311240 [inlined] facebook::react::NativeToJsBridge::runOnExecutorQueue::lambda::operator() (NativeToJsBridge.cpp:308) 54 APP_REDACTED 0x201311240 [inlined] std::__1::__invoke[abi:v160006] (invoke.h:394) 55 APP_REDACTED 0x201311240 [inlined] std::__1::__invoke_void_return_wrapper::__call (invoke.h:487) 56 APP_REDACTED 0x201311240 [inlined] std::__1::__function::__alloc_func::operator()[abi:v160006] (function.h:185) 57 APP_REDACTED 0x201311240 std::__1::__function::__func::operator() (function.h:356) 58 APP_REDACTED 0x2010176f0 [inlined] std::__1::__function::__value_func::operator()[abi:v160006] (function.h:510) 59 APP_REDACTED 0x2010176f0 [inlined] std::__1::function::operator() (function.h:1156) 60 APP_REDACTED 0x2010176f0 facebook::react::tryAndReturnError (RCTCxxUtils.mm:73) 61 APP_REDACTED 0x201023718 facebook::react::RCTMessageThread::tryFunc (RCTMessageThread.mm:68) 62 APP_REDACTED 0x201023524 [inlined] std::__1::__function::__value_func::operator()[abi:v160006] (function.h:510) 63 APP_REDACTED 0x201023524 [inlined] std::__1::function::operator() (function.h:1156) 64 APP_REDACTED 0x201023524 facebook::react::RCTMessageThread::runAsync (RCTMessageThread.mm:44) 65 CoreFoundation 0x319283134 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ 66 CoreFoundation 0x319281928 __CFRunLoopDoBlocks 67 CoreFoundation 0x31927fe60 __CFRunLoopRun 68 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 69 APP_REDACTED 0x20100cebc +[RCTCxxBridge runRunLoop] (RCTCxxBridge.mm:332) 70 Foundation 0x31722fd3c __NSThread__start__ 71 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 4 name: hades 0 libsystem_kernel.dylib 0x3a8121b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x3ed43cfd0 _pthread_cond_wait 2 libc++.1.dylib 0x3396acec8 std::__1::condition_variable::wait 3 hermes 0x102e1c104 hermes::vm::HadesGC::Executor::worker 4 hermes 0x102e1bfa4 std::__1::__thread_proxy[abi:v15006] 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 5 name: hades 0 libsystem_kernel.dylib 0x3a8121b1c __psynch_cvwait 1 libsystem_pthread.dylib 0x3ed43cfd0 _pthread_cond_wait 2 libc++.1.dylib 0x3396acec8 std::__1::condition_variable::wait 3 hermes 0x102e1c104 hermes::vm::HadesGC::Executor::worker 4 hermes 0x102e1bfa4 std::__1::__thread_proxy[abi:v15006] 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 6 0 libsystem_kernel.dylib 0x3a8121978 __semwait_signal 1 libsystem_c.dylib 0x3292d3f1c nanosleep 2 libsystem_c.dylib 0x3292e21d8 sleep 3 APP_REDACTED 0x20123c2f4 monitorCachedData (SentryCrashCachedData.c:145) 4 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 7 name: SentryCrash Exception Handler (Secondary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8125714 thread_suspend 3 APP_REDACTED 0x201248010 handleExceptions (SentryCrashMonitor_MachException.c:306) 4 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 8 name: SentryCrash Exception Handler (Primary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 APP_REDACTED 0x20124803c handleExceptions (SentryCrashMonitor_MachException.c:314) 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 9 name: io.sentry.app-hang-tracker 0 APP_REDACTED 0x201293d2c -[SentryStacktraceBuilder buildStacktraceForCurrentThread] (SentryStacktraceBuilder.m:105) 1 APP_REDACTED 0x201297530 -[SentryThreadInspector getCurrentThreadsWithStackTrace] (SentryThreadInspector.m:187) 2 APP_REDACTED 0x20122bcc0 -[SentryANRTrackingIntegration anrDetected] (SentryANRTrackingIntegration.m:79) 3 APP_REDACTED 0x20122b434 -[SentryANRTracker ANRDetected] (SentryANRTracker.m:147) 4 APP_REDACTED 0x20122af00 -[SentryANRTracker detectANRs] (SentryANRTracker.m:129) 5 Foundation 0x31722fd3c __NSThread__start__ 6 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start 7 libsystem_pthread.dylib 0x3ed43da0c thread_start Thread 10 name: KSCrash Exception Handler (Secondary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8125714 thread_suspend 3 APP_REDACTED 0x200fca8f0 rsc_ksmachexc_i_handleExceptions (RSC_KSCrashSentry_MachException.c:222) 4 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 11 name: KSCrash Exception Handler (Primary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 APP_REDACTED 0x200fca924 rsc_ksmachexc_i_handleExceptions (RSC_KSCrashSentry_MachException.c:229) 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 12 name: com.bugsnag.app-hang-detector 0 libsystem_kernel.dylib 0x3a812110c semaphore_timedwait_trap 1 libdispatch.dylib 0x329240914 _dispatch_sema4_timedwait 2 libdispatch.dylib 0x329240f10 _dispatch_semaphore_wait_slow 3 APP_REDACTED 0x200fcfec8 -[RSCAppHangDetector detectAppHangs] (RSCAppHangDetector.m:133) 4 APP_REDACTED 0x200fcfe34 DetectAppHangs (RSCAppHangDetector.m:216) 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 13 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread Thread 14 name: com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 CoreFoundation 0x319281a98 __CFRunLoopServiceMachPort 5 CoreFoundation 0x31927f990 __CFRunLoopRun 6 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 7 CFNetwork 0x31b65404c estimatedPropertyListSize 8 Foundation 0x31722fd3c __NSThread__start__ 9 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 15 0 libdispatch.dylib 0x32923ec08 _os_object_retain 1 UIKitCore 0x31d994824 -[_UINewCGImageDecompressor initWithSourceImage:completionQueue:] 2 UIKitCore 0x31d9946d8 -[_UIImageCGImageContent _activeDecompressorCreatingIfNecessary] 3 UIKitCore 0x31df0e2f0 -[_UIImageCGImageContent contentPreparedForDisplay] 4 UIKitCore 0x31e0af150 -[UIImage imageByPreparingForDisplay] 5 APP_REDACTED 0x2011f701c +[SDImageCoderHelper decodedImageWithImage:policy:] 6 APP_REDACTED 0x2011f3930 SDImageCacheDecodeImageData (SDImageCacheDefine.m:138) 7 APP_REDACTED 0x2011f0f98 -[SDImageCache diskImageForKey:data:options:context:] (SDImageCache.m:524) 8 APP_REDACTED 0x2011f18cc __73-[SDImageCache queryCacheOperationForKey:options:context:cacheType:done:]_block_invoke.120 (SDImageCache.m:677) 9 APP_REDACTED 0x2011f1aa0 __73-[SDImageCache queryCacheOperationForKey:options:context:cacheType:done:]_block_invoke.123 (SDImageCache.m:701) 10 libdispatch.dylib 0x32923e6a4 _dispatch_call_block_and_release 11 libdispatch.dylib 0x3292402fc _dispatch_client_callout 12 libdispatch.dylib 0x329247890 _dispatch_lane_serial_drain 13 libdispatch.dylib 0x3292483c0 _dispatch_lane_invoke 14 libdispatch.dylib 0x329253000 _dispatch_root_queue_drain_deferred_wlh 15 libdispatch.dylib 0x329252874 _dispatch_workloop_worker_thread 16 libsystem_pthread.dylib 0x3ed43d960 _pthread_wqthread Thread 16 name: LROCrash Exception Handler (Secondary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8125714 thread_suspend 3 LogRocket 0x10462d4c8 handleExceptions (LROCrashMonitor_MachException.m:228) 4 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 17 name: LROCrash Exception Handler (Primary) 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 LogRocket 0x10462d4ec handleExceptions (LROCrashMonitor_MachException.m:236) 5 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 18 name: com.facebook.SocketRocket.NetworkThread 0 libsystem_kernel.dylib 0x3a8121178 mach_msg2_trap 1 libsystem_kernel.dylib 0x3a8120f0c mach_msg2_internal 2 libsystem_kernel.dylib 0x3a8120e24 mach_msg_overwrite 3 libsystem_kernel.dylib 0x3a8120c64 mach_msg 4 CoreFoundation 0x319281a98 __CFRunLoopServiceMachPort 5 CoreFoundation 0x31927f990 __CFRunLoopRun 6 CoreFoundation 0x31927f3f4 CFRunLoopRunSpecific 7 Foundation 0x3171ac3e8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 8 APP_REDACTED 0x2012b5a3c -[SRRunLoopThread main] (SRRunLoopThread.m:70) 9 Foundation 0x31722fd3c __NSThread__start__ 10 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 19 name: com.apple.CFSocket.private 0 libsystem_kernel.dylib 0x3a812d860 __select 1 CoreFoundation 0x31932b774 __CFSocketManager 2 libsystem_pthread.dylib 0x3ed43e4d0 _pthread_start Thread 20 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread Thread 21 0 APP_REDACTED 0x2015e8d10 [inlined] facebook::yoga::CompactValue::isUndefined (CompactValue.h:136) 1 APP_REDACTED 0x2015e8d10 facebook::yoga::Node::computeEdgeValueForRow (Node.cpp:68) 2 APP_REDACTED 0x2015ea3a0 facebook::yoga::Node::getTrailingBorder (Node.cpp:541) 3 APP_REDACTED 0x2015ea640 facebook::yoga::Node::getTrailingPaddingAndBorder (Node.cpp:592) 4 APP_REDACTED 0x2015e40f8 [inlined] facebook::yoga::paddingAndBorderForAxis (BoundAxis.h:24) 5 APP_REDACTED 0x2015e40f8 facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1613) 6 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 7 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChild (CalculateLayout.cpp:296) 8 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChildren (CalculateLayout.cpp:831) 9 APP_REDACTED 0x2015e48fc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1655) 10 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 11 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChild (CalculateLayout.cpp:296) 12 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChildren (CalculateLayout.cpp:831) 13 APP_REDACTED 0x2015e48fc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1655) 14 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 15 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChild (CalculateLayout.cpp:296) 16 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChildren (CalculateLayout.cpp:831) 17 APP_REDACTED 0x2015e48fc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1655) 18 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 19 APP_REDACTED 0x2015e5184 [inlined] facebook::yoga::distributeFreeSpaceSecondPass (CalculateLayout.cpp:1023) 20 APP_REDACTED 0x2015e5184 [inlined] facebook::yoga::resolveFlexibleLength (CalculateLayout.cpp:1179) 21 APP_REDACTED 0x2015e5184 facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1787) 22 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 23 APP_REDACTED 0x2015e5184 [inlined] facebook::yoga::distributeFreeSpaceSecondPass (CalculateLayout.cpp:1023) 24 APP_REDACTED 0x2015e5184 [inlined] facebook::yoga::resolveFlexibleLength (CalculateLayout.cpp:1179) 25 APP_REDACTED 0x2015e5184 facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1787) 26 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 27 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChild (CalculateLayout.cpp:296) 28 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChildren (CalculateLayout.cpp:831) 29 APP_REDACTED 0x2015e48fc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1655) 30 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 31 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChild (CalculateLayout.cpp:296) 32 APP_REDACTED 0x2015e48fc [inlined] facebook::yoga::computeFlexBasisForChildren (CalculateLayout.cpp:831) 33 APP_REDACTED 0x2015e48fc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1655) 34 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 35 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 36 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 37 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 38 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 39 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 40 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 41 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 42 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 43 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 44 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 45 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 46 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 47 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 48 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 49 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 50 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 51 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 52 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 53 APP_REDACTED 0x2015e7178 [inlined] facebook::yoga::layoutAbsoluteChild (CalculateLayout.cpp:440) 54 APP_REDACTED 0x2015e7178 facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:2328) 55 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 56 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 57 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 58 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 59 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 60 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 61 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 62 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 63 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 64 APP_REDACTED 0x2015e7178 [inlined] facebook::yoga::layoutAbsoluteChild (CalculateLayout.cpp:440) 65 APP_REDACTED 0x2015e7178 facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:2328) 66 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 67 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 68 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 69 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 70 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 71 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 72 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 73 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 74 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 75 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 76 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 77 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 78 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 79 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 80 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 81 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 82 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 83 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 84 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 85 APP_REDACTED 0x2015e60bc facebook::yoga::calculateLayoutImpl (CalculateLayout.cpp:1963) 86 APP_REDACTED 0x2015e32d4 facebook::yoga::calculateLayoutInternal (CalculateLayout.cpp:2567) 87 APP_REDACTED 0x2015e7d18 facebook::yoga::calculateLayout (CalculateLayout.cpp:2723) 88 APP_REDACTED 0x20103c6a8 -[RCTShadowView layoutWithMinimumSize:maximumSize:layoutDirection:layoutContext:] (RCTShadowView.m:279) 89 APP_REDACTED 0x2010329d4 -[RCTRootShadowView layoutWithAffectedShadowViews:] (RCTRootShadowView.m:35) 90 APP_REDACTED 0x200f73664 -[REASwizzledUIManager reanimated_uiBlockWithLayoutUpdateForRootView:] (REASwizzledUIManager.mm:167) 91 APP_REDACTED 0x20104966c -[RCTUIManager _layoutAndMount] (RCTUIManager.m:1174) 92 APP_REDACTED 0x20101312c __32-[RCTCxxBridge batchDidComplete]_block_invoke (RCTCxxBridge.mm:1503) 93 libdispatch.dylib 0x32923e6a4 _dispatch_call_block_and_release 94 libdispatch.dylib 0x3292402fc _dispatch_client_callout 95 libdispatch.dylib 0x329247890 _dispatch_lane_serial_drain 96 libdispatch.dylib 0x3292483c0 _dispatch_lane_invoke 97 libdispatch.dylib 0x329253000 _dispatch_root_queue_drain_deferred_wlh 98 libdispatch.dylib 0x329252874 _dispatch_workloop_worker_thread 99 libsystem_pthread.dylib 0x3ed43d960 _pthread_wqthread Thread 22 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread Thread 23 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread Thread 24 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread Thread 25 0 libsystem_kernel.dylib 0x3a81296d0 __workq_kernreturn 1 libsystem_pthread.dylib 0x3ed43d9ac _pthread_wqthread EOF ```
anniekao commented 5 months ago

Same issue here

Fungusjuice commented 1 week ago

Any update? Same issue for us, happens to users in production only, Expo SDK 50 and Reanimated 3.6.2, not device or OS version specific.