Open heroic opened 3 years ago
The issue is valid!
Hey @heroic. Is it your application?
@piaskowyk yes
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)
``Recently, we at @queimadiaria pushed your new app to production and started to see this same error being catch with Sentry. It's happening a lot with Motorola phones (which is very popular in Brazil).
We are seeing some UnknowCppException too.
com.facebook.jni.UnknownCppException: Unknown
at com.facebook.react.bridge.NativeMap.toString(NativeMap.java)
at com.swmansion.reanimated.NativeProxy$EventHandler.receiveEvent(NativeProxy.java)
at com.swmansion.reanimated.NativeProxy$EventHandler.receiveEvent(NativeProxy.java:60)
at com.facebook.react.views.scroll.ScrollEvent.dispatch(ScrollEvent.java:116)
at com.swmansion.reanimated.NodesManager.handleEvent(NodesManager.java:485)
at com.swmansion.reanimated.NodesManager.onEventDispatch(NodesManager.java:462)
at com.facebook.react.uimanager.events.EventDispatcher.dispatchEvent(EventDispatcher.java:114)
at com.facebook.react.views.scroll.ReactScrollViewHelper.emitScrollEvent(ReactScrollViewHelper.java:61)
at com.facebook.react.views.scroll.ReactScrollViewHelper.emitScrollEndDragEvent(ReactScrollViewHelper.java:35)
at com.facebook.react.views.scroll.ReactScrollView.onTouchEvent(ReactScrollView.java:306)
at android.view.View.dispatchTouchEvent(View.java:14003)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3136)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2820)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at com.swmansion.gesturehandler.react.RNGestureHandlerRootView.dispatchTouchEvent(RNGestureHandlerRootView.java:66)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView.dispatchTouchEvent(RNGestureHandlerEnabledRootView.java:39)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3142)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2834)
at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:495)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1868)
at android.app.Activity.dispatchTouchEvent(Activity.java:4022)
at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:453)
at android.view.View.dispatchPointerEvent(View.java:14262)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5930)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5733)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5180)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5233)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5199)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5207)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5180)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5233)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5199)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5355)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5207)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5412)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5180)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5233)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5199)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5207)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5180)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:8029)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7996)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7957)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:8183)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:189)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:336)
at android.os.Looper.loop(Looper.java:174)
at android.app.ActivityThread.main(ActivityThread.java:7631)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
Samsung here
hi there seems we're having the same issue, our device catch this error
RN: 0.64.2 Reanimated : 2.2.0 Device: Android
OS Version: Android 11 (RP1A.200720.012.E625FDDU1AUD1)
Report Version: 104
Exception Type: Unknown (SIGABRT)
Application Specific Information:
Abort
Thread 0 Crashed:
0 libc.so 0x742799893c abort
1 libhermes-executor-release.so 0x7178e9227c _Unwind_SetGR
2 libfbjni.so 0x710c93b550 __gxx_personality_v0
3 libhermes.so 0x710cf31504 <unknown> + 485548561668
4 libhermes.so 0x710cf31a0c <unknown> + 485548562956
5 libhermes.so 0x710cd81ca0 facebook::hermes::HermesRuntimeImpl::call
6 libreanimated.so 0x70f2e16960 facebook::jsi::Function::call
7 libreanimated.so 0x70f2e3276c <unknown> + 485111310188
8 libreanimated.so 0x70f2e32538 <unknown> + 485111309624
9 libreanimated.so 0x70f2e32474 <unknown> + 485111309428
10 libreanimated.so 0x70f2e323d0 <unknown> + 485111309264
11 libreanimated.so 0x70f2e31350 <unknown> + 485111305040
12 libhermes.so 0x710cd887dc std::__ndk1::function<T>::operator()
13 libhermes.so 0x710cd881ac facebook::hermes::HermesRuntimeImpl::HFContext::func
14 libhermes.so 0x710cd9280c <unknown> + 485546862604
15 libhermes.so 0x710cda51d0 <unknown> + 485546938832
16 libhermes.so 0x710cda6b5c <unknown> + 485546945372
17 libhermes.so 0x710cda633c <unknown> + 485546943292
18 libhermes.so 0x710cd92a68 <unknown> + 485546863208
19 libhermes.so 0x710cd81b04 facebook::hermes::HermesRuntimeImpl::call
20 libreanimated.so 0x70f2e23e60 facebook::jsi::Function::callWithThis
21 libreanimated.so 0x70f2e326bc <unknown> + 485111310012
22 libreanimated.so 0x70f2e32538 <unknown> + 485111309624
23 libreanimated.so 0x70f2e32474 <unknown> + 485111309428
24 libreanimated.so 0x70f2e323d0 <unknown> + 485111309264
25 libreanimated.so 0x70f2e31350 <unknown> + 485111305040
26 libhermes.so 0x710cd887dc std::__ndk1::function<T>::operator()
27 libhermes.so 0x710cd881ac facebook::hermes::HermesRuntimeImpl::HFContext::func
28 libhermes.so 0x710cd9280c <unknown> + 485546862604
29 libhermes.so 0x710cd81b04 facebook::hermes::HermesRuntimeImpl::call
30 libreanimated.so 0x70f2e23e60 facebook::jsi::Function::callWithThis
31 libreanimated.so 0x70f2e23d90 facebook::jsi::Function::callWithThis
32 libreanimated.so 0x70f2ea73a8 facebook::jsi::Function::callWithThis<T>
33 libreanimated.so 0x70f2ea5a78 reanimated::Mapper::execute
34 libreanimated.so 0x70f2e4c8fc reanimated::MapperRegistry::execute
35 libreanimated.so 0x70f2df93f4 reanimated::NativeReanimatedModule::onRender
36 libreanimated.so 0x70f2e06450 <unknown> + 485111129168
37 libreanimated.so 0x70f2e06404 <unknown> + 485111129092
38 libreanimated.so 0x70f2e06398 <unknown> + 485111128984
39 libreanimated.so 0x70f2e0634c <unknown> + 485111128908
40 libreanimated.so 0x70f2e0522c <unknown> + 485111124524
41 libreanimated.so 0x70f2e17244 <unknown> + 485111198276
42 libreanimated.so 0x70f2e0794c std::__ndk1::function<T>::operator()
43 libreanimated.so 0x70f2e69fd0 <unknown> + 485111537616
44 libreanimated.so 0x70f2e69f24 <unknown> + 485111537444
45 libreanimated.so 0x70f2e69eb8 <unknown> + 485111537336
46 libreanimated.so 0x70f2e69e6c <unknown> + 485111537260
47 libreanimated.so 0x70f2e68e54 <unknown> + 485111533140
48 libreanimated.so 0x70f2e17244 <unknown> + 485111198276
49 libreanimated.so 0x70f2e0794c std::__ndk1::function<T>::operator()
50 libreanimated.so 0x70f2e8bba0 reanimated::AnimationFrameCallback::onAnimationFrame
51 libreanimated.so 0x70f2e8bf2c facebook::jni::detail::MethodWrapper<T>::dispatch
52 libreanimated.so 0x70f2e8be50 _ZN8facebook3jni6detail17WrapForVoidReturnIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIN10reanimated22AnimationFrameCallbackENS1_15BaseHybridClassEE8JavaPartENS0_7JObjectEvE11_javaobjectEEEOdEXadL_ZNS1_13MethodWrapperIMS7_FvdEXadL_ZNS7_16onAnimat...
53 libreanimated.so 0x70f2e8bd78 _ZN8facebook3jni6detail15FunctionWrapperIPFvNS0_9alias_refIPNS1_8JTypeForINS0_11HybridClassIN10reanimated22AnimationFrameCallbackENS1_15BaseHybridClassEE8JavaPartENS0_7JObjectEvE11_javaobjectEEEOdEXadL_ZNS1_13MethodWrapperIMS7_FvdEXadL_ZNS7_16onAnimatio...
54 libreanimated.so 0x70f2e8bd1c facebook::jni::detail::MethodWrapper<T>::call
55 base.odex (deleted) 0x712622f784 <unknown> + 485971130244
EOF
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
+1
I use React Native 0.63.4 and React Native Reanimated 2.2.4, and I got almost similar stack traces.
Then I run yarn upgrade react-native
(without bumping RN version), and the app doesn't crash anymore.
Apparently, I was using the old versions of React Native's dependencies and they cause Reanimated to crash.
The crash might not be related to any of the crashes above, but I hope that this fix will at least help somebody.
Seeing this on Android (real devices and emulators) in both debug and release mode when restarting the JS bundle. Anyone found a workaround?
"react-native-reanimated": "2.2.3" "react-native": "0.64.2"
Then I run
yarn upgrade react-native
(without bumping RN version), and the app doesn't crash anymore.
What is your current version after the upgrade?
Then I run
yarn upgrade react-native
(without bumping RN version), and the app doesn't crash anymore.What is your current version after the upgrade?
My React Native version stays the same at 0.63.4. I only upgrade its dependencies. package.json
entries look like this:
"dependencies": {
"react-native": "0.63.4",
}
Hello @Looooong @kirildobrev919 @heroic @jesseproudman @mutablestudio @mgambati @ecauende @rinoarmadiaz @Only-IceSoul
Did you manage to fix the issue, is it still happening for you? Did any one of you manage to create a repro for this issue? Did you clear caches, all of them that are possible to clear?
Thank you for circling back to me if you can, and have a nice day 😊
From our team @nhannah took over the issue. Will ping him.
Hello @Looooong @kirildobrev919 @heroic @jesseproudman @mutablestudio @mgambati @ecauende @rinoarmadiaz @Only-IceSoul
Did you manage to fix the issue, is it still happening for you? Did any one of you manage to create a repro for this issue? Did you clear caches, all of them that are possible to clear?
Thank you for circling back to me if you can, and have a nice day 😊
I had the error with react navigation, I set animation to true, I no longer have problems
@Only-IceSoul where did you do this? Can you point to the docs?
It is still happening for Android devices.
It' still happening with RN 0.68.2
For me, it happens with ( only for Android ): "react-native-reanimated": "2.6.0" "react-native": "0.67.3"
Same issue here on Android with:
"react-native": "0.66.3",
"react-native-reanimated": "2.9.1",
OS Version: Android 12 (SP1A.210812.016.G781U1UEU8EVH4)
Report Version: 104
Exception Type: Unknown (SIGSEGV)
Application Specific Information:
Segfault
Thread 0 Crashed:
0 split_config.arm64_v8a.apk 0x73204b63bc <unknown> + 494463050684
1 [vdso] 0x74621f7678 __kernel_rt_sigreturn
2 libc.so 0x744074f3b8 <unknown> + 499297612728
3 libc.so 0x7440708da4 ioctl
4 libbinder.so 0x745df24070 android::IPCThreadState::talkWithDriver
5 libbinder.so 0x745df252ac android::IPCThreadState::waitForResponse
6 libbinder.so 0x745df25008 android::IPCThreadState::transact
7 libbinder.so 0x745df1cafc android::BpBinder::transact
8 libgui.so 0x74526f7a1c <unknown> + 499599243804
9 libgui.so 0x74526f286c android::DisplayEventReceiver::requestNextVsync
10 libgui.so 0x74526f2074 android::DisplayEventDispatcher::scheduleVsync
11 libandroid_runtime.so 0x74577cc684 <unknown> + 499684001412
12 boot-framework.oat 0x7151aa30 <unknown> + 1901177392
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
Also experiencing crashes. Hermes is enabled on the project
"react-native": "0.68.2", "react": "17.0.2", "react-native-reanimated": "^2.8.0",
`OS Version: Android 11 (RP1A.200720.012.A107FXXU8CVG2) Report Version: 104
Exception Type: Unknown (SIGSEGV)
Application Specific Information: Segfault
Thread 0 Crashed:
0 libc++_shared.so 0xb6eca20a std::ndk1::shared_weak_count::lock
1 libreanimated.so 0xb4115988 std::ndk1::shared_ptr
My initial crash was signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr
.
I think what resolved it for me was to remove this lines in MainActivity.java
as described here:
package com.swmansion.gesturehandler.react.example;
import com.facebook.react.ReactActivity;
- import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
public class MainActivity extends ReactActivity {
- @Override
- protected ReactActivityDelegate createReactActivityDelegate() {
- return new ReactActivityDelegate(this, getMainComponentName()) {
- @Override
- protected ReactRootView createRootView() {
- return new RNGestureHandlerEnabledRootView(MainActivity.this);
- }
- };
- }
}
Other things I did that might have solved the issue :
package.json
: "react-native-gesture-handler": "~2",
watchman watch-del-all
cd android; ./gradlew clean
yarn start --reset-cache
so that's probably not relatedrm -rf .gradle/6.9
but I think this was only because of some ZIp END header not found
error I get from time to time./index.js
):import 'react-native-reanimated';
import 'react-native-gesture-handler'; // https://reactnavigation.org/docs/drawer-navigator#installation
I really feel like the edition of MainActivity.java
is what solved the issue, but since I spent a lot of time trying to resolve this issue I got a little upset and tried many things at once to save a bit of time.
Maybe I was wrong, or at least there is a second problem.
The following code works (my app is fully functional):
export function RootNavigator() {
return (
<NavigationContainer>
<BottomTabs />
</NavigationContainer>
);
}
On the other hand, the following causes the signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr
crash (while it used to work perfectly fine with reanimated/gesture-handler in version < 2):
const Drawer = createDrawerNavigator<DrawerParamList>();
function DrawerNavigator() {
return (
<Drawer.Navigator>
<Drawer.Screen name="BottomTabs" component={BottomTabs} />
</Drawer.Navigator>
);
}
export function RootNavigator() {
return (
<NavigationContainer>
<DrawerNavigator />
</NavigationContainer>
);
}
This happens with the following packages versions:
react-native-reanimated@~2:
version "2.13.0"
resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-2.13.0.tgz#d64c1386626822d4dc22094b4efe028ff2c49cc9"
integrity sha512-yUHyYVIegWWIza4+nVyS3CSmI/Mc8kLFVHw2c6gnSHaYhYA4LeEjH/jBkoMzHk9Xd0Ra3cwtjYKAMG8OTp6JVg==
dependencies:
"@babel/plugin-transform-object-assign" "^7.16.7"
"@babel/preset-typescript" "^7.16.7"
"@types/invariant" "^2.2.35"
invariant "^2.2.4"
lodash.isequal "^4.5.0"
setimmediate "^1.0.5"
string-hash-64 "^1.0.3"
react-native-gesture-handler@~2:
version "2.8.0"
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-2.8.0.tgz#ef9857871c10663c95a51546225b6e00cd4740cf"
integrity sha512-poOSfz/w0IyD6Qwq7aaIRRfEaVTl1ecQFoyiIbpOpfNTjm2B1niY2FLrdVQIOtIOe+K9nH55Qal04nr4jGkHdQ==
dependencies:
"@egjs/hammerjs" "^2.0.17"
hoist-non-react-statics "^3.3.0"
invariant "^2.2.4"
lodash "^4.17.21"
prop-types "^15.7.2"
"@react-navigation/bottom-tabs@^6.4":
version "6.4.1"
resolved "https://registry.yarnpkg.com/@react-navigation/bottom-tabs/-/bottom-tabs-6.4.1.tgz#54e469077f7c9f3750e6727ec8f298d5497b6ae5"
integrity sha512-b12o0aVe+A9bUVP31kQLVcZ5l4Inm/7XhpSS5FvwhoI9L2iwofK1tt98uEQd79NIAklfui+IqRqr2X6XKkygbA==
dependencies:
"@react-navigation/elements" "^1.3.7"
color "^4.2.3"
warn-once "^0.1.0"
"@react-navigation/core@^6.4.1":
version "6.4.1"
resolved "https://registry.yarnpkg.com/@react-navigation/core/-/core-6.4.1.tgz#2d290cadc23992e914c45b5712efa30e5f37587f"
integrity sha512-M1rTS+qaw84ZItvObwFTjuvXfrJRnXL2uJJeiDVwSvu7/30Wp6bkL3/MfLUEA6I4CzJhL74iRSfCKSVe7kVhlw==
dependencies:
"@react-navigation/routers" "^6.1.3"
escape-string-regexp "^4.0.0"
nanoid "^3.1.23"
query-string "^7.0.0"
react-is "^16.13.0"
use-latest-callback "^0.1.5"
"@react-navigation/drawer@^6.5":
version "6.5.1"
resolved "https://registry.yarnpkg.com/@react-navigation/drawer/-/drawer-6.5.1.tgz#07c920f55cd95c1e6790324402c74e55dcb55308"
integrity sha512-gBXDhAPZ0e+gRhdeZg35sNorm9B0QVtzNx0wiTUNVPa7F/Ij/EUx7J5xb7hcm2h6Wr79yxtv//GwxlTfzeXOJw==
dependencies:
"@react-navigation/elements" "^1.3.7"
color "^4.2.3"
warn-once "^0.1.0"
The complete crash log is quite uninformative but here it is just in case someone sees something:
{notificationID: "20", callstack: "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'OnePlus/OnePlus6T/OnePlus6T:11/RKQ1.201217.002/2111252327:user/release-keys'
Revision: '0'
ABI: 'arm64'
Timestamp: 2022-11-25 10:49:29+0100
pid: 4959, tid: 4959, name: app.dev >>> app.dev <<<
uid: 10586
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
x0 0000000000000000 x1 000000000000135f x2 0000000000000006 x3 0000007ff9830e90
x4 00000000ebad808a x5 00000000ebad808a x6 00000000ebad808a x7 00000000ebad808b
x8 00000000000000f0 x9 fba0a8c3da0d15cd x10 0000000000000000 x11 ffffffc0fffffbdf
x12 0000000000000001 x13 0000000000000045 x14 0000000000000004 x15 0000000000000004
x16 0000007560f96c80 x17 0000007560f78b70 x18 0000007565392000 x19 000000000000135f
x20 000000000000135f x21 00000000ffffffff x22 ffffff8a9b95efff x23 0000007ff98310f0
x24 00000075646a1000 x25 00000073de3c47b0 x26 0000000000000001 x27 0000000000000001
x28 0000007ff9831740 x29 0000007ff9830f10
lr 0000007560f2c3e0 sp 0000007ff9830e70 pc 0000007560f2c40c pst 0000000000000000
backtrace:
#00 pc 000000000004e40c /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 07fbaeed7b7a19203975f06be6f1d5ef)
#01 pc 00000000000af7e4 /data/app/~~xtK0DgSVVggKgHEwCsRSuA==/app.dev-UDxQw0fzaAwDkFpPwYkLVA==/lib/arm64/libc++_shared.so (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
#02 pc 00000000000aedc8 /data/app/~~xtK0DgSVVggKgHEwCsRSuA==/app.dev-UDxQw0fzaAwDkFpPwYkLVA==/lib/arm64/libc++_shared.so (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
#03 pc 00000000000aebf8 /data/app/~~xtK0DgSVVggKgHEwCsRSuA==/app.dev-UDxQw0fzaAwDkFpPwYkLVA==/lib/arm64/libc++_shared.so (__gxx_personality_v0+200) (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
#04 pc 000000000022bd3c /data/app/~~xtK0DgSVVggKgHEwCsRSuA==/app.dev-UDxQw0fzaAwDkFpPwYkLVA==/lib/arm64/libreanimated.so (unwind_phase2+156) (BuildId: 3e7719d432cdb9c68067bc821ad5b7ee95fd524d)", name: "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***", reason: "Unknown", date: 1669369769433}
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>
);
}
I have this error. The underlying cause is: java_vm_ext.cc:577] JNI DETECTED ERROR IN APPLICATION: use of invalid jobject 0x778ee2d7b0 java_vm_ext.cc:577] from void com.swmansion.reanimated.NativeProxy$AnimationFrameCallback.onAnimationFrame(double)
Fixed it on my codebase. removed a NativeViewGestureHandler from my react dom. - provided by 'react-native-gesture-handler'
For me, the source of the crash is I am forgetting to import the Bundle in MainActivity.java
import android.os.Bundle;
As mentioned in the react navigation docs:
Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI ERROR (app bug): jobject is an invalid JNI transition frame reference or invalid reference:
0x636e6174736e4920 (use of invalid object) in call to GetObjectRefType
from void com.swmansion.reanimated.NativeProxy$AnimationFrameCallback.onAnimationFrame(double)'
In my case, it was a system crash from a missing Android Bluetooth permission during the animation. I find it using a setTimeout function to make sure the animation finishes.
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
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.
@kyunkakata Thanks for putting me on the right track! In case anyone else comes across this: This fix has indeed been shipped as https://github.com/software-mansion/react-native-reanimated/pull/3954 for 3.x
Patch for 2.x users (like me 🙃 ) https://github.com/software-mansion/react-native-reanimated/pull/3954#issuecomment-1406833800
How did you apply that patch @pepf?
@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 😅
I have not found that the patch prevents this error, unfortunately.
The solution is to upgrade your Reanimated to newer version. Please use Reanimated 3.
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
I have the same issue "react-native-reanimated": "3.8.1", "react-native": "0.73.6",
Same issue, crashes on every second hot reload in dev mode on Android with an error:
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE)
Dependencies are:
"react-native": "0.73.6",
"react-native-gesture-handler": "^2.16.0",
"react-native-reanimated": "^3.8.1",
"react-native-reanimated-carousel": "^4.0.0-alpha.10",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.30.1",
"react-native-svg": "^15.1.0",
Getting this issue with reanimated 3.8.1
and RN 0.73.6
also.
Getting this issue with reanimated 2.9.1
and RN 0.66.4
also.
I encountered this crash in the production environment.
Dependencies are:
"react-native": "0.70.4", "react-native-gesture-handler": "2.14.0", "react-native-reanimated": "^2.14.4", "react-native-screens": "^3.18.2",
After updating RN and react-native-screens
it got fixed, no more crashes on Android
Right now dependencies are looking like this:
"react-native": "0.74.2",
"react-native-gesture-handler": "^2.16.0",
"react-native-reanimated": "^3.8.1",
"react-native-reanimated-carousel": "^4.0.0-alpha.10",
"react-native-safe-area-context": "^4.10.7",
"react-native-screens": "^3.32.0",
"react-native-svg": "^15.2.0",
Description
For some users using vivo, OPPO, Xiaomi, or Samsung phones, we are seeing a crash in the native code.
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
Affected platforms