-
Notifications
You must be signed in to change notification settings - Fork 564
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
Fatal Exception: java.lang.UnsatisfiedLinkError #471
Comments
@amosss if you unpack your APK can you verify that all the sqlcipher.so files are present, including the one for arm64? What version of SQLCipher are you using? |
After unpacking, how can I know if I have all the files (including arm64)? I will see only those that I have :) |
@amosss you can use Unpacking the library will not directly tell you what version of SQLCipher you are using. You should be able to locate that within your Gradle references. Alternatively, from code you can query the library version by executing |
I used apktool. with if params it created a 127.apk file and with d it created a 1.apk file. What am I suppose to do now? I don't have any reference to sqlCipher in both gradle references, just to safe room: implementation 'com.commonsware.cwac:saferoom.x:1.0.5' |
I have a Nexus 5. Both the demo project and the test suite in SafeRoom work fine on it. If you have a project that reproduces the problem, I can take a look at it, but there does not appear to be a general problem with SQLCipher for Android or SafeRoom on the Nexus 5. |
I saw the above report in my Crashlytics. Maybe a combination of some kind caused it or specifically how my apk was built (actually it's aab). May I ask how can I contact you for your to test it? And ofcourse, I appreciate it very much! |
If it is on the Play Store, post a link. Or, if it is open source, post a link to the repository. Or, since this is a Nexus device, it should be in the Firebase Test Lab, so you could try running your test suite there. |
This is the play store link: https://play.google.com/store/apps/details?id=com.stockdiv.stockdivm From the report, it looks like it happened when the app opens up. |
The app starts up fine. I get to the registration screen without issue. |
Thanks, so that brings me back to point 1, what might have happen on that user's mobile |
I have no idea. All that I can say is that it is not a general problem with the Nexus 5. |
It might be a combination of some kind. Does the fact that it works on your mobile, change any of the instructions I got before? |
It would not appear to be a direct packaging problem -- otherwise the problem should be reproducible here. Depending on how your AAB is set up, it's conceivable that the Play Store screwed up delivery to that device and failed to install the part that contains the SQLCipher for Android bits. I avoid AAB at all costs (and any other solution that involves Google signing the binaries), but I don't know if you can switch back to APK-based distribution. If you can, you could try that and see if the problem shows up when you have everything in the one package. There are one-off possibilities. For example, the user might have a rooted device and has something that interfered with your app's installation. |
It was only one crash and I don't even know who is he :) I understand that I won't have an easy way to understand what happened on his specific device |
Now I got this in Crashlytics, same crash, different user: |
Hello, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug", "enhancement", or "security" and I will leave it open. Thank you for your contributions. |
I didn't see this issue again in crashlytics but maybe it's because the relevant users are not using the app anymore because of this bug. |
Hello @amosss Would you mind running
This will generate a folder titled |
C:\Windows\output\lib>dir /s Directory of C:\Windows\output\lib 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM arm64-v8a 09/05/2019 07:14 PM armeabi 09/05/2019 07:14 PM armeabi-v7a 09/05/2019 07:14 PM x86 09/05/2019 07:14 PM x86_64 0 File(s) 0 bytes Directory of C:\Windows\output\lib\arm64-v8a 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM 3,056,544 libsqlcipher.so 1 File(s) 3,056,544 bytes Directory of C:\Windows\output\lib\armeabi 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM 1,926,540 libsqlcipher.so 1 File(s) 1,926,540 bytes Directory of C:\Windows\output\lib\armeabi-v7a 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM 1,926,548 libsqlcipher.so 1 File(s) 1,926,548 bytes Directory of C:\Windows\output\lib\x86 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM 3,426,084 libsqlcipher.so 1 File(s) 3,426,084 bytes Directory of C:\Windows\output\lib\x86_64 09/05/2019 07:14 PM .09/05/2019 07:14 PM .. 09/05/2019 07:14 PM 3,590,600 libsqlcipher.so 1 File(s) 3,590,600 bytes
|
If there is anything else I should be adding, please let me know, thanks |
Hello @amosss Unfortunately, we are unable to reproduce the behavior you are experiencing. If you have the device present that is causing the issue, you might look at experimenting with providing an alternative |
Hello, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug", "enhancement", or "security" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to reopen with up-to-date information. |
Expected Behavior
sqlcipher to work
Actual Behavior
On a certain device (Other devices seem to be ok with it), I got the above crash with the following stack trace:
Steps to Reproduce
Not sure, it's a crash on a user's device, I guess he just opened the app
Android version: 8.1.0
LGE
nexus 5
Thanks
The text was updated successfully, but these errors were encountered: