-
Notifications
You must be signed in to change notification settings - Fork 577
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
UnsatisfiedLinkError when trying to load RealmReactModule #1187
Comments
Details of exception message: Caused by java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "" referenced by "/data/app/com.aadhk.woinvoice-1/lib/arm/librealmreact.so"... |
@noobieHacker Do you only see the crashes on 64 bit devices? If so, excluding 64 bit (and thereby force loading 32 bit |
@noobieHacker Did you solve the issue by excluding 64 bit? |
@noobieHacker I am closing the issue. If the issue wan't solved by excluding 64 bit, please reopen the issue. |
I am getting same stacktrace, bu with . |
@tomas-paronai I suggest that you remove |
@kneth how do you go about doing that? We're getting this issue but we're only including |
This seems to only be occuring in 2.11.0. Downgrading to 2.2.8 resolved the issue |
I have the same issue on 2.11.0 |
@abury @behiunforgiven Which symbol cannot be located? |
@kneth The same one as @tomas-paronai listed: 👍 |
@abury Can you try to upgrade to 2.12.0? We are currently using https://github.com/facebook/SoLoader to load the The path ( |
@kneth I haven't experienced the issue with the latest version of RN and Realm, so it's all good on my end. |
@kneth thanks, i'l upgrade tomorrow |
Still same realm: 2.14.2
react-native: 0.56.0 More info: com.android.tools.build: gradle:2.3.3
buildToolsVersion = 27.0.3
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 27
supportLibVersion = 26.1.0
enableProguardInReleaseBuilds = true
|
I solve the issue with, using the latest realm 2.22.0 |
The same crash occurred to my app after rebuilding it from scratch with React Native 0.58. Comparing the I was able to reproduce it. Steps to reproduce this:
Crash Log
|
Still got the error on latest version React Native (0.59.1), Realm 2.25.0. A crash app on some Android devices. |
@MichaelHuy Do you by any chance mix 32 bit and 64 bit? Realm is currently only 32 bit. |
@kneth Thanks for your feedback. How can I mix 32 bit and 64 bit? I remembered I removing all 64 configurations ("arm64-v8a", "x86_64") but still got the error? |
@MichaelHuy I am asking since you are using RN 0.59 which supports 64 bit. Please post the stack trace if possible. |
@kneth |
@MichaelHuy Your issue is similar to facebook/SoLoader#29 - but that's not helping you. I suggest that you unzip the |
For those who wonder, I had the same issue (RN 0.58.6, Realm 2.25.0) and solved it with
And also:
Edit: use this only if you're not planning on releasing a 64 bits version of your app |
@AlexandreRozier Many places 🤔. Thanks for the update. |
@AlexandreRozier your solution that implies that side effects could exist? |
@brayanL The solution above requires that all your libraries come in 32 bit versions. And that you only use the 32 bit versions (even if a 64 bit version exists). |
Hello There
We have an Android app that uses both the Android Realm SDK and the React Native Realm SDK.
Our app is in production and there are around 10 crashes ( <0.1% of users) that is related to
java.lang.UnsatisfiedLinkError
Stacktrace
`Caused by java.lang.UnsatisfiedLinkError
java.lang.Runtime.load (Runtime.java:332)
java.lang.System.load (System.java:1069)
com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:71)
com.facebook.soloader.DirectorySoSource.loadLibrary (DirectorySoSource.java:42)
com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:299)
com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:247)
io.realm.react.RealmReactModule. (RealmReactModule.java)
io.realm.react.RealmReactPackage.createNativeModules (RealmReactPackage.java:15)
com.facebook.react.NativeModuleRegistryBuilder.processPackage (NativeModuleRegistryBuilder.java:107)
com.facebook.react.ReactInstanceManager.processPackage (ReactInstanceManager.java:1021)
com.facebook.react.ReactInstanceManager.createReactContext (ReactInstanceManager.java:959)
com.facebook.react.ReactInstanceManager.access$600 (ReactInstanceManager.java:108)
com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground (ReactInstanceManager.java:225)
com.facebook.react.ReactInstanceManager$ReactContextInitAsyncTask.doInBackground (ReactInstanceManager.java:203)
android.os.AsyncTask$2.call (AsyncTask.java:295)
java.util.concurrent.FutureTask.run (FutureTask.java:237)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
java.lang.Thread.run (Thread.java:818)`
Android Realm Plugin : 'io.realm:realm-gradle-plugin:3.3.2'
React Realm Dependencies : "realm": "^1.8.3"
it seems like Facebook's
DirectorySoSource.java
file is trying to load in the RealmModule, but an UnsatisfiedLinkError has occurred. What are some possible reasons of why such an error would be thrown??The text was updated successfully, but these errors were encountered: