-
Notifications
You must be signed in to change notification settings - Fork 565
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
Getting UnsatisfiedLinkError error #593
Comments
Hi @mane91 What are the results of running the SQLCipher for Android test suite on this device? |
Hi @developernotes, |
We have also been experiencing these errors / crashes according to Crashlytics. SqlCipher Version
Android OS Versions
Affected Devices
We do not have any of these devices in-house so we cannot replicate ourselves. ABI FiltersHere is what we have in
Some Stacktraces
or
|
Hi @maxkohne Are you bundling other third-party libraries which contain native libraries supporting architectures beyond your current |
Yes we currently use other libs with NDK code |
Hmm actually one coworker has a Looking at more reports, we just got a new model added to that affected device list. |
Hi @maxkohne Thanks for the additional details. We've heard of issues regarding the loading of native libraries on Android. One approach you might consider is utilizing the
to something like this:
If you give that a try, would you report back your findings? |
Yeah. I will try to get this potential solution in this week for our next release. I'll report back my findings in a couple of weeks after we release and give it some time to go out into the wild to our customers. Thanks for the help! |
I want to report back on the Relinker fix that was proposed above. It appears to have solved our crashes (mostly)! Our crashes have almost been completely eliminated. We actually got a couple of new crashes with almost the same error. It's still an Here is the new stracktrace:
In the previous crash reports (noted above in my previous post), we were getting The "Permission denied" crash is only happening on one device, the All things being said, I would say that the Relinker solution fixed the crash for us though! Thanks so much. I'll have to figure out the "Permission denied" |
Hi @maxkohne That's great news, we are happy to hear ReLinker helped alleviate the issue! Thanks again for sharing your update. |
Hi @maxkohne, Quick question: do you deploy your application using App Bundles? |
Yes we do. Would that have something to do with this? |
Hi @maxkohne, We were looking at another report where a user experienced similar issues, but ReLinker did not address the issue. We thought that in conjunction with ReLinker, and usage of the |
Hey @maxkohne , do you know if your minimum sdk was higher than 23? or lower? I'm having a similar issue and was debating if we should add ReLinker or not but the ReLinker's github README indicates that I won't need it if minsdk is higher than 23. |
@jae-12 our minSdk is currently 28. I actually never noticed the minSdk README docs. Interesting... I looked our crashlytic reports again. They have gone down pretty significantly since we introduced Relinker a while ago. However, we still get a small amount of crashes. |
Expected Behavior
It should work on all the devices.
Actual Behavior
I am getting the below issue on Samsung Android 8.1.0
Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: couldn't map "/mnt/asec/<Pacakge_Name>-fUSOv9ma3DwZv4eW/split_config.armeabi_v7a.apk!/lib/armeabi-v7a/libsqlcipher.so" segment 1: Permission denied
Steps to Reproduce
SQLCipher version (can be identified by executing
PRAGMA cipher_version;
):Version: 4.4.3
SQLCipher for Android version:
Are you able to reproduce this issue within the SQLCipher for Android test suite?
Note: If you are not posting a specific issue for the SQLCipher library, please post your question to the SQLCipher discuss site. Thanks!
The text was updated successfully, but these errors were encountered: