signalapp / Signal-Android

A private messenger for Android.
https://signal.org
GNU Affero General Public License v3.0
25.69k stars 6.17k forks source link

Crash due to corrupted signal-local-metrics.db #13577

Closed lennartS closed 5 months ago

lennartS commented 6 months ago

Bug description

Signal keeps crashing after a few seconds.

Steps to reproduce

Actual result: Signal crashes. Expected result: Signal does not crash.

Device info

Device: Fairphone 5 Distribution: /e/OS 2.0-20240506399547-stable-FP5 Android version: 13 Signal version: 7.6.2 web-apk

Link to debug log

Creating the official debug log takes too long, Signal crashes before it completes. I created an adb logcat log instead and cleaned it up a bit. If I stripped away too much information (I have 4 crashes in the same log) I can also attach the much bigger logfile. signal_logcat_snip.log

Pertinent bits seem to be:

05-24 19:54:36.105  9348  9552 E SQLiteLog: (11) database corruption at line 93680 of [0d1fc92f94]
05-24 19:54:36.106  9348  9552 E SQLiteLog: (11) statement aborts at 4: [SELECT DISTINCT event_name, split_name FROM events] database disk image is malformed
05-24 19:54:36.107  9348  9552 E SqlCipherDeletingErrorH: Database 'signal-local-metrics.db' corrupted! Message: FullCode: 11 | ErrorCode: 11 | ExtendedErrorCode: 0 | Message: database disk image is malformed | ExtraMessage: null. Going to try to run some diagnostics.
05-24 19:54:36.115  9348  9552 E SQLiteLog: (11) database corruption at line 87663 of [0d1fc92f94]
05-24 19:54:36.115  9348  9552 E SQLiteLog: (11) database corruption at line 74697 of [0d1fc92f94]
05-24 19:54:36.115  9348  9552 E SQLiteLog: (11) statement aborts at 90: [PRAGMA integrity_check] database disk image is malformed
05-24 19:54:36.116  9348  9552 E SqlCipherDeletingErrorH: Database 'signal-local-metrics.db' corrupted! Message: FullCode: 11 | ErrorCode: 11 | ExtendedErrorCode: 0 | Message: database disk image is malformed | ExtraMessage: null. Going to try to run some diagnostics.

The last four lines are repeated ad nauseum until the likely stack overflow happens.

herbsmn commented 6 months ago

A "database disk image is malformed" error is also causing my Signal app to crash immediately upon start. Just started happening today. You can read my error logs here: signal crash.log