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

couldn't find DSO to load: libhermes.so SoSource 0: com.facebook.soloader.ApkSoSource

Open sudhanshu-busy opened this issue 1 year ago • 2 comments

Description

Issue coming in Firebase

Steps to reproduce

Issue is in production

React Native Version

0.70.3

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
    OS: macOS 14.1
    CPU: (11) arm64 Apple M3 Pro
    Memory: 987.02 MB / 18.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.5.0 - /opt/homebrew/bin/node
    Yarn: Not Found
    npm: 10.2.4 - /opt/homebrew/bin/npm
    Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    Android SDK: Not Found
  IDEs:
    Android Studio: 2023.1 AI-231.9392.1.2311.11255304
    Xcode: 15.2/15C500b - /usr/bin/xcodebuild
  Languages:
    Java: 17.0.9 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.70.3 => 0.70.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Stacktrace or Logs

Fatal Exception: java.lang.UnsatisfiedLinkError
couldn't find DSO to load: libhermes.so SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-main flags = 1] SoSource 1: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-0 flags = 1] SoSource 2: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-1 flags = 1] SoSource 3: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-2 flags = 1] SoSource 4: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-3 flags = 1] SoSource 5: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-4 flags = 1] SoSource 6: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-5 flags = 1] SoSource 7: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-6 flags = 1] SoSource 8: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-7 flags = 1] SoSource 9: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-8 flags = 1] SoSource 10: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-9 flags = 1] SoSource 11: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-10 flags = 1] SoSource 12: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-11 flags = 1] SoSource 13: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-12 flags = 1] SoSource 14: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-13 flags = 1] SoSource 15: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-14 flags = 1] SoSource 16: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-15 flags = 1] SoSource 17: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-16 flags = 1] SoSource 18: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-17 flags = 1] SoSource 19: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-18 flags = 1] SoSource 20: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-19 flags = 1] SoSource <truncated: 6671 chars>


Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
	SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-main flags = 1]
	SoSource 1: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-0 flags = 1]
	SoSource 2: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-1 flags = 1]
	SoSource 3: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-2 flags = 1]
	SoSource 4: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-3 flags = 1]
	SoSource 5: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-4 flags = 1]
	SoSource 6: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-5 flags = 1]
	SoSource 7: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-6 flags = 1]
	SoSource 8: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-7 flags = 1]
	SoSource 9: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-8 flags = 1]
	SoSource 10: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-9 flags = 1]
	SoSource 11: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-10 flags = 1]
	SoSource 12: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-11 flags = 1]
	SoSource 13: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-12 flags = 1]
	SoSource 14: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-13 flags = 1]
	SoSource 15: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-14 flags = 1]
	SoSource 16: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-15 flags = 1]
	SoSource 17: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-16 flags = 1]
	SoSource 18: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-17 flags = 1]
	SoSource 19: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-18 flags = 1]
	SoSource 20: com.facebook.soloader.ApkSoSource[root = /data/data/in.busy.app/lib-19 flags = 1]
	SoSource <truncated: 6671 chars>
       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:25)
       at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:19)
       at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:23)
       at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:393)
       at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:343)
       at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:96)
       at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
       at in.busy.app.MainApplication.onCreate(MainApplication.java:69)
       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.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:423)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Reproducer

N/A

Screenshots and Videos

Screenshot 2024-04-25 at 10 26 47 AM

sudhanshu-busy avatar Apr 26 '24 11:04 sudhanshu-busy

:warning: Unsupported Version of React Native
:information_source: It looks like your issue or the example you provided uses an unsupported version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.

github-actions[bot] avatar Apr 26 '24 11:04 github-actions[bot]

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Apr 26 '24 11:04 github-actions[bot]

Closing as there are so many similar issues already answered like this one: https://github.com/facebook/react-native/issues?q=is%3Aissue+sort%3Aupdated-desc+%22couldn%27t+find+DSO%22+is%3Aclosed

cortinico avatar Apr 26 '24 16:04 cortinico

@sudhanshu-busy Any luck on this? I am also getting the same error, getting this error after I disabled Hermes om my app.

This is the output of npx react-native info for me:

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M2
    Memory: 121.06 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - ~/.nvm/versions/node/v16.20.2/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.2/bin/npm
    Watchman: 2024.04.08.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: Not Found
  SDKs:
    iOS SDK: Not Found
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.11090377
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.22 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0
    react-native: 0.70.6 => 0.70.6
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Abhishek-Khanduri avatar May 14 '24 16:05 Abhishek-Khanduri

@Abhishek-Khanduri Still can't figure out the actual solution.

sudhanshu-busy avatar May 14 '24 18:05 sudhanshu-busy

@sudhanshu-busy Then how are you managing your app? Do you know any workarounds?

Abhishek-Khanduri avatar May 15 '24 05:05 Abhishek-Khanduri

@Abhishek-Khanduri no solution yet don't no what to do. Right now just ignoring it and searching for solution.

sudhanshu-busy avatar May 15 '24 11:05 sudhanshu-busy