-
Notifications
You must be signed in to change notification settings - Fork 61
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 calling Realm.open #1732
Comments
➤ PM Bot commented: Jira ticket: RKOTLIN-1072 |
For the error it seems that the native component has not been loaded by when you try to initialize the Realm. I understand that this error appeared when you introduced this new module. Could you share some details on how this module is set up or, even better, a sample project with a setup similar to yours? |
Its a usual android multi module setup.
Will create a sample project with similar setup once I get some free time |
This report, similar to this one, has been fixed with this workaround. @MSVhora Could you try adding the following snippet in your App AppInitializer.getInstance(this)
.initializeComponent(RealmInitializer::class.java) |
Sorry for the late response, I have tried this as well, but still seeing crashes |
The issue is with the initializers. Your app is trying to perform some operations on Realm and Realm not being initialized. Please check the component initialization order. You might find more info in this issue comment. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
How frequently does the bug occur?
Sometimes
Description
I have setup realm in one of our module. For some of our users, we are getting this error in our Firebase Crashlytics. App crashes because of this error. I haven't been able to reproduce the issue on my test devices. Although the occurrence of this issue is smaller in number, but app crashes because of it.
I have setup realm with Hilt.
App crashes when app tries to open Realm.
Stacktrace & log output
Can you reproduce the bug?
Sometimes
Reproduction Steps
Issue happens for some users. It's also not a device/brand specific issue, as it happens for various brand devices with different android versions as well. App crashes as soon as it loads. Issue happens when initializing Realm.
Version
1.13.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Various Android OS versions
Build environment
Android Studio version: Android Studio Jellyfish | 2023.3.1 RC 2
Android Build Tools version: Android SDK Build-Tools 35-rc3
Gradle version: 8.3.0
The text was updated successfully, but these errors were encountered: