rethink-app
rethink-app copied to clipboard
v055t: SQLiteConstraintException: UNIQUE constraint failed; app crashes when opened
It worked for months before this. I don't know what if anything, I changed.
Here's a logcat, hope it is useful:
FATAL EXCEPTION: DefaultDispatcher-worker-5
Process: com.celzero.bravedns, PID: 8172
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: CustomDomain.domain, CustomDomain.uid (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:926)
at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:780)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:67)
at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeUpdateDelete(SourceFile:38)
at com.celzero.bravedns.database.CustomDomainDAO_Impl.tombstoneRulesByUid(SourceFile:327)
at com.celzero.bravedns.database.CustomDomainRepository.tombstoneRulesByUid(SourceFile:105)
at com.celzero.bravedns.service.DomainRulesManager.tombstoneRulesByUid(SourceFile:489)
at com.celzero.bravedns.database.RefreshDatabase.tombstonePackages(SourceFile:292)
at com.celzero.bravedns.database.RefreshDatabase.process(SourceFile:205)
at com.celzero.bravedns.database.RefreshDatabase$process$1.invokeSuspend(Unknown Source:12)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:33)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(SourceFile:124)
at kotlinx.coroutines.scheduling.TaskImpl.run(SourceFile:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(SourceFile:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(SourceFile:820)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(SourceFile:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:704)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [CoroutineName(RefreshDatabase), StandaloneCoroutine{Cancelling}@6cafa99, Dispatchers.IO]
Hi, Thanks for the logs! This is related to issue https://github.com/celzero/rethink-app/issues/2219, which has been fixed and will be included in the upcoming release v055u
If you were using the GitHub/Website Rethink variant, v055u is out; please see if it fixes the issue for you. If you are using it from F-Droid, it should be released there in a few days.