android-priority-jobqueue
android-priority-jobqueue copied to clipboard
SQLiteFullException: Database or disk is full
Firstly, thank you @yigit for this useful and easy-to-use library. I recently received an exception in my Crashlytics console. Here is the stacktrace:
Fatal Exception: android.database.sqlite.SQLiteFullException: database or disk is full (code 13)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(SQLiteConnection.java)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:786)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at com.birbit.android.jobqueue.persistentQueue.sqlite.SqliteJobQueue.insertOrReplace(SqliteJobQueue.java:191)
at com.birbit.android.jobqueue.cachedQueue.CachedJobQueue.insertOrReplace(CachedJobQueue.java:39)
at com.birbit.android.jobqueue.JobManagerThread.reAddJob(JobManagerThread.java:537)
at com.birbit.android.jobqueue.JobManagerThread.insertOrReplace(JobManagerThread.java:531)
at com.birbit.android.jobqueue.JobManagerThread.handleRunJobResult(JobManagerThread.java:479)
at com.birbit.android.jobqueue.JobManagerThread.access$200(JobManagerThread.java:35)
at com.birbit.android.jobqueue.JobManagerThread$1.handleMessage(JobManagerThread.java:234)
at com.birbit.android.jobqueue.messaging.PriorityMessageQueue.consume(PriorityMessageQueue.java:39)
at com.birbit.android.jobqueue.JobManagerThread.run(JobManagerThread.java:220)
at java.lang.Thread.run(Thread.java:841)
As it clearly says the user doesn't have enough space on his device to persist this particular job. But can we have some handling of this exception to prevent the app from crashing at least?