react-native icon indicating copy to clipboard operation
react-native copied to clipboard

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)

Open Robiullah2244 opened this issue 2 years ago • 32 comments

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?

Robiullah2244 avatar Jun 16 '23 21:06 Robiullah2244

: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] avatar Jun 16 '23 21:06 github-actions[bot]

:warning: Missing Reproducible Example
:information_source: It looks like your issue is missing a reproducible example. Please provide either:

github-actions[bot] avatar Jun 16 '23 21:06 github-actions[bot]

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.

rvasseur31 avatar Jun 20 '23 06:06 rvasseur31

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

anniewey avatar Jun 26 '23 01:06 anniewey

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).

bgchaudhary avatar Jun 27 '23 04:06 bgchaudhary

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

Robiullah2244 avatar Jun 27 '23 11:06 Robiullah2244

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

BuiHung1612 avatar Jul 05 '23 10:07 BuiHung1612

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

Robiullah2244 avatar Jul 10 '23 13:07 Robiullah2244

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.

Artem99-debug avatar Jul 18 '23 08:07 Artem99-debug

did anyone manage to find a fix for this please?

nscerrimt avatar Jul 25 '23 10:07 nscerrimt

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

dannyhw avatar Aug 01 '23 12:08 dannyhw

I can share logs or stack traces if needed.

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

cortinico avatar Aug 02 '23 14:08 cortinico

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

RijanFedo avatar Aug 09 '23 18:08 RijanFedo

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

nmateo avatar Sep 15 '23 10:09 nmateo

same thing here

yernandus avatar Oct 03 '23 09:10 yernandus

same error

vital-33 avatar Oct 05 '23 15:10 vital-33

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)

limariea avatar Oct 06 '23 10:10 limariea

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:

  • V2142

Google:

  • Nexus 5X
  • Nexus 5

Xiaomi:

  • Redmi 9
  • Redmi Note 8 Pro

Samsung:

  • Galaxy A12

Other:

  • Oppo
  • OnePlus

hungtooc avatar Nov 14 '23 03:11 hungtooc

Same issue

marcus-menezes avatar Jan 03 '24 13:01 marcus-menezes

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?

namti avatar Jan 11 '24 20:01 namti

+1

luicfrr avatar Jan 19 '24 14:01 luicfrr

+1

bkhan932 avatar Jan 20 '24 12:01 bkhan932

please solve the error

shivarajpu avatar Mar 04 '24 12:03 shivarajpu

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

pieterreuse avatar Mar 06 '24 09:03 pieterreuse

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

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

FernandoAOborges avatar Mar 07 '24 10:03 FernandoAOborges

same on React Native 0.73.4

FernandaKPeron avatar Apr 03 '24 12:04 FernandaKPeron

+1

isnolan avatar Apr 25 '24 01:04 isnolan

same OnePlus8Pro

Mahmoudz11 avatar May 16 '24 21:05 Mahmoudz11