sqlcipher/android-database-sqlcipher

Native exception

kaichunlin opened this issue · 2 comments

We are seeing quite a number of native crashes similar to this:

  #00  pc 0x00000000000a534c  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/lib/arm64/libsqlcipher.so
  #00  pc 0x00000000000a509c  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/lib/arm64/libsqlcipher.so
  #00  pc 0x00000000001cf828  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/lib/arm64/libsqlcipher.so
  #00  pc 0x0000000000183d28  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/oat/arm64/base.odex (art_jni_trampoline)
  #00  pc 0x00000000007909a4  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/oat/arm64/base.odex (net.sqlcipher.database.SQLiteProgram.bindString)
  #00  pc 0x000000000078fbe8  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/oat/arm64/base.odex (net.sqlcipher.database.SQLiteDirectCursorDriver.query)
  #00  pc 0x000000000078f3f8  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/oat/arm64/base.odex (net.sqlcipher.database.SQLiteDatabase.rawQueryWithFactory)
  #00  pc 0x000000000078f1c4  /data/app/~~7iQyW4InSEfqBNSIgjKtQg==/<app>-s-QQmPamI42JEad6zo-x_Q==/oat/arm64/base.odex (net.sqlcipher.database.SQLiteDatabase.rawQuery)
  • it happens on all Android versions supported by the app
  • it appears to only happen on arm64 devices, though that's probably just because most/all users are on arm64 devices
  • In the last 30 days there have been 221 instances of this crash affecting 217 users, so the crash appears to be randomly distributed

Expected Behavior

App not crashing

Actual Behavior

App crashed

Steps to Reproduce

Unknown, they are captured by Google Play Console

SQLCipher version (can be identified by executing PRAGMA cipher_version;):
3.4.2

SQLCipher for Android version:
3.5.9

Are you able to reproduce this issue within the SQLCipher for Android test suite?
No

Hi @kaichunlin

Sorry for the delayed response. It might be worth determining whether updating the library to the latest version has any impact on your crash rate. This would require that you update to a new major version of SQLCipher, currently at 4.5.2. We have upgrade options detailed here.

Hi @developernotes
Thanks for the reply, it is the route we are going, fingers crossed