facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.54k stars 24.37k forks source link

MainApplication.onCreate: java.lang.UnsatisfiedLinkError - dlopen failed: "/data/data/com.patenteapp/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62) #37943

Open Robiullah2244 opened 1 year ago

Robiullah2244 commented 1 year ago

Description

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/com.patenteapp/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

React Native Version

0.70.10

Output of npx react-native info

System: OS: macOS 13.1 CPU: (8) arm64 Apple M1 Pro Memory: 76.67 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.3.0 - /opt/homebrew/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 9.6.7 - /opt/homebrew/bin/npm Watchman: 2023.03.27.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/mdrobiullah/.rvm/gems/ruby-3.0.0/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9514443 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.14.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.10 => 0.70.10 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

It randomly happens in my live app.

image

Snack, code example, screenshot, or link to a repository

What code do I have to paste here?

github-actions[bot] commented 1 year ago
:warning: Newer Version of React Native is Available!
:information_source: You are on a supported minor version, but it looks like there's a newer patch available - 0.70.10. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
github-actions[bot] commented 1 year ago
:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide either:
rvasseur31 commented 1 year ago

For information, I too have this bug report on Firebase Crashlytics. While analyzing the bug, I noticed that it had occurred 6 times in total, even though my application had not been officially validated by Google. Validation date and time: June 5, 15:45 Date and time of first crash: May 31, 15:51:47 Date and time of last crash: June 1, 13:12:07

NB. This is the same version and the same build version, and I had activated managed publication. NB2. Many crashes on at least 5 of our apps I have on Firebase Crashlytics occur on a rooted OnePlus8Pro.

anniewey commented 1 year ago

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

bgchaudhary commented 1 year ago

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

Got the same error for the same device OnePlus8Pro (Android 11).

Robiullah2244 commented 1 year ago

I updated the React native version to 0.70.10. But still the same issue

BuiHung1612 commented 1 year ago

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

Got the same error for the same device OnePlus8Pro (Android 11).

image Same toooo

Robiullah2244 commented 1 year ago

I am experiencing issues on the following device models: Galaxy A12, OnePlus8Pro, Redmi 9, MED-LX9N, Mi 9X

Artem99-debug commented 1 year ago

Experiencing the same thing on oneplus8Pro. I did try using my app with oneplus8pro and even though i get this error in firebase nothing happens when using the app. I wonder what's going on.

nscerrimt commented 1 year ago

did anyone manage to find a fix for this please?

dannyhw commented 1 year ago

Getting this in react native 0.72 too anyone know what this is? I can share logs or stack traces if needed.

cortinico commented 1 year ago

I can share logs or stack traces if needed.

We would need a consistent reproducer to handle those type of issues

rijan08 commented 1 year ago

Facing the same issue with oneplus8pro(Android 11).Please update the if there is any fix for this !

nmateo commented 1 year ago

Getting the same issue on some devices:

Nexus5X OnePlus8Pro

React-Native 0.72.4 Android NDK 23.1.7779620 minSdkVersion 21 compileSdkVersion 33 targetSdkVersion 33

yernandus commented 1 year ago

same thing here

vital-33 commented 1 year ago

same error

limariea commented 1 year ago

Occurs on OnePlus8Pro and Nexus 5X devices. Errors are sent to the crashlytics on the production environment

Device OnePlus8Pro:

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.myapp/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:896)
       at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:725)
       at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:649)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:629)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
       at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
       at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
       at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1017)
       at java.lang.Thread.run(Thread.java:923)

Device Nexus 5X:

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
    SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.myapp/lib-main flags = 1]
    SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.myapp-fd7YdPXtHMgkfGyy4U2kUg==/lib/x86 flags = 0]
    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.myapp-fd7YdPXtHMgkfGyy4U2kUg==/lib/x86
 result: 0
       at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:896)
       at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:725)
       at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:649)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:629)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
       at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
       at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
       at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1017)
       at java.lang.Thread.run(Thread.java:764)
hungtooc commented 1 year ago

same issue,

java.lang.UnsatisfiedLinkError - dlopen failed: "/data/data/com.***.***/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)

Devices: Vivo:

Google:

Xiaomi:

Samsung:

Other:

marcus-menezes commented 11 months ago

Same issue

namti commented 10 months ago

Occurs on OnePlus8Pro and Nexus 5X devices. Errors are sent to the crashlytics on the production environment

Device OnePlus8Pro:

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/data/com.myapp/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:896)
      at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:725)
      at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:649)
      at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:629)
      at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
      at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
      at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
      at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1017)
      at java.lang.Thread.run(Thread.java:923)

Device Nexus 5X:

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
  SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.myapp/lib-main flags = 1]
  SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/com.myapp-fd7YdPXtHMgkfGyy4U2kUg==/lib/x86 flags = 0]
  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.myapp-fd7YdPXtHMgkfGyy4U2kUg==/lib/x86
 result: 0
       at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:896)
       at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:725)
       at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:649)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:629)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
       at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
       at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
       at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1017)
       at java.lang.Thread.run(Thread.java:764)

Same as yours. I wonder if they are test devices from Google?

luicfrr commented 10 months ago

+1

bkhan932 commented 10 months ago

+1

shivarajpu commented 9 months ago

please solve the error

pieterreuse commented 9 months ago

+1 - one of my users has this on a OnePlus8Pro

FernandoAOborges commented 8 months ago

+1 - one of my users has this on a OnePlus8Pro

same here: "react-native": "0.71.8",

FernandaKPeron commented 8 months ago

same on React Native 0.73.4

isnolan commented 7 months ago

+1

Mahmoudz11 commented 6 months ago

same OnePlus8Pro

manjubhatt commented 5 months ago

same issue on Android 13

wahidshadab commented 5 months ago

+1

Brunonascdev commented 4 months ago

+1

interstates21 commented 2 months ago

+1

dmytrokhomenko commented 4 weeks ago

same issue

VictorGanenco1 commented 6 days ago

same issue