realm-java: Deadlock when loading librealm-jni.so on specific device

Hi guys,

Thank you for the great library, but I’m having a issue trying to use it on a specific device.

Goal Create RealmConfiguration instance with new RealmConfiguration.Builder(context).build()

Results I get no response from new RealmConfiguration.Builder(context).

Code sample https://github.com/ericmguimaraes/RealmIssue

Debug

  • I debugged to see what specific call wasn’t returning and ended at SystemLibraryLoader.loadLibrary("realm-jni").
  • The librealm-jni.so is right there at the data/data folder as it should be.
  • I created a new app from scratch without any other library and it is still not working. (You can find it here)
  • The only thing on the logs were this: 09-13 00:09:53.986 1189-1189/com.realm.eric.realmproblem D/dalvikvm: Trying to load lib /data/data/com.realm.eric.realmproblem/lib/librealm-jni.so 0x4126b478
  • Tried using io.realm.internal.Util.setDebugLevel(5); but I got the same response
  • It works fine on other devices

Version of Realm/Android Studio/OS Android Studio 2.1.3 for osX Realm 1.2.0 Device: Samsung GT-P5110 (Android 4.0.3, API 15)

Hope we can solve it, please let me know if you need something.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Hey there!

Sorry for the delay, I had been on leave for a while. This update definitely seems to have solved most of our issues, the app no longer freezes when realm is loaded like it did on 1.2.0 with that device. We had a few minor other issues in the same code area as realm, but for now I think I will assume they are issues on our side, and report back if it turns out they are related to this.

Thanks again for your help and support!

Kind Regards