Closed akashraj9828 closed 10 months 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?
Hey! 👋
It looks like you've omitted a few important sections from the issue template.
Please complete Snack or a link to a repository section.
We're getting this as well
We're getting this as well
@alex-gale are you seeing all 3 variants of the 1st crash and the 2nd crash as well?
Firebase is giving about 6 different variants for the first crash, including some of yours, but not seeing that second one anywhere yet
i have same issue
I got same issue too.
i am getting also same issue but crashes are random only on ios and mostly when a new build is made on first time.
I’m getting this too, have you found any good solutions?
Same issue here, happy to provide logs if needed
I’m getting this too, have you found any good solutions?
Same issue here, happy to provide logs if needed
guy have u found any solutions?
We were using a mix of
Animated
from react-native
and Animated
form react-native-reanimated
Once we migrated from react-native
to react-native-reanimated
completely this bug was resolved once in for all for us.
As for the 2nd bug that I had posted... that was resolved after removing the flipper.
@akashraj9828 what was the root cause ? as in some difference in signature OR execution of Animated
from react-native
and react-native-reanimated
?
I am using Animated
from react-native-reanimated
in a whole project. I am also facing this issue with
React-native: 0.72.7
Reanimated: 3.5.4
@akashraj9828 Thanks for reporting this issue and providing all details, we really appreciate it!
Could you please provide full stack traces for all threads?
Could you please provide full stack traces for all threads?
Also seeing this issue, following.
Does stable version contain this fix?
@iy-913 nope, 3.6.x does not contain the fix, try 3.7.0-nightly or 3.7.0 once we publish it (Jan 2024)
I just reproduced it on simulator with 3.6.1. Oddly, it started to happen after having installed react-native-vector-icons...
The nightly version 3.7.0-nightly-20240109-9e2c33716
solved the problem. Just don't forget to restart metro...
Any update on the release of that fix? It's still impacted some users on our app
We plan to release 3.7.0 this week
After updating to 3.7.0 we seem to have a huge increase in crashes at startup on iOS only
Here are the logs
Main thread
Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x9fbc __pthread_kill + 8
1 libsystem_pthread.dylib 0x5680 pthread_kill + 268
2 libsystem_c.dylib 0x75b90 abort + 180
3 libc++abi.dylib 0x14ff8 __cxxabiv1::__aligned_malloc_with_fallback(unsigned long) + 130
4 libc++abi.dylib 0x143c8 std::__terminate(void (*)()) + 28
5 libc++abi.dylib 0x14360 std::terminate() + 108
6 libobjc.A.dylib 0x3ccd4 objc_terminate + 16
7 libdispatch.dylib 0x4314 _dispatch_client_callout + 40
8 libdispatch.dylib 0x12998 _dispatch_main_queue_drain + 984
9 libdispatch.dylib 0x125b0 _dispatch_main_queue_callback_4CF + 44
10 CoreFoundation 0x3701c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
11 CoreFoundation 0x33d28 __CFRunLoopRun + 1996
12 CoreFoundation 0x33478 CFRunLoopRunSpecific + 608
13 GraphicsServices 0x34f8 GSEventRunModal + 164
14 UIKitCore 0x22c62c -[UIApplication _run] + 888
15 UIKitCore 0x22bc68 UIApplicationMain + 340
16 PerfectDraftMobileApp 0xac9c main + 7 (main.m:7)
17 ??? 0x1c2662dcc (Missing)
com.facebook.react.JavaScript thread
com.facebook.react.JavaScript
0 CoreFoundation 0x6d04 CF_IS_OBJC + 252
1 CoreFoundation 0x6dc4 CFStringGetLength + 148
2 CoreFoundation 0x18d8c CFStringFindWithOptionsAndLocale + 88
3 Foundation 0x10404 -[NSString rangeOfString:options:range:locale:] + 268
4 Foundation 0x4dfc0 -[NSString hasPrefix:] + 52
5 PerfectDraftMobileApp 0x7b7054 RCTDropReactPrefixes + 1032 (RCTUtils.m:1032)
6 PerfectDraftMobileApp 0x763d58 RCTBridgeModuleNameForClass + 80 (RCTBridge.m:80)
7 PerfectDraftMobileApp 0x793620 facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int) + 86 (RCTNativeModule.mm:86)
8 PerfectDraftMobileApp 0xa084a4 facebook::react::JsToNativeBridge::callNativeModules(facebook::react::JSExecutor&, folly::dynamic&&, bool) + 159 (wrap_iter.h:159)
9 PerfectDraftMobileApp 0xc2f388 facebook::react::JSIExecutor::callNativeModules(facebook::jsi::Value const&, bool) + 365 (dynamic-inl.h:365)
10 PerfectDraftMobileApp 0xc317a0 std::__1::__function::__func<facebook::react::JSIExecutor::initializeRuntime()::$_0, std::__1::allocator<facebook::react::JSIExecutor::initializeRuntime()::$_0>, facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*&&, unsigned long&&) + 1348 (jsi.h:1348)
11 PerfectDraftMobileApp 0xd91cd0 std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>::operator()(facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) const + 1156 (function.h:1156)
12 hermes 0x15480 facebook::hermes::debugger::Debugger::jsiValueFromHermesValue(hermes::vm::HermesValue) + 27576
13 hermes 0x28d70 facebook::jsi::JSError::~JSError() + 34552
14 hermes 0x47da8 facebook::jsi::JSError::~JSError() + 161584
15 hermes 0x472b4 facebook::jsi::JSError::~JSError() + 158780
16 hermes 0x29018 facebook::jsi::JSError::~JSError() + 35232
17 hermes 0xddd4 facebook::hermes::HermesRuntime::rootsListLengthForTests() const + 17420
18 PerfectDraftMobileApp 0xd90968 facebook::jsi::WithRuntimeDecorator<facebook::react::(anonymous namespace)::ReentrancyCheck, facebook::jsi::Runtime, facebook::jsi::Runtime>::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) + 754 (decorator.h:754)
19 PerfectDraftMobileApp 0x7e5488 facebook::react::Task::execute(facebook::jsi::Runtime&, bool) + 259 (jsi-inl.h:259)
20 PerfectDraftMobileApp 0x7e2b74 facebook::react::RuntimeScheduler::startWorkLoop(facebook::jsi::Runtime&) const + 1211 (jsi.h:1211)
21 PerfectDraftMobileApp 0x79b150 std::__1::__function::__func<RCTRuntimeExecutorFromBridge(RCTBridge*)::$_0::operator()(std::__1::function<void (facebook::jsi::Runtime&)>&&) const::'lambda'(), std::__1::allocator<RCTRuntimeExecutorFromBridge(RCTBridge*)::$_0::operator()(std::__1::function<void (facebook::jsi::Runtime&)>&&) const::'lambda'()>, void ()>::operator()() + 52 (RCTRuntimeExecutorFromBridge.mm:52)
22 PerfectDraftMobileApp 0x9fffe8 std::__1::__function::__func<facebook::react::Instance::JSCallInvoker::scheduleAsync(std::__1::function<void ()>&&)::$_3, std::__1::allocator<facebook::react::Instance::JSCallInvoker::scheduleAsync(std::__1::function<void ()>&&)::$_3>, void (facebook::react::JSExecutor*)>::operator()(facebook::react::JSExecutor*&&) + 296 (Instance.cpp:296)
23 PerfectDraftMobileApp 0xa0984c std::__1::__function::__func<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8, std::__1::allocator<facebook::react::NativeToJsBridge::runOnExecutorQueue(std::__1::function<void (facebook::react::JSExecutor*)>)::$_8>, void ()>::operator()() + 356 (function.h:356)
24 PerfectDraftMobileApp 0x77f23c facebook::react::tryAndReturnError(std::__1::function<void ()> const&) + 510 (function.h:510)
25 PerfectDraftMobileApp 0x78a768 facebook::react::RCTMessageThread::tryFunc(std::__1::function<void ()> const&) + 69 (RCTMessageThread.mm:69)
26 PerfectDraftMobileApp 0x78a534 invocation function for block in facebook::react::RCTMessageThread::runAsync(std::__1::function<void ()>) + 46 (RCTMessageThread.mm:46)
27 CoreFoundation 0x371b8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
28 CoreFoundation 0x359ac __CFRunLoopDoBlocks + 356
29 CoreFoundation 0x33ee4 __CFRunLoopRun + 2440
30 CoreFoundation 0x33478 CFRunLoopRunSpecific + 608
31 PerfectDraftMobileApp 0x774420 +[RCTCxxBridge runRunLoop] + 337 (RCTCxxBridge.mm:337)
32 Foundation 0xafde0 __NSThread__start__ + 732
33 libsystem_pthread.dylib 0x24d4 _pthread_start + 136
34 libsystem_pthread.dylib 0x1a10 thread_start + 8
It seems to be related to the same problem. We already have 150 crash today alone since upgrading.
I can provide more informations if needed but the native logs we have are pretty much that
@LouisKraemer Thanks for reporting the crash, we will need to investigate it.
It seems to be related to the same problem.
Why do you think so? In the provided stack traces there's no ReanimatedReentrancyCheck::before
so this is not the same crash as reported in this issue.
My bad I just saw the ReetrancyCheck and assumed so Please disregard that
Fixed in 3.7.0.
Fixed in 3.7.0.
The logs I've put in my last message are coming from a release with reanimated 3.7.0
The logs I've put in my last message are coming from a release with reanimated 3.7.0
Yes, but at the same time there's no occurrence of reanimated::ReanimatedReentrancyCheck::before()
so this looks like a different problem not related to this issue.
Do you mind submitting these stack traces in a separate issue?
facebook::jsi::JSError: [Reanimated] Data type not recognized by value unpacker.
Error: [Reanimated] Data type not recognized by value unpacker. at valueUnpacker (WorkletRuntime::WorkletRuntime:1:1477)
0 unknown file -0x4 unknown method
can you help here
@sagar-tomar-groww The error "[Reanimated] Data type not recognized by value unpacker." has already been reported in #5660. Are you able to reproduce this error consistently? We're looking for a reproduction so we can fix it. If yes, please respond in #5660.
Description
The app is randomly crashing(1 out of 15-20 times) when launching the app.
Stack trace from Firebase Crashlytics
Variant 1:
Variant 2:
Variant 3:
There's one more crash that started happening in parallel to the above one.
Stack Trace for this 2nd Crash (Maybe releated)
Packages used
AppDelegate.mm file
Pod File
Steps to reproduce
Snack or a link to a repository
-
Reanimated version
^3.5.4
React Native version
0.72.4
Platforms
iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Release mode
Device
Real device
Device model
iPhone 14 Pro (iOS 17.0.3)
Acknowledgements
Yes