-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dlopen failed: "/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3) #59
Comments
To reproduce: react-native init mapboxtest2 --version 0.61.1
cd mapboxtest2
npm install @react-native-mapbox-gl/[email protected] --save
adb shell pm uninstall com.mapboxtest2
react-native run-android
# also start adb logcat to observe the soLoader error |
Any input on the above?! I'd be happy to debug it, but I'd need some hints to where to look. One thing that i found is that on old emulators - API 27 - while on devices we're having the issue with - API R - Apparently they do seems to have some support for both |
Can confirm that we are seeing the same thing. The error occurs on API 30 and API 28 but not API 29. |
Upgrading from React-Native 0.61 to 0.63 solved it for us. |
I was running into the same issue but wasn't able to simply upgrade react-native because of some other dependencies. The fix for this issue is part of SoLoader 0.8.1, you only need to force this dependency to a version higher than 0.8.0. Root level
|
This made my day. I was trying to make the apk from last 6 hours |
this worked for me. thanks a lot. |
For OS 7 it is not working, for others it got fixed, any clue? |
Thank you for this fix. It works in most cases but there are still some devices causing issues even after these changes. For example I have seen
|
@sarthakpranesh we had the same issue in the exact same setup. |
We're seeing this on devices such as Galaxy S9, One Plus 8, One Plus 5T,HUAWEI P30 React Native 0.70.6 |
I though I had solved the issue by upgrading to Here is my current config on react native android {
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
// Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
}
}
}
}
dependencies {
implementation 'com.facebook.soloader:soloader:0.10.4+'
} In
|
@cglacet does it work in [email protected]? |
@RohovDmytro I have no idea, the problem with this issue is that I can't reproduce it myself, I only see crashlytics logs of customers experiencing the crash. |
Have you fixed this issue yet? |
I have same issue |
We're also seeing this crash with RN 0.71.6 and SoLoader 0.10.4 on a OnePlus 8 Pro device running Android 11.
|
I also have the error showing up in my crashlytics:
Device |
Ditto.
I'm seeing this with oneplus8pro and soloader 10.5 as well:
What's more confusing to me is: oneplus8pro seems to be a 64-bit ARM device, yet the code is expecting EM_X86_64 instead of EM_AARCH64...? Unfortunately for now, I've had to shift away from using Hermes 😭 ... and since oneplus8pro is ARM 64-bit, it doesn't seem like I can build another bundle targeting just that... Anyone have any other ideas on things to try? |
+1 we have same issue here, any solution lately? |
We have the same issue on OnePlus. |
I'm on React Native 71.8 and I'm currently seeing this on Android 11 OnePlus devices. Should I be worried about adding the line |
Do you have physical access to the device? If so, you could see if libhermes is missing on the device via adb. |
Apparently SoLoader issues are supposed to be fixed on React Native 72. I’ve just released a new version of my app and will see if that fixes it |
Our app is using We see 2 separate issues: Issue 1Reported on
Complete stacktraceFatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0 result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by java.lang.UnsatisfiedLinkError: dlopen failed: "/data/data/com.hippo.release/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)
at java.lang.Runtime.load0(Runtime.java:942)
at java.lang.System.load(System.java:1628)
at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:841)
at com.facebook.soloader.DirectorySoSource.loadDependencies(DirectorySoSource.java:177)
at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:103)
at com.facebook.soloader.UnpackingSoSource.loadLibrary(UnpackingSoSource.java:587)
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1194)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6735)
at android.app.ActivityThread.access$1300(ActivityThread.java:239)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1915)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) It's interesting, that
The chipsets and their respective instruction sets are as follows:
So all of those devices are AARCH64 and it's unclear why the error says Issue 2Reported on
Complete stacktraceFatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/com.hippo.release-eBL8a5gFXjfFvoGTEd61Mg==/lib/x86 flags = 0]
SoSource 1: com.facebook.soloader.DirectApkSoSource[root = ()]
SoSource 2: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
SoSource 3: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
Native lib dir: /data/app/com.hippo.release-eBL8a5gFXjfFvoGTEd61Mg==/lib/x86
result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.hippo.MainApplication.onCreate(MainApplication.java:63)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5740)
at android.app.ActivityThread.-wrap1()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) This one is different from original issue of this thread. |
@cglacet what's the functional difference between adding |
fixed?? |
Yes it was fixed for me! My Android applications haven’t been getting this sort of crash since I did the work to upgrear to my React Native 72 version. I didn’t do any of the other SoLoader hacks at all |
+1 Still facing issues |
Still getting
after upgrading to rn 0.72 but not having
|
This work for me
I'm using:
|
did any one fix that ? |
Still happening to some devices: Nexus 5X React-Native 0.72.4
|
We have the same issue. Android 8 & 11 "react-native": "0.72.4"
|
Same issue, One Plus 8 Pro "react-native": "0.71.3" if (hermesEnabled.toBoolean()) { Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/{mypackagename}/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0 result: 0 |
The same for me(( |
The same for me too! |
Seeing this issue as well. RN: 0.72.7 ` buildToolsVersion = "33.0.0"
Brand:Google Operating System
|
Here too on RN 0.72.4, all OnePlus8Pro devices |
Same here, OnePlus8Pro and RN 0.63.0 |
Same here, OnePlus8Pro and react-native 0.72.6 |
Same here, OnePlus8Pro on 0.70.6 |
Same here on OnePlus8Pro device and react-native 0.72.6. |
In my case, I managed to fix this by finding an actual underlying error. What that is, is impossible to properly tell generically but it turned out that while I saw these errors in Firebase, there was another actual error in my code (using some non existing state) that I fixed and never made this show up in Firebase anymore. My suggestion: look at the screen/place where Firebase says this error occurs and debug everything on that screen. |
Same error on 0.71.4 react native version. |
We're also experiencing this only on OnePlus8Pro models. dlopen failed: "/data/data/com.dmacpro91.app/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) RN 0.66.1 |
Still getting this issue |
I'm seeing production crashes from OnePlus 8 Pro phones that are unrelated to libhermes or libc++, but instead self-developed libraries that I know are bundled with my app but somehow fail to load on this particular phone, OnePlus 8 Pro (Android 11). In my case, it's 1 user that keeps generating crashes but appearing as if they were multiple users in Crashlytics. Here's some info for Google to pick up:
The code that triggers the dlopen is the following: class MyRNModule(val context: ReactApplicationContext?) : ReactContextBaseJavaModule(
context
), LifecycleEventListener {
init {
// ...
System.loadLibrary("mylib") // this causes a crash
}
// ... I do not know what the solution is. It could be that .so files need to be moved to a specific location to support OnePlus phones, or that OnePlus simply has a bug in their flavor of Android 11 (OxygenOS). Or it could be a virus scanner or system blocking mechanism. Or finally it could also be related to OnePlus devices trying to load the x86-variants of libraries despite the CPUs being ARM-based. Possible thing to try (I don't have a OnePlus device to test with): ndk {
- abiFilters 'x86_64', 'armeabi-v7a', 'arm64-v8a'
+ abiFilters 'armeabi-v7a', 'arm64-v8a'
} |
We're having
.so
loading error when running app on Android emulator R level. Doesn't seems to appear on API 29.I've verified that the apk has correct architecture in the proper folder:
After apk install the lib folder contains proper i386 .so-s.
But when starting the app the
lib-main
folder contains ARM .so-s.See the relevant logcat in this gist
https://gist.github.com/mfazekas/c593726e061a59d265835ead1c5db0dd
Not sure if related but the log has those line:
I can confirm that he file with length 997224 is 386. The arm version which is incorrectly used has
575328
bytes.https://github.com/react-native-mapbox-gl/maps/issues/737
The text was updated successfully, but these errors were encountered: