react-native-reanimated
react-native-reanimated copied to clipboard
[2.2.2] [Android] The application crashes on launch with react-native 0.65.1
Description
After updating to react-native 0.65.1 the application crashes on launch. I previously tried with reanimated 2.2.1 and it crashes with the same error. I have Hermes enabled and the app crashes in both release and debug mode.
Expected behavior
The app launches.
Actual behavior & steps to reproduce
The app crashes on launch with the following error (crash.log):
09-15 11:38:00.229 2275 2584 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1 in tid 2584 (mqt_js), pid 2275 (nts.development)
09-15 11:38:00.319 2591 2591 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
09-15 11:38:00.324 939 939 I tombstoned: received crash request for pid 2584
09-15 11:38:00.326 2591 2591 I crash_dump64: performing dump of process 2275 (target tid = 2584)
09-15 11:38:00.335 2591 2591 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-15 11:38:00.336 2591 2591 F DEBUG : Build fingerprint: 'google/sargo/sargo:11/RQ3A.210805.001.A1/7474174:user/release-keys'
09-15 11:38:00.336 2591 2591 F DEBUG : Revision: 'MP1.0'
09-15 11:38:00.336 2591 2591 F DEBUG : ABI: 'arm64'
09-15 11:38:00.336 2591 2591 F DEBUG : Timestamp: 2021-09-15 11:38:00-0300
09-15 11:38:00.336 2591 2591 F DEBUG : pid: 2275, tid: 2584, name: mqt_js >>> com.candidly.photo.moments.development <<<
09-15 11:38:00.336 2591 2591 F DEBUG : uid: 10633
09-15 11:38:00.336 2591 2591 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1
09-15 11:38:00.336 2591 2591 F DEBUG : Cause: null pointer dereference
09-15 11:38:00.336 2591 2591 F DEBUG : x0 0000000000000028 x1 0000000000000000 x2 0000000000000000 x3 0000000000000000
09-15 11:38:00.336 2591 2591 F DEBUG : x4 0000000000000010 x5 0000007853644218 x6 0000000000000022 x7 000000000000007d
09-15 11:38:00.336 2591 2591 F DEBUG : x8 00000000000003c0 x9 7efdb00a52ffebae x10 0000000000000002 x11 0000000000000001
09-15 11:38:00.336 2591 2591 F DEBUG : x12 0000007af40ec22b x13 0000000000000000 x14 0000007af4183d22 x15 00000077f0000000
09-15 11:38:00.336 2591 2591 F DEBUG : x16 0000007af4180cd0 x17 0000007af4103ad4 x18 0000007852752000 x19 0000007a0357ef60
09-15 11:38:00.336 2591 2591 F DEBUG : x20 0000000000000001 x21 0000007853647000 x22 00000078536441d8 x23 0000007a0357f170
09-15 11:38:00.336 2591 2591 F DEBUG : x24 0000007a0357ef18 x25 0000007a0357f048 x26 0000007853647000 x27 0000000000015000
09-15 11:38:00.336 2591 2591 F DEBUG : x28 0000000002000000 x29 0000007853644610
09-15 11:38:00.336 2591 2591 F DEBUG : lr 00000078537d5190 sp 00000078536441c0 pc 00000078537d5190 pst 0000000060000000
09-15 11:38:00.559 2591 2591 F DEBUG : backtrace:
09-15 11:38:00.559 2591 2591 F DEBUG : NOTE: Function names and BuildId information is missing for some frames due
09-15 11:38:00.559 2591 2591 F DEBUG : NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
09-15 11:38:00.559 2591 2591 F DEBUG : NOTE: found under the lib/ directory are readable.
09-15 11:38:00.559 2591 2591 F DEBUG : #00 pc 0000000000110190 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #01 pc 0000000000101370 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #02 pc 00000000001011a8 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #03 pc 000000000009353c /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #04 pc 0000000000092f30 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #05 pc 0000000000037e08 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #06 pc 0000000000030700 /data/data/com.candidly.photo.moments.development/lib-main/libhermes.so
09-15 11:38:00.559 2591 2591 F DEBUG : #07 pc 000000000001ab8c /data/data/com.candidly.photo.moments.development/lib-main/libhermes-executor-common-release.so
09-15 11:38:00.559 2591 2591 F DEBUG : #08 pc 000000000008f954 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #09 pc 00000000000872d8 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #10 pc 0000000000087088 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #11 pc 0000000000064e88 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #12 pc 0000000000063a88 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #13 pc 0000000000059248 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #14 pc 00000000000591c0 /data/data/com.candidly.photo.moments.development/lib-main/libreactnativejni.so
09-15 11:38:00.559 2591 2591 F DEBUG : #15 pc 000000000013ced4 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #16 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #17 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #18 pc 000000000031831c /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #19 pc 000000000030e648 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+996) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #20 pc 000000000067df14 /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1032) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #21 pc 000000000012da14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #22 pc 000000000036e0d0 /system/framework/framework.jar (offset 0x91a000) (android.os.Handler.handleCallback+4)
09-15 11:38:00.559 2591 2591 F DEBUG : #23 pc 000000000067f740 /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1224) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.559 2591 2591 F DEBUG : #24 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #25 pc 000000000036df3c /system/framework/framework.jar (offset 0x91a000) (android.os.Handler.dispatchMessage+8)
09-15 11:38:00.560 2591 2591 F DEBUG : #26 pc 000000000067d59c /apex/com.android.art/lib64/libart.so (MterpInvokeSuper+2468) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #27 pc 000000000012d894 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_super+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #28 pc 0000000000339168 [anon:dalvik-classes.dex extracted in memory from /data/app/~~tjL85cv2j6Ps6IIN163LHw==/com.candidly.photo.moments.development-DfcouTMLhLWCCmxv6WPAcA==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage)
09-15 11:38:00.560 2591 2591 F DEBUG : #29 pc 0000000000305c44 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #30 pc 000000000066b24c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #31 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #32 pc 000000000201a388 /memfd:jit-cache (deleted) (offset 0x2000000) (android.os.Looper.loop+1448)
09-15 11:38:00.560 2591 2591 F DEBUG : #33 pc 00000000001337e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #34 pc 00000000001a8a94 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #35 pc 000000000031831c /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #36 pc 0000000000305d04 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+460) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #37 pc 000000000030dc34 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #38 pc 000000000030e62c /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+968) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #39 pc 000000000067f49c /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #40 pc 000000000012d994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #41 pc 00000000003392f6 [anon:dalvik-classes.dex extracted in memory from /data/app/~~tjL85cv2j6Ps6IIN163LHw==/com.candidly.photo.moments.development-DfcouTMLhLWCCmxv6WPAcA==/base.apk] (com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run+74)
09-15 11:38:00.560 2591 2591 F DEBUG : #42 pc 000000000067e21c /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+1808) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #43 pc 000000000012da14 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #44 pc 00000000000eb7d0 /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
09-15 11:38:00.560 2591 2591 F DEBUG : #45 pc 0000000000305c44 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.6432830707213048161)+268) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #46 pc 000000000066b24c /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+780) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #47 pc 000000000013cff8 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #48 pc 0000000000133564 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #49 pc 00000000001a8a78 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #50 pc 0000000000554cbc /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+460) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #51 pc 00000000005a4058 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1308) (BuildId: 0183cc6150704cdc371a87b659800e56)
09-15 11:38:00.560 2591 2591 F DEBUG : #52 pc 00000000000afd4c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
09-15 11:38:00.560 2591 2591 F DEBUG : #53 pc 0000000000050288 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
Package versions
- React Native: 0.65.1
- React Native Reanimated: 2.2.2
- NodeJS: 16.9.1
- Xcode: 12.5.1
- Java: OpenJDK 11
- Gradle: 6.9.1
- Gradle Android Plugin: 4.2.2
Affected platforms
- [X] Android
- [ ] iOS
- [ ] Web
Issue validator
The issue is valid!
I too am experiencing this crash too
Got this error as well same crashlog
Same here
Same here in version 0.64.1 , I tried a lot ti fix this ( but in debug mode even the using flipper debugger craches only on android but in iOS it works fine ) reanimated works fin when disabling the debug mode , cause it blocks m I choose another third library) it doesn't make sense to block debug mode , not every person has a Mac for builds
Make sure you have added "react-native-reanimated/plugin"
plugin to your babel config and it is the last one in the array. Also, Don't forget to add import 'react-native-reanimated';
at the top of your application's entry point JS file(index.js).
@malikKartik
Also, Don't forget to add import 'react-native-reanimated'; at the top of your application's entry point JS file(index.js).
This solved it for me. I knew this was required for RNGH, but didn't realize it was needed for this library as well.
Thanks!
@malikKartik
Also, Don't forget to add import 'react-native-reanimated'; at the top of your application's entry point JS file(index.js).
This solved it for me. I knew this was required for RNGH, but didn't realize it was needed for this library as well.
Thanks!
Same here! @piaskowyk @malikKartik is this a new requirement of version 2.2.0? Should we update the doc? I think I can submit a PR if so
@donatoaguirre24 , It is already there on the installation page, As far as I remember.
I just checked and did not see it 😕
Getting an issue with 2.2.2:
I have this in the entry point index.js
:
import 'react-native-reanimated';
and specified "react-native-reanimated/plugin"
as the last plugin in babel config, but getting this in iOS when making react-native-reanimated
imports:
Error: If you want to use Reanimated 2 then go through our installation steps https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation
.
I can't enable Hermes for iOS and don't know if this is also a required step (as it is for Android).
You have to make a new build after pod install, have you done that too?
You have to make a new build after pod install, have you done that too?
Yes, sure. Build, clean, build, remove pods, node_modules, reinstall again, try different versions - I did that at least a dozen of times
I am having an issue when building for iOS 15 with version 2.2.2, this time with Pods:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/UIResponder+Reanimated.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/UIResponder+Reanimated.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods')
CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/REAInitializer.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/REAInitializer.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods')
(2 failures)
Any help will be appreciated!
You have to make a new build after pod install, have you done that too?
Yes, sure. Build, clean, build, remove pods, node_modules, reinstall again, try different versions - I did that at least a dozen of times
resolved ?
I am having an issue when building for iOS 15 with version 2.2.2, this time with Pods:
** BUILD FAILED ** The following build commands failed: CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/UIResponder+Reanimated.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/UIResponder+Reanimated.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods') CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/REAInitializer.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/REAInitializer.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods') (2 failures)
Any help will be appreciated!
i got exactly the same error!
You have to make a new build after pod install, have you done that too?
Yes, sure. Build, clean, build, remove pods, node_modules, reinstall again, try different versions - I did that at least a dozen of times
resolved ?
Nope, I just used Animated from react-native.
You have to make a new build after pod install, have you done that too?
Yes, sure. Build, clean, build, remove pods, node_modules, reinstall again, try different versions - I did that at least a dozen of times
are you facing this issue for IOS and you are not using hermes in IOS, is that correct?
I am having an issue when building for iOS 15 with version 2.2.2, this time with Pods:
** BUILD FAILED ** The following build commands failed: CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/UIResponder+Reanimated.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/UIResponder+Reanimated.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods') CompileC /Users/relvis/Library/Developer/Xcode/DerivedData/myapp-gvcwxfuwxztfbrcqvssncjqsokzh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNReanimated.build/Objects-normal/x86_64/REAInitializer.o /Users/relvis/Projects/RNProjects/myapp/node_modules/react-native-reanimated/ios/native/REAInitializer.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods') (2 failures)
Any help will be appreciated!
i got exactly the same error!
@benben2019 @kuzzmi can you share some more specifications like your development device, testing simulator IOS version, and all the setup steps you have followed let me try to reproduce it on my end? I have done the setup for Reanimated quite a few times but never faced this issue.
Check with react-native-reanimated": "^2.3.0-beta.2
Make sure you have added
"react-native-reanimated/plugin"
plugin to your babel config and it is the last one in the array. Also, Don't forget to addimport 'react-native-reanimated';
at the top of your application's entry point JS file(index.js).
Still not working. Application crashes in debug mode unexpectedly
Try this, works for me..! "react-native-reanimated": "^2.3.0-beta.2",
1. npm install react-native-reanimated@next --S
2. cd ios && pod install && cd ..
3. Delete libraries on ~/Library/Developer/Xcode/DerivedData
4. run again project npx react-native run-ios
I'm getting the Fatal signal 11 crash on Android with react-native-reanimated 2.2.2
On Android react native 0.67.1 with Hermes Engine enabled, the same error occurred when connecting to v8Debugger during debug build. But Release build .aab does not crash.
F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 23599 (create_react_co)
Downgrading the major version to v1.13.4 instead of v2.3.2 fixed the problem, but I don't know what caused the crash or why it resolved.
Downgrading all the way from v2 to v1? Ouch...
Does anyone still encounter this issue with the most recent version of reanimated?
Unfortunately, I still get this with RN 0.67.4, reanimated 2.5.0. I am using react-native-v8... could that be the reason?
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7469636f6c657628
x0 b400007d0fedad70 x1 0000007ca4cfd338 x2 0000000000000002 x3 0000000000000004
x4 0000007ca4cfd33a x5 0000007ca4cfd368 x6 0000000000000001 x7 0000000000000001
x8 00000000000000b9 x9 1baffed00baffedf x10 b400007ccff02d70 x11 b400007d0fedad70
x12 0000000000000001 x13 0000000000000003 x14 000000000004200c x15 0000000030000000
x16 0000007c12757dc8 x17 0000007c11e2ea1c x18 0000007ca0f0c000 x19 7469636f6c657610
x20 b400007ebfe79040 x21 0000007c127789fc x22 0000000000000005 x23 0000007ca4d05000
x24 0000007c13b38e8c x25 0000007c12778000 x26 0000007b0a646e51 x27 0000007ca4d05000
x28 b400007ebfe84100 x29 0000007ca4cfd480
lr 0000007c13b71f54 sp 0000007ca4cfd480 pc 0000007c11e2ea48 pst 00000000a0001000
backtrace:
#00 pc 0000000000deaa48 /data/app/~~vJSdr9OV4egKJ24_qiga8w==/com.testapp-QsLrKpSyxD4xIiETqAImXQ==/lib/arm64/libv8android.so (v8::internal::GlobalHandles::NodeSpace<v8::internal::GlobalHandles::Node>::Release(v8::internal::GlobalHandles::Node*)+44) (BuildId: d77b0179dd66c987)
#01 pc 00000000000abf50 /data/app/~~vJSdr9OV4egKJ24_qiga8w==/com.testapp-QsLrKpSyxD4xIiETqAImXQ==/lib/arm64/libv8executor.so (rnv8::V8PointerValue::~V8PointerValue()+104) (BuildId: 4333bd01b6f2f93e121b86fc0b8d8aac4756be49)
#02 pc 00000000000ac660 /data/app/~~vJSdr9OV4egKJ24_qiga8w==/com.testapp-QsLrKpSyxD4xIiETqAImXQ==/lib/arm64/libv8executor.so (rnv8::V8PointerValue::invalidate()+52) (BuildId: 4333bd01b6f2f93e121b86fc0b8d8aac4756be49)
Make sure you have added
"react-native-reanimated/plugin"
plugin to your babel config and it is the last one in the array. Also, Don't forget to addimport 'react-native-reanimated';
at the top of your application's entry point JS file(index.js).
Great! This works for me. Thanks. I am using this version: "react-native-reanimated": "~2.1.0"
Unfortunately, I import 'react-native-reanimated' but still have the same bug. It only appears on Android, and only appears occasionally when I use the @gorhom/bottom-sheet
library (which internally uses reanimated).
using
"react-native": "0.68.2",
"react-native-reanimated": "2.8.0",
added "react-native-reanimated/plugin"
to babel config and import 'react-native-reanimated';
at the top of my app.js
still getting the same error :(
The following build commands failed:
CompileC /Users/myuser/Library/Developer/Xcode/DerivedData/client-bomppqxdrksdxubbkiesiudkdvdq/Build/Intermediates.noindex/ArchiveIntermediates/client\ Debug/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNReanimated.build/Objects-normal/arm64/RemoteObject.o /Users/myuser/my-project/node_modules/react-native-reanimated/Common/cpp/SharedItems/RemoteObject.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNReanimated' from project 'Pods')
(1 failure)