helpcrunch / android-sdk-demo

Public demo for HelpCrunch Android SDK
Apache License 2.0
9 stars 1 forks source link

Crash on XIAOMI for v3.3.8 #84

Closed zhrmghgws closed 4 months ago

zhrmghgws commented 6 months ago

FATAL EXCEPTION: arch_disk_io_2

                                                                                                java.lang.RuntimeException: Exception while computing database live data.
                                                                                                    at androidx.room.RoomTrackingLiveData.refreshRunnable$lambda$0(RoomTrackingLiveData.kt:74)
                                                                                                    at androidx.room.RoomTrackingLiveData.$r8$lambda$PhMGW5zFk4QWazERd2lfEeLZqW0(Unknown Source:0)
                                                                                                    at androidx.room.RoomTrackingLiveData$$ExternalSyntheticLambda0.run(Unknown Source:2)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                                                                    at java.lang.Thread.run(Thread.java:1012)
                                                                                                Caused by: android.database.sqlite.SQLiteException: table DViewingHistory already exists (code 1 SQLITE_ERROR): , while compiling: CREATE TABLE DViewingHistory (
                                                                                                    id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
                                                                                                    article INTEGER NOT NULL,
                                                                                                    customer INTEGER NOT NULL,
                                                                                                    locale TEXT NOT NULL
                                                                                                )
                                                                                                    at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
                                                                                                    at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1069)
                                                                                                    at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:673)
                                                                                                    at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
                                                                                                    at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:62)
                                                                                                    at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:34)
                                                                                                    at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:2088)
                                                                                                    at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:2010)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.execSQL(FrameworkSQLiteDatabase.kt:246)
                                                                                                    at com.helpcrunch.library.repository.storage.database.DatabaseKt$MIGRATION_1_2$1.migrate(SourceFile:1)
                                                                                                    at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.kt:90)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onUpgrade(FrameworkSQLiteOpenHelper.kt:253)
                                                                                                    at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:416)
                                                                                                    at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
                                                                                                    at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
                                                                                                    at androidx.room.RoomDatabase.inTransaction(RoomDatabase.kt:632)
                                                                                                    at androidx.room.RoomDatabase.assertNotSuspendingTransaction(RoomDatabase.kt:451)
                                                                                                    at androidx.room.RoomDatabase.query(RoomDatabase.kt:480)
                                                                                                    at androidx.room.util.DBUtil.query(DBUtil.kt:75)
                                                                                                    at com.helpcrunch.library.repository.storage.database.dao.DraftMessagesDao_Impl$10.a(SourceFile:1)
                                                                                                    at com.helpcrunch.library.repository.storage.database.dao.DraftMessagesDao_Impl$10.call(SourceFile:1)
                                                                                                    at androidx.room.RoomTrackingLiveData.refreshRunnable$lambda$0(RoomTrackingLiveData.kt:72)
                                                                                                    ... 5 more

2024-04-22 17:41:39.020 7313-8787 SQLiteLog E (1) table DViewingHistory already exists in "CREATE TABLE DViewingHistory ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, article INTEGER NOT NULL, customer INTEGER NOT NULL, locale TEXT NOT NULL 2024-04-22 17:41:39.067 7313-7323 . This is sticky GC, maxfree is 33554432 minfree is 2097152 2024-04-22 17:41:39.527 7313-8787 SQLiteLog E (1) table DViewingHistory already exists in "CREATE TABLE DViewingHistory ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, article INTEGER NOT NULL, customer INTEGER NOT NULL, locale TEXT NOT NULL 2024-04-22 17:41:39.534 7313-7542 SQLiteLog E (1) table DViewingHistory already exists in "CREATE TABLE DViewingHistory ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, article INTEGER NOT NULL, customer INTEGER NOT NULL, locale TEXT NOT NULL

TalbotGooday commented 6 months ago

Thanks for the reporting! We'll check asap

TalbotGooday commented 4 months ago

Will be fixed in 3.3.9