You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Our app just started receiving this exception on Crashlytics:
Fatal Exception: java.lang.UnsatisfiedLinkError
dlopen failed: library "libsqlcipher.so" not found
This started to happen suddenly on different app versions. The code of loading sqlcipher hasn't changed. We did recently update to 4.8 but the crash was also happening on other app versions that had different versions of sqlcipher.
It's not happening to all our users, but it's 100% just on Pixel 6 Pro running Android 12. (About 80~ users)
The lib folder generated (Both in aab and apks generated from that aab for Pixel 6 Pro) contain the libsqlcipher.so file for the right target (arm64-v8a) and other targets.
We got a Pixel 6 pro, rolled back to Android 12 and couldn't reproduce the issue.
We saw many instances in the github issues over here where people mentioned using ReLinker or SplitInstallHelper, so we released a version that does the following:
privatefunloadInSqlCipher(context:Context) {
val sqlCipherLibraryName ="sqlcipher"try {
System.loadLibrary(sqlCipherLibraryName)
} catch (throwable:Throwable) {
try {
SplitInstallHelper.loadLibrary(context, sqlCipherLibraryName)
// send log that indicates that this worked through SplitInstallHelper
} catch (throwable:Throwable) {
ReLinker.loadLibrary(context, sqlCipherLibraryName)
// send log that indicates that this worked through ReLinker
}
}
}
But unfortunately the same amount of crashes happening before is still happening but with a different trace since now ReLinker is the last resort:
Could not find 'libsqlcipher.so'. Looked for: [arm64-v8a, armeabi-v7a, armeabi], but only found: [].
Unfortunately I couldn't replicate this at all so can't provide any code snippet.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
Hello,
Our app just started receiving this exception on Crashlytics:
This started to happen suddenly on different app versions. The code of loading sqlcipher hasn't changed. We did recently update to 4.8 but the crash was also happening on other app versions that had different versions of sqlcipher.
It's not happening to all our users, but it's 100% just on Pixel 6 Pro running Android 12. (About 80~ users)
The lib folder generated (Both in aab and apks generated from that aab for Pixel 6 Pro) contain the
libsqlcipher.so
file for the right target (arm64-v8a) and other targets.We got a Pixel 6 pro, rolled back to Android 12 and couldn't reproduce the issue.
We saw many instances in the github issues over here where people mentioned using
ReLinker
orSplitInstallHelper
, so we released a version that does the following:But unfortunately the same amount of crashes happening before is still happening but with a different trace since now ReLinker is the last resort:
Unfortunately I couldn't replicate this at all so can't provide any code snippet.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: