React-native-reanimated: Reanimated V2 app crashes at launch on android

Created on 15 Jul 2020  路  14Comments  路  Source: software-mansion/react-native-reanimated

Description

i just setup a project with rn 0.63 and added reanimated v2 everything is fine on ios but on android app crashes on launch with attached logcat output below.

Screenshots

this is my MainApplication.java and MainActivity.java files
app
activity

and also this is output of logcat on crash
logcat

Expected behavior

No crash.

Actual behavior

app crashes at launch

Snack or minimal code example

This is link to repository of my boilerplate app https://gitlab.com/aganjali/orbi-app
just clean android gradle, yarn and run!

Package versions

  • React: 16.13.1
  • React Native: 0.63.0
  • React Native Reanimated: 2.0.0-alpha.3
馃悶 Bug

Most helpful comment

Yaaaaaaay it looks like the issue is gone on alpha.4 thank you so much @terrysahaidak
I don't have much time to test right now, but if anything else comes up I'll ping you.

I appreciate it.

All 14 comments

Same error here.

2020-07-15 10:15:15.169 18101-18323/com.app E/AndroidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.app, PID: 18101
    java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZN5folly3f146detail15kEmptyTagVectorE" referenced by "/data/app/com.app-hje6k6CcGWG9-Ng9S-UEmQ==/lib/arm64/libreanimated.so"...
        at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
        at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
        at java.lang.System.loadLibrary(System.java:1667)
        at com.swmansion.reanimated.NativeProxy.<clinit>(NativeProxy.java:25)
        at com.swmansion.reanimated.ReanimatedJSIModulePackage$NativeProxyProvider.get(ReanimatedJSIModulePackage.java:25)
        at com.swmansion.reanimated.ReanimatedJSIModulePackage$NativeProxyProvider.get(ReanimatedJSIModulePackage.java:15)
        at com.facebook.react.bridge.JSIModuleHolder.getJSIModule(JSIModuleHolder.java:25)
        at com.facebook.react.bridge.JSIModuleRegistry.getModule(JSIModuleRegistry.java:26)
        at com.facebook.react.bridge.CatalystInstanceImpl.getJSIModule(CatalystInstanceImpl.java:668)
        at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1267)
        at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:131)
        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1016)
        at java.lang.Thread.run(Thread.java:919)

Same here, not sure why that's happening.

What is that _ZN5folly3f146detail15kEmptyTagVectorE symbol, @kmagiera any ideas?

Same here

This may be fixing the issue but I can't test because alpha 4 is not released yet, and cloning the repo fails (because of https://github.com/software-mansion/react-native-reanimated/issues/984). Any idea when alpha 4 is coming out?

I'm also having an issue with android after upgrading to React Native 0.63 but @SudoPlz your explanation for iOS was perfect and completely resolved my issue so thanks so much for posting the patch!

I tried following the diffs you posted here about android on your "This" link @SudoPlz but I'm still running into issues. What specifically did you change to get it to work?

Below is the error I'm getting now:

Screen Shot 2020-07-17 at 8 59 46 AM

@jakub-gonet do you know when alpha.4 will be released? It seems the tag is already created but it would be great to know when we can expect it!

@KoboBunny apologies for confusing you, I never got it to work, I'm still waiting for one of the maintainers of this repo to post an answer.

I just noticed that my "This" link contained a new .aar file for 0.63.0 and since we're facing a linker issue (which is probably because some method is missing from within those aar files I thought maybe the maintainers are already working on it and already have a fix - that was just an assumption)

alpha 4 exists indeed but I have no idea when they'll release it, we're both on the same boat here and I wish we could get someone from software-mansion to shed some light.

alpha.4 has been released. also, it includes support for RN 0.63. could you test it and post back here?

I'll test in a couple of minutes and let you know, thanks for the heads up @terrysahaidak

Yaaaaaaay it looks like the issue is gone on alpha.4 thank you so much @terrysahaidak
I don't have much time to test right now, but if anything else comes up I'll ping you.

I appreciate it.

alpha.4 has been released. also, it includes support for RN 0.63. could you test it and post back here?

everything is fine! i can close this issue thank you.

Uhh I cloned master and wanted to run Example on my android, but I got the same error. Am I missing something or this error has come back?

@reinismu, which ndk version do you use?

ls $NDK_MODULE_PATH/ndk should help determine that.

I have 21.3.6528147 version and it builds just fine.

I have the same version. Tho I didn't set up NDK_MODULE_PATH env variable. Will see if it helps.

Nop. Still crashes. I do have Google Pixel 3. Maybe it has to do something with it?

I see that lib was built
image

but for some reason it is not picked up :thinking:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArsalanCsquare picture ArsalanCsquare  路  3Comments

sa8ab picture sa8ab  路  3Comments

zxccvvv picture zxccvvv  路  3Comments

nextriot picture nextriot  路  3Comments

dinhmai74 picture dinhmai74  路  3Comments