You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal Exception: android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(SQLiteConnection.java)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:940)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:89)
at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert(FrameworkSQLiteStatement.java:51)
at androidx.room.EntityInsertionAdapter.insert(EntityInsertionAdapter.java:64)
at com.lassi.data.media.entity.MediaFileDao_Impl$6.call(MediaFileDao_Impl.java:144)
at com.lassi.data.media.entity.MediaFileDao_Impl$6.call(MediaFileDao_Impl.java:139)
at androidx.room.CoroutinesRoom$Companion$execute$2.invokeSuspend(CoroutinesRoom.kt:65)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at androidx.room.TransactionExecutor$1.run(TransactionExecutor.java:47)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Can you please give us the Lassi library version which you have used?
We have tried to regenerate the issue with version 1.2.0 but not able to reproduce it. You can try the latest Lassi version and check it. Also, you can check with the lassi sample.
I have found this crash with 1.1.0 version. The main problem here is lib (1.1.0) run smoothly on almost devices but it throw error for a few users (~0.1%)
I found total 12 crash events in firebase crashlytics.
Device :
66% - Xiaomi
17% - Oppo
17% - Oneplus
MediaFileDao_Impl$6.call
android.database.sqlite.SQLiteConstraintException - FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)
MediaFileDao_Impl.java:144
Crash occurred:
Model: Redmi Note 9 Pro(API 12)
Model: Redmi Note 8 (API 11)
Model: OnePlus 7(API 11)
This is the code:
The text was updated successfully, but these errors were encountered: