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 WorkManager prevents app start because of corrupted file system. #1064

Closed
growse opened this issue Aug 24, 2021 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@growse
Copy link
Collaborator

growse commented Aug 24, 2021

Eurgh. Just noticed this issue this morning. I'm meant to be on holiday.

08-24 11:01:48.822 20289 20315 E AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1                                                                                                                                   
08-24 11:01:48.822 20289 20315 E AndroidRuntime: Process: org.owntracks.android, PID: 20289                                                                                                                         
08-24 11:01:48.822 20289 20315 E AndroidRuntime: java.lang.IllegalStateException: The file system on the device is in a bad state. WorkManager cannot access the app's internal data store.
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:120)       
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)                                                           
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)                             
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:923)
08-24 11:01:48.822 20289 20315 E AndroidRuntime: Caused by: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:890)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:756)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:66)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1920)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1841)                                                 
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.execSQL(FrameworkSQLiteDatabase.java:242)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.WorkDatabase$2.onOpen(WorkDatabase.java:166)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.WorkDatabase_Impl$1.onOpen(WorkDatabase_Impl.java:113)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.room.RoomOpenHelper.onOpen(RoomOpenHelper.java:136)    
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onOpen(FrameworkSQLiteOpenHelper.java:195)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:427)                       
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableSupportDatabase(FrameworkSQLiteOpenHelper.java:145)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.java:106)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:476)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.java:281)                                                                         08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.model.SystemIdInfoDao_Impl.getWorkSpecIds(SystemIdInfoDao_Impl.java:120)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.background.systemjob.SystemJobScheduler.reconcileJobs(SystemJobScheduler.java:284)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.utils.ForceStopRunnable.cleanUp(ForceStopRunnable.java:199)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable(ForceStopRunnable.java:165)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:102)
08-24 11:01:48.822 20289 20315 E AndroidRuntime:        ... 4 more
@growse growse added the bug label Aug 24, 2021
@growse growse self-assigned this Aug 24, 2021
@growse growse added this to the v2.4.3 milestone Oct 28, 2021
@growse growse closed this as completed in baebe09 Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant