BobbyESP / Spowlo

A Spotify songs downloader for Android made with Jetpack Compose, Material You and the spotDL Python library
https://t.me/spowlo_chatroom
GNU General Public License v3.0
845 stars 17 forks source link

[App crash] #158

Open enqlea opened 2 months ago

enqlea commented 2 months ago

Checklist

Describe the bug

App crashing when i open it

To Reproduce

No response

Error reports

App version: 1.4.1 (1040100) Device information: Android 12 (API 31) Supported ABIs: [arm64-v8a, armeabi-v7a, armeabi] spotDL version: null

java.lang.IllegalStateException: Migration didn't properly handle: downloaded_songs_info(com.bobbyesp.spowlo.database.DownloadedSongInfo). Expected: TableInfo{name='downloaded_songs_info', columns={songName=Column{name='songName', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songDuration=Column{name='songDuration', type='REAL', affinity='4', notNull=true, primaryKeyPosition=0, defaultValue='0.0'}, extractor=Column{name='extractor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue=''Unknown''}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1, defaultValue='undefined'}, songPath=Column{name='songPath', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songUrl=Column{name='songUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songAuthor=Column{name='songAuthor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, thumbnailUrl=Column{name='thumbnailUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}}, foreignKeys=[], indices=[]} Found: TableInfo{name='downloaded_songs_info', columns={}, foreignKeys=[], indices=[]} at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.kt:93) 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.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:829) at com.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:825) at androidx.room.CoroutinesRoom$Companion$createFlow$1$1$1.invokeSuspend(CoroutinesRoom.kt:129) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) 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) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@1f5d770, Dispatchers.Default] java.lang.IllegalStateException: Migration didn't properly handle: downloaded_songs_info(com.bobbyesp.spowlo.database.DownloadedSongInfo). Expected: TableInfo{name='downloaded_songs_info', columns={songName=Column{name='songName', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songDuration=Column{name='songDuration', type='REAL', affinity='4', notNull=true, primaryKeyPosition=0, defaultValue='0.0'}, extractor=Column{name='extractor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue=''Unknown''}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1, defaultValue='undefined'}, songPath=Column{name='songPath', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songUrl=Column{name='songUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songAuthor=Column{name='songAuthor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, thumbnailUrl=Column{name='thumbnailUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}}, foreignKeys=[], indices=[]} Found: TableInfo{name='downloaded_songs_info', columns={}, foreignKeys=[], indices=[]} at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.kt:93) 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.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:829) at com.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:825) at androidx.room.CoroutinesRoom$Companion$createFlow$1$1$1.invokeSuspend(CoroutinesRoom.kt:129) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) 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) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d700134, Dispatchers.Default] java.lang.IllegalStateException: Migration didn't properly handle: downloaded_songs_info(com.bobbyesp.spowlo.database.DownloadedSongInfo). Expected: TableInfo{name='downloaded_songs_info', columns={songName=Column{name='songName', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songDuration=Column{name='songDuration', type='REAL', affinity='4', notNull=true, primaryKeyPosition=0, defaultValue='0.0'}, extractor=Column{name='extractor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue=''Unknown''}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1, defaultValue='undefined'}, songPath=Column{name='songPath', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songUrl=Column{name='songUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, songAuthor=Column{name='songAuthor', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}, thumbnailUrl=Column{name='thumbnailUrl', type='TEXT', affinity='2', notNull=true, primaryKeyPosition=0, defaultValue='undefined'}}, foreignKeys=[], indices=[]} Found: TableInfo{name='downloaded_songs_info', columns={}, foreignKeys=[], indices=[]} at androidx.room.RoomOpenHelper.onUpgrade(RoomOpenHelper.kt:93) 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.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:829) at com.bobbyesp.spowlo.database.SongsInfoDao_Impl$35.call(SongsInfoDao_Impl.java:825) at androidx.room.CoroutinesRoom$Companion$createFlow$1$1$1.invokeSuspend(CoroutinesRoom.kt:129) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108) 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) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ea4a51a, Dispatchers.Default]

Screenshots & Screen Records

Screenshot_2024-04-14-19-32-20-93_357d6970a1085f001a723d7349c25fa6

Device info

No response

Additional context

No response