Skip to content
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

android.database.sqlite.SQLiteException: file is not a database (code 26): #2650

Open
manishCapG opened this issue Jan 14, 2025 · 4 comments

Comments

@manishCapG
Copy link

Please fill out the following details:

  1. Version of Mobile SDK Used: 12.1.1
  2. Issue found in Native App or Hybrid App: Native App
  3. OS Version: Android 14
  4. Device: Samsung A 52
  5. Steps to reproduce: registerSoup const registerSoup = forceUtil?.promiser(smartstore.registerSoup);
  6. Actual behavior:
  7. Expected Behavior:
  8. Error Log: android.database.sqlite.SQLiteException: file is not a database (code 26):
@manishCapG manishCapG changed the title Getting issue on Android SDK android.database.sqlite.SQLiteException: file is not a database (code 26): Jan 14, 2025
@manishCapG
Copy link
Author

Fatal Exception: android.database.sqlite.SQLiteException: file is not a database (code 26): , while compiling: SELECT COUNT() FROM sqlite_schema;
#################################################################
Error Code : 26 (SQLITE_NOTADB)
Caused By : File opened that is not a database file or encrypted.
(file is not a database (code 26): , while compiling: SELECT COUNT(
) FROM sqlite_schema;)
#################################################################
at net.zetetic.database.sqlcipher.SQLiteConnection.nativePrepareStatement(SQLiteConnection.java)
at net.zetetic.database.sqlcipher.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:973)
at net.zetetic.database.sqlcipher.SQLiteConnection.executeForLong(SQLiteConnection.java:628)
at net.zetetic.database.sqlcipher.SQLiteConnection.open(SQLiteConnection.java:240)
at net.zetetic.database.sqlcipher.SQLiteConnection.open(SQLiteConnection.java:202)
at net.zetetic.database.sqlcipher.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:474)
at net.zetetic.database.sqlcipher.SQLiteConnectionPool.open(SQLiteConnectionPool.java:189)
at net.zetetic.database.sqlcipher.SQLiteConnectionPool.open(SQLiteConnectionPool.java:181)
at net.zetetic.database.sqlcipher.SQLiteDatabase.openInner(SQLiteDatabase.java:1028)
at net.zetetic.database.sqlcipher.SQLiteDatabase.open(SQLiteDatabase.java:1013)
at net.zetetic.database.sqlcipher.SQLiteDatabase.openDatabase(SQLiteDatabase.java:840)
at net.zetetic.database.sqlcipher.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:359)
at net.zetetic.database.sqlcipher.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:278)
at net.zetetic.database.sqlcipher.SupportHelper.getWritableDatabase(SupportHelper.java:60)
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.kt:638)
at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.kt:457)
at androidx.room.RoomDatabase.query(RoomDatabase.kt:486)
at androidx.room.util.DBUtil.query(DBUtil.kt:75)

@manishCapG
Copy link
Author

It's not happening for all users
It is happening only for specific devices

@wmathurin
Copy link
Contributor

What devices (make / OS version) is it happening on?

@manishCapG
Copy link
Author

  • OS Version: Android 14
  • Device: Samsung A52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants