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
1.02k stars 22 forks source link

[App crash] #80

Closed Justavinash09 closed 10 months ago

Justavinash09 commented 10 months ago

Checklist

Describe the bug

App crash

To Reproduce

No response

Error reports

App version: 1.4.0 (1040000) Device information: Android 13 (API 33) 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}@4e1901, Dispatchers.Default]

Screenshots & Screen Records

No response

Device info

No response

Additional context

No response

BobbyESP commented 10 months ago

Clear the app data. It is already told in the changelog. This should fix the issue

Justavinash09 commented 10 months ago

Ok thanks

On Sat, 30 Dec, 2023, 1:15 am Gabriel Fontán, @.***> wrote:

Clear the app data. It is already told in the changelog

— Reply to this email directly, view it on GitHub https://github.com/BobbyESP/Spowlo/issues/80#issuecomment-1872304109, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2ZC6QMAVRJHKQBS33LPB5DYL4MVPAVCNFSM6AAAAABBG6LBVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGMYDIMJQHE . You are receiving this because you authored the thread.Message ID: @.***>