Skip to content
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

couldn't find DSO to load: libhermes.so caused by #35895

Closed
Hmoulvad opened this issue Jan 19, 2023 · 118 comments
Closed

couldn't find DSO to load: libhermes.so caused by #35895

Hmoulvad opened this issue Jan 19, 2023 · 118 comments
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications.

Comments

@Hmoulvad
Copy link

Hmoulvad commented Jan 19, 2023

Description

E/SoLoader: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"... result: 0
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: dk.ao.AO, PID: 13836
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"... 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 dk.ao.AO.MainApplication.onCreate(MainApplication.java:60)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759)
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7872)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
     Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"...
        at java.lang.Runtime.load0(Runtime.java:929)
        at java.lang.System.load(System.java:1625)
        at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
        at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
        at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:63)
        at com.facebook.soloader.ApplicationSoSource.loadLibrary(ApplicationSoSource.java:91)
        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 dk.ao.AO.MainApplication.onCreate(MainApplication.java:60) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759) 
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:201) 
        at android.os.Looper.loop(Looper.java:288) 
        at android.app.ActivityThread.main(ActivityThread.java:7872) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Version

0.71.0

Output of npx react-native info

System:
OS: macOS 13.1
CPU: (10) arm64 Apple M1 Pro
Memory: 70.36 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/lib/ruby/gems/2.7.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: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 17.0.4 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.0 => 0.71.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

When building towards Android no issues on IOS.

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

When building towards Android no issues on IOS.

@Hmoulvad Hmoulvad added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Jan 19, 2023
@cortinico cortinico added Tech: Hermes Hermes Engine: https://hermesengine.dev/ and removed Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Jan 19, 2023
@cortinico
Copy link
Contributor

When building towards Android no issues on IOS.

Can you share your android/app/build.gradle and android/build.gradle files?

@Hmoulvad
Copy link
Author

Hmoulvad commented Jan 19, 2023

Thanks! Here you go @cortinico

android/app/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    ext {
        buildToolsVersion = "33.0.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33

        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath('com.android.tools.build:gradle:7.3.1')
        classpath("com.facebook.react:react-native-gradle-plugin")
    }
}

allprojects {
    repositories {
        // Scanbot SDK Maven repositories:
        maven { url 'https://nexus.scanbot.io/nexus/content/repositories/releases/' }
        maven { url 'https://nexus.scanbot.io/nexus/content/repositories/snapshots/' }
    }
}

android/app/build.gradle

apply plugin: "com.android.application"
apply plugin: "com.facebook.react"

import com.android.build.OutputFile

/**
 * This is the configuration block to customize your React Native Android app.
 * By default you don't need to apply any configuration, just uncomment the lines you need.
 */
react {
    /* Folders */
    //   The root of your project, i.e. where "package.json" lives. Default is '..'
    // root = file("../")
    //   The folder where the react-native NPM package is. Default is ../node_modules/react-native
    // reactNativeDir = file("../node_modules/react-native")
    //   The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
    // codegenDir = file("../node_modules/@react-native/codegen")
    //   The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
    // cliFile = file("../node_modules/react-native/cli.js")

    /* Variants */
    //   The list of variants to that are debuggable. For those we're going to
    //   skip the bundling of the JS bundle and the assets. By default is just 'debug'.
    //   If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
    // debuggableVariants = ["liteDebug", "prodDebug"]

    /* Bundling */
    //   A list containing the node command and its flags. Default is just 'node'.
    // nodeExecutableAndArgs = ["node"]
    //
    //   The command to run when bundling. By default is 'bundle'
    // bundleCommand = "ram-bundle"
    //
    //   The path to the CLI configuration file. Default is empty.
    // bundleConfig = file(../rn-cli.config.js)
    //
    //   The name of the generated asset file containing your JS bundle
    // bundleAssetName = "MyApplication.android.bundle"
    //
    //   The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
    // entryFile = file("../js/MyApplication.android.js")
    //
    //   A list of extra flags to pass to the 'bundle' commands.
    //   See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
    // extraPackagerArgs = []

    /* Hermes Commands */
    //   The hermes compiler command to run. By default it is 'hermesc'
    // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
    //
    //   The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
    // hermesFlags = ["-O", "-output-source-map"]
}

 // Load local properties
Properties localProperties = new Properties()
 if (project.rootProject.file('local.properties').exists()) {
    localProperties.load(project.rootProject.file('local.properties').newDataInputStream())
}

/**
 * Set this to true to create two separate APKs instead of one:
 * one for each native architecture. This is useful if you don't
 * use App Bundles (https://developer.android.com/guide/app-bundle/)
 * and want to have separate APKs to upload to the Play Store.
 */
def enableSeparateBuildPerCPUArchitecture = false

/**
 * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
 */
def enableProguardInReleaseBuilds = false

/**
 * The preferred build flavor of JavaScriptCore (JSC)
 *
 * For example, to use the international variant, you can use:
 * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
 *
 * The international variant includes ICU i18n library and necessary data
 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
 * give correct results when using with locales other than en-US.  Note that
 * this variant is about 6MiB larger per architecture than default.
 */
def jscFlavor = 'org.webkit:android-jsc-intl:+'

/**
 * Private function to get the list of Native Architectures you want to build.
 * This reads the value from reactNativeArchitectures in your gradle.properties
 * file and works together with the --active-arch-only flag of react-native run-android.
 */
def reactNativeArchitectures() {
    def value = project.getProperties().get("reactNativeArchitectures")
    return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

def googleMapsApiKey = localProperties.getProperty('MAPS_API_KEY') ? localProperties.getProperty('MAPS_API_KEY') : System.getenv("MAPS_API_KEY")

def buildNumber = localProperties.getProperty('BUILD_ID') ? localProperties.getProperty('BUILD_ID') : System.getenv("APPCENTER_BUILD_ID")

android {
    ndkVersion rootProject.ext.ndkVersion

    compileSdkVersion rootProject.ext.compileSdkVersion

    namespace = "dk.ao.AO"
    defaultConfig {
        applicationId "dk.ao.AO"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode buildNumber.toInteger()
        versionName "5.14.0"
        multiDexEnabled true
        manifestPlaceholders = [googleMapsApiKey:googleMapsApiKey]
    }

    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include (*reactNativeArchitectures())
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
        release {
            if (localProperties.getProperty('APP_UPLOAD_STORE_FILE')) {
                storeFile file(localProperties.getProperty('APP_UPLOAD_STORE_FILE'))
                storePassword localProperties.getProperty('APP_UPLOAD_STORE_PASSWORD')
                keyAlias localProperties.getProperty('APP_UPLOAD_KEY_ALIAS')
                keyPassword localProperties.getProperty('APP_UPLOAD_KEY_PASSWORD')
            } else {
                storeFile file(System.getenv("APPCENTER_KEYSTORE_FILE"))
                storePassword System.getenv("APPCENTER_KEYSTORE_PASSWORD")
                keyAlias System.getenv("APPCENTER_KEY_ALIAS")
                keyPassword System.getenv("APPCENTER_KEY_PASSWORD")
            }
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            // According to microsoft documentations here: https://docs.microsoft.com/en-us/appcenter/build/android/code-signing
            // In case you uploaded a keystore to the build configuration in the App Center portal, take into account that this approach will require to delete the signingConfig option from the buildTypes section of your build.gradle.
            // But if you want to make production release build locally, you need to uncomment line below first.
            // signingConfig signingConfigs.release
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }

    // applicationVariants are e.g. debug, release
    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 {
    // The version of react-native is set by the React Native Gradle Plugin
    implementation("com.facebook.react:react-android")

    implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.squareup.okhttp3', module:'okhttp'
    }
    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
    
    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    } else {
        implementation jscFlavor
    }
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jan 19, 2023
@cortinico cortinico removed the Tech: Hermes Hermes Engine: https://hermesengine.dev/ label Jan 19, 2023
@cortinico
Copy link
Contributor

I'm unsure what's your problem as:

The error in the stacktrace says

E/SoLoader: couldn't find DSO to load: libhermes.so

while the title of this issue is:

couldn't find DSO to load: libjscexecutor.so

Can you copy the content of your android/gradle.properties file?

@cortinico cortinico added Needs: Author Feedback and removed Needs: Attention Issues where the author has responded to feedback. labels Jan 19, 2023
@Hmoulvad
Copy link
Author

Hey @cortinico,

Hope this is more clarifying.

It's happening when I am launching the App on Emulator or Physical Device. It only happens when I am using newArchEnabled=false

Full strack trace is

W/unknown:ReactInstanceManagerBuilder: You're not setting the JS Engine Resolution Algorithm. We'll try to load JSC first, and if it fails we'll fallback to Hermes
V/SoLoader: libjscexecutor.so not found on /data/data/dk.ao.AO/lib-main
V/SoLoader: libjscexecutor.so not found on /data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64
V/SoLoader: libjscexecutor.so not found on /system/lib64
V/SoLoader: libjscexecutor.so not found on /vendor/lib64
E/SoLoader: couldn't find DSO to load: libjscexecutor.so
    	SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/dk.ao.AO/lib-main flags = 1]
    	SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64 flags = 0]
    	SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
    	SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
    	Native lib dir: /data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64
     result: 0
V/SoLoader: libhermes.so not found on /data/data/dk.ao.AO/lib-main
D/SoLoader: libhermes.so found on /data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64
D/SoLoader: Not resolving dependencies for libhermes.so
W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"...
W/System.err:     at java.lang.Runtime.load0(Runtime.java:929)
W/System.err:     at java.lang.System.load(System.java:1625)
W/System.err:     at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
W/System.err:     at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
W/System.err:     at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:63)
W/System.err:     at com.facebook.soloader.ApplicationSoSource.loadLibrary(ApplicationSoSource.java:91)
W/System.err:     at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
W/System.err:     at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
W/System.err:     at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
W/System.err:     at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
W/System.err:     at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
W/System.err:     at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
W/System.err:     at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
W/System.err:     at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
W/System.err:     at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
W/System.err:     at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
W/System.err:     at dk.ao.AO.MainApplication.onCreate(MainApplication.java:60)
W/System.err:     at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
W/System.err:     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759)
W/System.err:     at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)
W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)
W/System.err:     at android.os.Looper.loopOnce(Looper.java:201)
W/System.err:     at android.os.Looper.loop(Looper.java:288)
W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7872)
W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/SoLoader: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"... result: 0
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: dk.ao.AO, PID: 14282
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"... 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 dk.ao.AO.MainApplication.onCreate(MainApplication.java:60)
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759)
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7872)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
     Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~fi0LO6D2MoTiy52TfVSjbA==/dk.ao.AO-KNgz-FvvkLLLxHpm6hQn1A==/lib/arm64/libfolly_runtime.so"...
        at java.lang.Runtime.load0(Runtime.java:929)
        at java.lang.System.load(System.java:1625)
        at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
        at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
        at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:63)
        at com.facebook.soloader.ApplicationSoSource.loadLibrary(ApplicationSoSource.java:91)
        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 dk.ao.AO.MainApplication.onCreate(MainApplication.java:60) 
        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1277) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6759) 
        at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2133) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loopOnce(Looper.java:201) 
        at android.os.Looper.loop(Looper.java:288) 
        at android.app.ActivityThread.main(ActivityThread.java:7872) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 
D/TrafficStats: tagSocket(84) with statsTag=0xd83ddc19, statsUid=-1
D/TrafficStats: tagSocket(87) with statsTag=0xd83ddc19, statsUid=-1
W/System: A resource failed to call close. 

Then the App Closes

Here is my android/gradle.properties

# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.174.0

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
# ./gradlew <task> -PreactNativeArchitectures=x86_64
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64

# Use this property to enable support to the new architecture.
# This will allow you to use TurboModules and the Fabric render in
# your application. You should enable this flag either if you want
# to write custom TurboModules/Fabric components OR use libraries that
# are providing them.
newArchEnabled=false

# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true  

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jan 19, 2023
@cortinico
Copy link
Contributor

W/unknown:ReactInstanceManagerBuilder: You're not setting the JS Engine Resolution Algorithm. We'll try to load JSC first, and if it fails we'll fallback to Hermes

So there is something going on with your MainApplication.java class.
Could you share it?

If not, make sure it follows the template setup:

private final ReactNativeHost mReactNativeHost =
new DefaultReactNativeHost(this) {
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
@Override
protected boolean isNewArchEnabled() {
return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
}
@Override
protected Boolean isHermesEnabled() {
return BuildConfig.IS_HERMES_ENABLED;
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
}

@cortinico cortinico added Needs: Author Feedback and removed Needs: Attention Issues where the author has responded to feedback. labels Jan 19, 2023
@Hmoulvad
Copy link
Author

@cortinico

I've looked into my MainApplication and it doesn't look different from what you have shown.

package dk.ao.AO;

import android.app.Application;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
import com.facebook.react.defaults.DefaultReactNativeHost;
import com.facebook.soloader.SoLoader;
import java.util.List;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost =
      new DefaultReactNativeHost(this) {
        @Override
        public boolean getUseDeveloperSupport() {
          return BuildConfig.DEBUG;
        }

        @Override
        protected List<ReactPackage> getPackages() {
          @SuppressWarnings("UnnecessaryLocalVariable")
          List<ReactPackage> packages = new PackageList(this).getPackages();
          // Packages that cannot be autolinked yet can be added manually here, for example:
          // packages.add(new MyReactNativePackage());
          return packages;
        }

        @Override
        protected String getJSMainModuleName() {
          return "index";
        }

        @Override
        protected boolean isNewArchEnabled() {
          return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
        }

        @Override
        protected Boolean isHermesEnabled() {
          return BuildConfig.IS_HERMES_ENABLED;
        }
      };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
    if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
      // If you opted-in for the New Architecture, we load the native entry point for this app.
      DefaultNewArchitectureEntryPoint.load();
    }
    ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
  }
}

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jan 20, 2023
@cortinico
Copy link
Contributor

Ok then there is something really odd going on with your project. I believe you're for some reason using a older version of React Native (maybe something you installed globally?)
. I would need a full reproducer where this happens to further investigate at this point

@cortinico cortinico added Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Needs: Attention Issues where the author has responded to feedback. labels Jan 20, 2023
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.

@Hmoulvad
Copy link
Author

@cortinico do you have any suggestions for me to provide you better information. I am still seeing this issue. I've tried to run through all of the Android files, and check diffs towards the template project.

And I don't see any significant differences.

@bemaverick
Copy link

i've got the same crash.
is there any progress on this?

@Qdafengzi
Copy link

i've got the same crash.
is there any progress on this?
please open it

       at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
       at java.lang.Runtime.loadLibrary0(Runtime.java:998)
       at java.lang.System.loadLibrary(System.java:1656)
       at com.facebook.soloader.nativeloader.SystemDelegate.loadLibrary(SystemDelegate.java:24)
       at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:52)
       at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:30)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:869)
       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:379)
       at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:325)
       at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:96)
       at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
       at com.xxx.App.onCreate(App.kt:114)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1223)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6762)
       at android.app.ActivityThread.access$1500(ActivityThread.java:256)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2091)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7870)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)```

@manueleirea
Copy link

I'm getting the same crash in Crashlytics, also on a Nexus 5X with Android 8.1.0 like @LaGregance, but I'm using RN 0.71.3. Please look into it.

@shukerullah
Copy link

Crash after updating to React Native 0.74.3

I upgraded to React Native 0.74.3 yesterday from 0.62.2 and encountered a crash today. Please let me know if there are any known issues related to this version or if you need more information to help troubleshoot.

       Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libhermes.so" not found
       at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
       at java.lang.Runtime.loadLibrary0(Runtime.java:998)
       at java.lang.System.loadLibrary(System.java:1656)
       at com.facebook.soloader.nativeloader.SystemDelegate.loadLibrary(SystemDelegate.java:24)
       at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:52)
       at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:30)
       at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:869)
       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()
       at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:391)
       at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:335)
       at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:104)
       at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:48)
       at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:292)
       at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:129)
       at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:124)
       at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:47)
       at com.gulfnews.newsapp.MainActivity.onCreate(MainActivity.kt:18)
       at android.app.Activity.performCreate(Activity.java:8054)
       at android.app.Activity.performCreate(Activity.java:8034)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1341)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3688)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3864)
       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2253)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7870)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)
Screenshot 2024-08-03 at 5 21 15 PM Screenshot 2024-08-03 at 5 21 24 PM Screenshot 2024-08-03 at 5 21 29 PM

@sirephil
Copy link

sirephil commented Aug 5, 2024

Firebase crashytics reported this same problem today. The things I noticed were that it was reported on two rooted Sony android devices and that it seems very device specific.

Despite some suggestions it relates to the minSdkVersion, we are using the same minSdkVersion as RN uses, so it looks like this isn't the root cause.

@SGamrekelashvili
Copy link

have same problem in production, this topic must not be closed

@danilvalov
Copy link

@sirephil

The things I noticed were that it was reported on two rooted Sony android devices and that it seems very device specific.

Yes, our reports in the Firebase Crashlytics from the Firebase Test Lab (we receive this crash report only from emulators of the Firebase Test Lab, not from real devices) includes the following data:

Brand: Google
Model: Pixel 6 Pro
Orientation: Portrait
RAM free: 1.91 GB
Disk free: 1.57 GB

Version: Android 12
Orientation: Portrait
Rooted: No

Also I tried using emulators on the x86_64 platform. And there is not this crash :(
I'll keep searching...

@Qdafengzi
Copy link

Qdafengzi commented Aug 7, 2024

update : The problem remains with the pixel 6 pro

Perhaps I have identified the issue and found that there are multiple versions of fresco dependencies that have not been validated yet. Perhaps it is not the problem, but it is necessary to address it.

 configurations.all {
        resolutionStrategy {
            force("com.facebook.react:react-native:$reactNativeVersion")
            force("com.facebook.react:react-android:$reactNativeVersion")
            force("com.facebook.react:hermes-android:$reactNativeVersion")
            force("com.facebook.fresco:fresco:2.6.0")
            force("com.facebook.fresco:ui-common:2.6.0")
        }
    }

@TaylorDale
Copy link

Also experiencing the same issue

@abdymm
Copy link

abdymm commented Aug 14, 2024

I am able to reproduce it by executing this line by default DefaultNewArchitectureEntryPoint.load();

Screenshot 2024-07-10 at 2 58 06 PM Screenshot 2024-07-10 at 3 03 29 PM

have you guys tried this? by remove all things that related to Flipper,
in our experience, we tried this, and the issue not happend anymore _(this issue no longer popped up in our Crashlytics)

@flyskywhy
Copy link
Contributor

No need to rebuild third-party .aar or .so, just patch:

cd tools/android-sdk/ndk

mv ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/origin_libc++_shared.so
cp ./23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/

as described in Patch to fix __emutls_get_address crash on Android

@danilvalov
Copy link

danilvalov commented Aug 21, 2024

It might be a coincidence, but after upgrading to React Native v0.73.9 I stopped getting crash notifications about libhermes.so caused by: dlopen failed.

My mistake, notifications came, but later

@TaylorDale
Copy link

I'm on >0.74 unfortunately and still getting it

@RouberR
Copy link

RouberR commented Aug 29, 2024

Screenshot 2024-08-29 at 16 23 08 "react-native": "0.72.4",

@mohammedasifp
Copy link

Same issue in Firebase Crashlitycs.
The issue happen on a Nexus 5X with Android 8.1.0
Using react-native 0.72.4

@lucasoliveiraw00
Copy link

Same error happening on version: "react-native": "0.73.8"

@ncoen97
Copy link

ncoen97 commented Sep 6, 2024

Same here in "react-native": "0.74.3"

@rahuljeevan-experion
Copy link

It is happening for me on React native version 0.72.12

as everyone is saying that it is happening on Nexus 5x and Pixel 6 pro only, is this on real device or something else.
Do we have any ways to validate that?

@interstates21
Copy link

Same with 0.73.6

@GustavoBonfimS
Copy link

I'm thinking that these devices causing these errors might be from the automatic tests in Google Play Store called Pre Launch Reports. They run the app on various different devices and many times cause errors. I'm going to disable these tests to see if the errors stop happening.

@TaylorDale
Copy link

I'm thinking that these devices causing these errors might be from the automatic tests in Google Play Store called Pre Launch Reports. They run the app on various different devices and many times cause errors. I'm going to disable these tests to see if the errors stop happening.

Any result from this?

@vladimirevstratov
Copy link

dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/<app-name>-wewkT57YLYVyZztCLJ3kqg==/base.apk"],nativeLibraryDirectories=[/data/app/<app-name>-wewkT57YLYVyZztCLJ3kqg==/lib/arm64, /system/lib64]]] couldn't find "libhermes.so"

@theobouwman
Copy link

I found this on google support https://support.google.com/faqs/answer/12576726?hl=en, can someone confirm this solves the issue?

I am receiving this on Smart 7 Or Smart 7 Plus:

     Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~DHCKzoKEsb-LPzO3d322QQ==/xxx.xxx.xxx-oAR_rKWOvbbiYsjsNCb9_w==/lib/arm64 flags = 0]
	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = ()]
	SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
	SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
	Native lib dir: /data/app/~~DHCKzoKEsb-LPzO3d322QQ==/xxx.xxx.xxx-oAR_rKWOvbbiYsjsNCb9_w==/lib/arm64
 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:25)
       at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:19)
       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 xxx.xxx.xxx.MainApplication.onCreate(MainApplication.java:57)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6832)
       at android.app.ActivityThread.access$1500(ActivityThread.java:268)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2110)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loopOnce(Looper.java:201)
       at android.os.Looper.loop(Looper.java:288)
       at android.app.ActivityThread.main(ActivityThread.java:7964)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
        

@angelica-snowit
Copy link

Same error logged on Crashlytics with RN 0.76.0

@doneitas
Copy link

doneitas commented Nov 5, 2024

Same error logged on Crashlytics with RN 0.76.0

Old arch?

@angelica-snowit
Copy link

Same error logged on Crashlytics with RN 0.76.0

Old arch?

Yes

@egmepara
Copy link

I have the same crash for RN 0.71.16. Any solution ?

@purevsurena
Copy link

Same error occurred in React Native version 0.73.6, received via Firebase Crashlytics.

Device Details:

  • Brand: Samsung
  • Model: Galaxy S20+ 5G
  • Available RAM: 6.51 GB
  • Available Storage: 14.78 GB

@RohovDmytro
Copy link

"react-native": "^0.76.5" + old arch + Pixel 6 Pro + Android 12

Same crash.

@gulshercb7
Copy link

"react-native": "^0.76.5" + old arch + Nexus 5X + Android 13

Same crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Attention Issues where the author has responded to feedback. Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Platform: Android Android applications.
Projects
None yet
Development

No branches or pull requests