react-native-reanimated: App crashes with SIGABRT

Description

For some users using vivo, OPPO, Xiaomi, or Samsung phones, we are seeing a crash in the native code.

SIGABRT Abort program 
    /system/lib64/libc.so:139776 abort
    /data/data/in.galaxycard.android/lib-0/libc++_shared.so:753960 0x6fa39be128
    /data/data/in.galaxycard.android/lib-0/libc++_shared.so:738264 __gxx_personality_v0
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:458916 0x6fa2c430a4
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:460204 _Unwind_Resume
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:412756 0x6fa2c37c54
    /data/data/in.galaxycard.android/lib-0/libhermes.so:217704 std::__ndk1::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
    /data/data/in.galaxycard.android/lib-0/libhermes.so:216040 facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)
    /data/data/in.galaxycard.android/lib-0/libhermes.so:257968 0x6fa33cefb0
    /data/data/in.galaxycard.android/lib-0/libhermes.so:317940 0x6fa33dd9f4
    /data/data/in.galaxycard.android/lib-0/libhermes.so:331320 0x6fa33e0e38
    /data/data/in.galaxycard.android/lib-0/libhermes.so:321856 0x6fa33de940
    /data/data/in.galaxycard.android/lib-0/libhermes.so:192780 facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:386972 0x6fa2c3179c
    /data/data/in.galaxycard.android/lib-0/libhermes.so:217704 std::__ndk1::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
    /data/data/in.galaxycard.android/lib-0/libhermes.so:216040 facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)
    /data/data/in.galaxycard.android/lib-0/libhermes.so:257968 0x6fa33cefb0
    /data/data/in.galaxycard.android/lib-0/libhermes.so:317940 0x6fa33dd9f4
    /data/data/in.galaxycard.android/lib-0/libhermes.so:331320 0x6fa33e0e38
    /data/data/in.galaxycard.android/lib-0/libhermes.so:321856 0x6fa33de940
    /data/data/in.galaxycard.android/lib-0/libhermes.so:192780 facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:386972 0x6fa2c3179c
    /data/data/in.galaxycard.android/lib-0/libhermes.so:217704 std::__ndk1::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
    /data/data/in.galaxycard.android/lib-0/libhermes.so:216040 facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)
    /data/data/in.galaxycard.android/lib-0/libhermes.so:257968 0x6fa33cefb0
    /data/data/in.galaxycard.android/lib-0/libhermes.so:317940 0x6fa33dd9f4
    /data/data/in.galaxycard.android/lib-0/libhermes.so:331320 0x6fa33e0e38
    /data/data/in.galaxycard.android/lib-0/libhermes.so:321856 0x6fa33de940
    /data/data/in.galaxycard.android/lib-0/libhermes.so:192780 facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:386872 0x6fa2c31738
    /data/data/in.galaxycard.android/lib-0/libhermes.so:217704 std::__ndk1::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
    /data/data/in.galaxycard.android/lib-0/libhermes.so:216040 facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)
    /data/data/in.galaxycard.android/lib-0/libhermes.so:257968 0x6fa33cefb0
    /data/data/in.galaxycard.android/lib-0/libhermes.so:192780 facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:402364 reanimated::Mapper::execute(facebook::jsi::Runtime&)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:320564 reanimated::MapperRegistry::execute(facebook::jsi::Runtime&)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:294196 reanimated::NativeReanimatedModule::onRender(double)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:250924 0x6fa2c1042c
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:272964 facebook::jni::detail::MethodWrapper<void (reanimated::AnimationFrameCallback::*)(double), &reanimated::AnimationFrameCallback::onAnimationFrame, reanimated::AnimationFrameCallback, void, double>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<reanimated::AnimationFrameCallback, facebook::jni::detail::BaseHybridClass>::JavaPart, facebook::jni::JObject, void>::_javaobject*>, double&&)
    /data/app/in.galaxycard.android-QuduRwrv5PtDhuDtyz0QSg==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libreanimated.so:272796 
    ESE_vJdEE4callEP7_JNIEnvP8_jobjectd:4998792534810842000 0x5345456445656d61

Expected behavior

App should not crash or at least stacktrace should point to the error in the JS land, to allow for debugging.

Actual behavior & steps to reproduce

App crashes randomly.

Snack or minimal code example

We haven’t found a way to replicate this on any of our test devices.

Package versions

  • React Native: 0.63.4
  • React Native Reanimated: 2.0.1
  • NodeJS: 12.20.0
  • Xcode: NA
  • Java & Gradle: 1.8.0_181 gradle 6.5

Affected platforms

  • Android
  • iOS
  • Web

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 4
  • Comments: 42 (7 by maintainers)

Most upvoted comments

Im using reanimated v3.6.2 along with react-native 0.73.4 and this issue is still happening to me. most likely related to app being updated due expo-updates and conflicting somehow with reanimated.

Any suggestions to get this one fixed? affecting 16% of our user base

imo this is still an issue and should be reopened

It happens when App was reloaded in JSContext(restart by react-native-codepush, react-native-exit-app, …etc) and EventHandler was not clear (it keeps Java mNodesManager listener but in Cpp was destroyed). It should be clear when NativeProxy was destroyed. Here is the patch for react-native-reanimated@2.12.0. (We patched it by removing the pre-built aar and applying the fix. And no crash in our production app occurs.)

diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-66-hermes.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-66-hermes.aar
deleted file mode 100644
index ba9d8ae..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-66-hermes.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-66-jsc.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-66-jsc.aar
deleted file mode 100644
index 64d8dc7..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-66-jsc.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-67-hermes.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-67-hermes.aar
deleted file mode 100644
index 29c88fb..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-67-hermes.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar
deleted file mode 100644
index 5caf240..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-67-jsc.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-68-hermes.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-68-hermes.aar
deleted file mode 100644
index da1a050..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-68-hermes.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-68-jsc.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-68-jsc.aar
deleted file mode 100644
index 706aa7a..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-68-jsc.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar
deleted file mode 100644
index bf0ad09..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-69-hermes.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-69-jsc.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-69-jsc.aar
deleted file mode 100644
index f33a22a..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-69-jsc.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-70-hermes.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-70-hermes.aar
deleted file mode 100644
index 13668cf..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-70-hermes.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/react-native-reanimated-70-jsc.aar b/node_modules/react-native-reanimated/android/react-native-reanimated-70-jsc.aar
deleted file mode 100644
index d8f52a9..0000000
Binary files a/node_modules/react-native-reanimated/android/react-native-reanimated-70-jsc.aar and /dev/null differ
diff --git a/node_modules/react-native-reanimated/android/src/main/cpp/NativeProxy.cpp b/node_modules/react-native-reanimated/android/src/main/cpp/NativeProxy.cpp
index 62b7ced..7d21515 100644
--- a/node_modules/react-native-reanimated/android/src/main/cpp/NativeProxy.cpp
+++ b/node_modules/react-native-reanimated/android/src/main/cpp/NativeProxy.cpp
@@ -42,6 +42,10 @@ NativeProxy::NativeProxy(
 NativeProxy::~NativeProxy() {
   // removed temporary, new event listener mechanism need fix on the RN side
   // reactScheduler_->removeEventListener(eventListener_);
+  
+  // cleanup event handler when reloading from codepush
+  auto method = javaPart_->getClass()->getMethod<void()>("unregisterEventHandler");
+  method(javaPart_.get());
 }
 
 jni::local_ref<NativeProxy::jhybriddata> NativeProxy::initHybrid(
diff --git a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java
index f1af5ba..32eddd8 100644
--- a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java
+++ b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NativeProxy.java
@@ -240,6 +240,11 @@ public class NativeProxy {
     mNodesManager.registerEventHandler(handler);
   }
 
+  @DoNotStrip
+  private void unregisterEventHandler() {
+    mNodesManager.unregisterEventHandler();
+  }
+
   @DoNotStrip
   private int registerSensor(int sensorType, int interval, SensorSetter setter) {
     return reanimatedSensorContainer.registerSensor(
diff --git a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java
index 2f32309..254442e 100644
--- a/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java
+++ b/node_modules/react-native-reanimated/android/src/main/java/com/swmansion/reanimated/NodesManager.java
@@ -550,6 +550,10 @@ public class NodesManager implements EventDispatcherListener {
     mCustomEventHandler = handler;
   }
 
+  public void unregisterEventHandler() {
+    mCustomEventHandler = null;
+  }
+
   public void sendEvent(String name, WritableMap body) {
     mEventEmitter.emit(name, body);
   }

Maybe it was fixed in the latest release. If not, ping me then I will send a PR.

Seeing similar crashes:

moto e (XT2052DL)

RN 0.64.0 react-native-reanimated 2.2.0

OS Version: Android 10 (QPGS30.82-141-5)
Report Version: 104

Exception Type: Unknown (SIGABRT)

Application Specific Information:
Abort

Thread 0 Crashed:
0   libc.so                         0xa892f296          abort
1   libart.so                       0xa7b6abe9          art::Runtime::Abort
2   libbase.so                      0xa97f255f          android::base::LogMessage::~LogMessage
3   libart.so                       0xa79d21cb          art::IndirectReferenceTable::AbortIfNoCheckJNI
4   libart.so                       0xa7a806cb          <unknown> + 2812806859
5   libart.so                       0xa7a7cf63          art::JavaVMExt::DecodeWeakGlobal
6   libart.so                       0xa7b9fb93          art::Thread::DecodeJObject
7   libart.so                       0xa7a88bbf          <unknown> + 2812840895
8   split_config.armeabi_v7a.apk    0x7ceee384          _JNIEnv::GetObjectClass
9   split_config.armeabi_v7a.apk    0x7ceeb198          facebook::jni::JObject::getClass
10  split_config.armeabi_v7a.apk    0x7cef6658          <unknown> + 2096064088
11  split_config.armeabi_v7a.apk    0x7cef64fc          <unknown> + 2096063740
12  split_config.armeabi_v7a.apk    0x7cef64bc          <unknown> + 2096063676
13  split_config.armeabi_v7a.apk    0x7cef6458          <unknown> + 2096063576
14  split_config.armeabi_v7a.apk    0x7cef6410          <unknown> + 2096063504
15  split_config.armeabi_v7a.apk    0x7cef5464          <unknown> + 2096059492
16  split_config.armeabi_v7a.apk    0x7cea33b0          <unknown> + 2095723440
17  split_config.armeabi_v7a.apk    0x7ce93bb8          std::__ndk1::function<T>::operator()
18  split_config.armeabi_v7a.apk    0x7cf195d0          reanimated::AnimationFrameCallback::onAnimationFrame
19  split_config.armeabi_v7a.apk    0x7cf19994          facebook::jni::detail::MethodWrapper<T>::dispatch
20  split_config.armeabi_v7a.apk    0x7cf198ac          _ZN8facebook3jni6detail17WrapForVoidReturnIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIN10reanimated22AnimationFrameCallbackENS1_15BaseHybridClassEE8JavaPartENS0_7JObjectEvE11_javaobjectEEEOdEXadL_ZNS1_13MethodWrapperIMS7_FvdEXadL_ZNS7_16onAnimat...
21  split_config.armeabi_v7a.apk    0x7cf197d0          _ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIN10reanimated22AnimationFrameCallbackENS1_15BaseHybridClassEE8JavaPartENS0_7JObjectEvE11_javaobjectEEEOdEXadL_ZNS1_13MethodWrapperIMS7_FvdEXadL_ZNS7_16onAnimatio...
22  split_config.armeabi_v7a.apk    0x7cf1976c          facebook::jni::detail::MethodWrapper<T>::call
23  base.odex                       0x801a1853          <unknown> + 2149193811

I have not found that the patch prevents this error, unfortunately.

@spsaucier Basically I applied the fix from the comment I refered to using patch-package, no changes to the contents. On top of that you will need to rebuild the .aar files on android, which you can enable by adding the following to your app/build.gradle file:

project.ext.reanimated = [
    buildFromSource: true
];

This did the trick for me in terms of backporting this fix for 2.x. But we’re quite eager to upgrade to 3.x since there’s still some unexplainable crashes happening 😅

Samsung here

I’m also experiencing this with RN 0.64.0, react-native-reanimated 2.0.1, gradle 6.7, gradle tools 4.1.3, AS 4.1.3.

I’m forcing fb soloader like this:

    configurations.all {
        resolutionStrategy {
            force "com.facebook.soloader:soloader:0.10.1"
        }
    }

and getting this crash on a Pixel3

2021-04-09 16:59:15.334 32496-32496/com.extra A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32496 (com.xxx), pid 32496 (com.xxx)
2021-04-09 16:59:15.433 32750-32750/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-04-09 16:59:15.433 32750-32750/? A/DEBUG: Build fingerprint: 'google/blueline/blueline:11/RQ2A.210305.006/7119741:user/release-keys'
2021-04-09 16:59:15.433 32750-32750/? A/DEBUG: Revision: 'MP1.0'
2021-04-09 16:59:15.433 32750-32750/? A/DEBUG: ABI: 'arm64'
2021-04-09 16:59:15.436 32750-32750/? A/DEBUG: Timestamp: 2021-04-09 16:59:15+0200
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG: pid: 32496, tid: 32496, name: com.xxx  >>> com.xxx <<<
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG: uid: 10385
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x0  0000000000000000  x1  0000000000007ef0  x2  0000000000000006  x3  0000007fc0d30cd0
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x4  fefeff031e949b0a  x5  fefeff031e949b0a  x6  fefeff031e949b0a  x7  7f7f7f7f7fffff7f
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x8  00000000000000f0  x9  180ad45c6daf92a2  x10 0000000000000000  x11 ffffffc0fffffbdf
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x12 0000000000000001  x13 0000000000000001  x14 ffffffffffffffff  x15 0000007277c36090
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x16 0000007272f49c80  x17 0000007272f2b870  x18 0000007278a70000  x19 0000000000007ef0
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x20 0000000000007ef0  x21 00000000ffffffff  x22 0000006f757ca3a8  x23 00000072782de000
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x24 0000000000000000  x25 0000000000000004  x26 00000070c3148108  x27 0000006fd427bc08
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     x28 0000007182d79a78  x29 0000007fc0d30d50
2021-04-09 16:59:15.437 32750-32750/? A/DEBUG:     lr  0000007272edf2a0  sp  0000007fc0d30cb0  pc  0000007272edf2cc  pst 0000000000000000
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG: backtrace:
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #00 pc 000000000004e2cc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #01 pc 00000000000b8124  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #02 pc 00000000000b43d4  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libc++_shared.so (__gxx_personality_v0+364) (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #03 pc 0000000000070560  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #04 pc 0000000000070a68  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (_Unwind_Resume+116) (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #05 pc 0000000000063ef8  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #06 pc 0000000000037288  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #07 pc 000000000005955c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #08 pc 000000000005b1ec  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #09 pc 000000000005a8c8  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #10 pc 0000000000045b6c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #11 pc 000000000002f76c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #12 pc 000000000005dc70  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #13 pc 0000000000037288  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #14 pc 000000000005955c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #15 pc 000000000005b1ec  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #16 pc 000000000005a8c8  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #17 pc 0000000000045b6c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #18 pc 000000000002f76c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #19 pc 000000000005dc70  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #20 pc 0000000000037288  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::HFContext::func(void*, hermes::vm::Runtime*, hermes::vm::NativeArgs)+324) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #21 pc 000000000005955c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #22 pc 000000000005b1ec  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #23 pc 000000000005a8c8  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #24 pc 0000000000045b6c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #25 pc 000000000002f76c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libhermes.so (facebook::hermes::HermesRuntimeImpl::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)+612) (BuildId: 6f52702204565e62fc1d0d9a58755bb7a4b543a7)
2021-04-09 16:59:15.728 32750-32750/? A/DEBUG:       #26 pc 000000000005dc0c  /data/app/~~u2oPLNtdH2mUqWzX1gDCKQ==/com.extra-Io0D7I0hb2rwDK5qdmOixg==/lib/arm64/libreanimated.so (BuildId: 4b6997303b02151f6daaab1828045eabcec2e319)

Getting this issue with reanimated 3.8.1 and RN 0.73.6 also.

I have the same issue “react-native-reanimated”: “3.8.1”, “react-native”: “0.73.6”,

I get a similar message in my expo dev client on startup:

 present. This may indicate a memory leak due to a retain cycle. > Assertion failed: (condition), function assertWithMessage, file SingleInstanceChecker.h, line 26.
 > assertWithMessage > condition > SingleInstanceChecker.h

it points to this:

reanimated::createReanimatedModule

with v2.14.4

Further investigations lead me to a somewhat unrelated thread (different crash with drawer) that advises to use the useLegacyImplementation, which indeed worked in my case too:

const Drawer = createDrawerNavigator<DrawerParamList>();

function DrawerNavigator() {
    return (
        <Drawer.Navigator
+            useLegacyImplementation
        >
            <Drawer.Screen name="BottomTabs" component={BottomTabs} />
        </Drawer.Navigator>
    );
}

export function RootNavigator() {
    return (
        <NavigationContainer>
            <DrawerNavigator />
        </NavigationContainer>
    );
}

Same issue here on android with: "react-native": "0.67.3", "react-native-reanimated": "^2.9.1",

OS Version: Android 11 (GM1901_14_220617)
Report Version: 104

Exception Type: Unknown (SIGABRT)

Application Specific Information:
Abort

Thread 0 Crashed:
0   libc.so                         0x7de746d40c        abort
1   libc.so                         0x7de748172c        __stack_chk_fail
2   libhermes.so                    0x7a80dafb4c        <unknown> + 526147844940
3   split_config.arm64_v8a.apk      0x7a751bc104        facebook::jsi::Object::setPropertyValue
4   split_config.arm64_v8a.apk      0x7a75224574        facebook::jsi::Object::setProperty<T>
5   split_config.arm64_v8a.apk      0x7a752099e4        reanimated::NativeProxy::~NativeProxy
6   split_config.arm64_v8a.apk      0x7a75209b30        reanimated::NativeProxy::~NativeProxy