-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
When attempting to run my app using Android Studio, I will occasionally encounter, like I did this evening, this:
2025-08-13 20:09:26.922 17505-17581 sqlcipher my.app D ERROR CORE sqlcipher_page_cipher: hmac check failed for pgno=1
2025-08-13 20:09:26.922 17505-17581 sqlcipher my.app D ERROR CORE sqlite3Codec: error decrypting page 1 data: 1
2025-08-13 20:09:26.922 17505-17581 sqlcipher my.app D ERROR CORE sqlcipher_codec_ctx_set_error 1
2025-08-13 20:09:26.922 17505-17581 SQLiteLog my.app E (26) file is not a database in "SELECT COUNT(*) FROM sqlite_schema;"
2025-08-13 20:09:26.922 17505-17581 SQLiteDatabase my.app E Failed to open database '/data/user/0/my.app/databases/my.db'. (Ask Gemini)
net.zetetic.database.sqlcipher.SQLiteNotADatabaseException: file is not a database (code 26): , while compiling: SELECT COUNT(*) FROM sqlite_schema;
at net.zetetic.database.sqlcipher.SQLiteConnection.nativePrepareStatement(Native Method)
at net.zetetic.database.sqlcipher.SQLiteConnection.a(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:23)
at net.zetetic.database.sqlcipher.SQLiteConnection.l(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:11)
at net.zetetic.database.sqlcipher.SQLiteConnection.p(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:80)
at net.zetetic.database.sqlcipher.SQLiteConnectionPool.O(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:12)
at net.zetetic.database.sqlcipher.SQLiteDatabase.o0(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:16)
at net.zetetic.database.sqlcipher.SQLiteDatabase.m0(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:12)
at net.zetetic.database.sqlcipher.SQLiteOpenHelper.a(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:162)
at net.zetetic.database.sqlcipher.SupportHelper.Q(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:5)
at h4.b.D(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:14)
at e4.u.x(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:7)
at e4.L.g(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:77)
at c7.e.invokeSuspend(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:1412)
at c7.e.invoke(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:318)
at F0.c.F(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:19)
at Jg.E.O(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:80)
at D6.J.invokeSuspend(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:370)
at D6.J.invoke(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:35)
at Mg.s0.collect(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:108)
at Ng.i.j(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:3)
at Ng.h.f(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:6)
at A7.H.i(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:35)
at A7.H.invokeSuspend(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:117)
at kg.a.resumeWith(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:8)
at Jg.N.run(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:115)
at Mc.b.run(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:1236)
at Qg.j.run(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:3)
at Qg.a.run(r8-map-id-f6420fa8863cc8c52d240aa7274a83fcdbb76a86493d67bd3d8b55255c8c2aed:88)
2025-08-13 20:09:26.924 17505-17740 SQLiteConnection my.app I Database keying operation returned:0
2025-08-13 20:09:26.987 17505-17819 TRuntime.C...ortBackend my.app I Making request to: https://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/batchlog
2025-08-13 20:09:26.988 17505-17819 TRuntime.C...ortBackend my.app E Couldn't open connection, returning with 500
2025-08-13 20:09:27.004 17505-17581 Process my.app I Sending signal. PID: 17505 SIG: 9
I'm using this with Room, and I'm not sure if there's any way to gracefully recover from this error - other than clearing storage before relaunching the app. I'm a little worried this will happen to a user in production, especially if they're using the app and the phone dies or something.
Metadata
Metadata
Assignees
Labels
No labels