Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-1264

UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      How frequently does the bug occur?

      Always

      Description

      Hello,
      I was testing our appliaction with an Android emulator with Android 15 with support for 16KB page sizes, and it crashed with the below stacktrace when trying to init the Realm instance.

      Stacktrace & log output

      `
      java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH/DT_GNU_HASH in "/data/data/com.example.realmsampleapplication/app_lib/librealm-jni.so.10.18.0" (new hash type from the future?)
      at java.lang.Runtime.load0(Runtime.java:933)
      at java.lang.System.load(System.java:1729)
      at com.getkeepsafe.relinker.SystemLibraryLoader.loadPath(SystemLibraryLoader.java:29)
      at com.getkeepsafe.relinker.ReLinkerInstance.loadLibraryInternal(ReLinkerInstance.java:204)
      at com.getkeepsafe.relinker.ReLinkerInstance.loadLibrary(ReLinkerInstance.java:136)
      at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:70)
      at com.getkeepsafe.relinker.ReLinker.loadLibrary(ReLinker.java:57)
      at io.realm.internal.RealmCore.loadLibrary(RealmCore.java:60)
      at io.realm.Realm.initializeRealm(Realm.java:348)
      at io.realm.Realm.init(Realm.java:263)
      at com.example.realmsampleapplication.MainActivity.onCreate(MainActivity.kt:20)
      `

      Can you reproduce the bug?

      Always

      Reproduction Steps

      I've created a sample app to reproduce this bug and pushed it on github.
      Steps to reproduce:

      1. Clone the RealmSampleApplication project.
      2. Create an Android emulator following steps from this page: https://developer.android.com/guide/practices/page-sizes#16kb-emulator
      3. Build and run the app.
      4. It will crash as soon as the Realm.init(this) is called.

      Version

      Java SDK 10.18.0 or Kotlin SDK 1.16.0

      What Atlas App Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Android 15 Beta 2 (Android API VanillaIceCream (Google APIs Page Size 16KB))

      Build environment

      Android Studio version: Android Studio Koala | 2024.1.1 Beta 2
      Android Build Tools version: 35-rc4
      Gradle version: 8.4.1

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Archiver:
            marc.greenfield@mongodb.com Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: