sqlcipher / android-database-sqlcipher

Android SQLite API based on SQLCipher
https://www.zetetic.net/sqlcipher/sqlcipher-for-android/
Other
2.73k stars 564 forks source link

Native exception #599

Open kaichunlin opened 1 year ago

kaichunlin commented 1 year ago

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)

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

developernotes commented 1 year ago

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.

kaichunlin commented 1 year ago

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