-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Add song to playlist problem #100
Comments
Seems like this might be related to #84 A few questions:
If so,
It would be helpful if you could share the URL of a playlist that this happens with. |
|
For me also same problem. |
Are you using v0.2.0? If so please upload the stacktrace from the error, as the functions in the original one don't even exist anymore. |
android.database.sqlite.SQLiteException: no such function: IIF (code 1 SQLITE_ERROR): , while compiling: SELECT COUNT(IIF(PlaylistItem.playlist_id = ?, 1, NULL)) FROM PlaylistItem |
Seems like the IIF function isn't available on Android versions 11 and below (no idea why SQLITE version is tied to the OS version). I'll replace it with a compatible call. |
android.database.sqlite.SQLiteException: no such function: IIF (code 1 SQLITE_ERROR): , while compiling: SELECT COUNT(IIF(PlaylistItem.playlist_id = ?, 1, NULL)) FROM PlaylistItem |
Still not working |
Are you sure you're using the right build (3624436 or later)? The IIF function mentioned in the stacktrace doesn't exist in the source code anymore. You might have to clear the app's data to rebuild the database but I doubt that's the issue. |
Fix crash when adding item to playlist on older Android versions (closes #100) Fix playlist item add not working from long press menu
Whenever i want to add a song to my playlist, it generates this text
java.lang.NullPointerException
at com.toasterofbread.spmp.api.AccountPlaylistsKt.editAccountPlaylist(Unknown Source:63)
at com.toasterofbread.spmp.model.mediaitem.AccountPlaylist.saveItems-IoAF18A(Unknown Source:74)
at com.toasterofbread.spmp.ui.component.mediaitempreview.SongPreviewKt$SongLongPressMenuActions$1$5$1$3$1$1.invokeSuspend(Unknown Source:69)
at com.toasterofbread.spmp.ui.component.mediaitempreview.SongPreviewKt$SongLongPressMenuActions$1$5$1$3$1$1.invoke(Unknown Source:8)
at com.toasterofbread.spmp.ui.component.mediaitempreview.SongPreviewKt$SongLongPressMenuActions$1$5$1$3$1$1.invoke(Unknown Source:4)
at com.toasterofbread.spmp.ui.component.longpressmenu.LongPressMenuData$Actions$1$1$1.invokeSuspend(Unknown Source:63)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:100)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8374)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Suppressed: coil.network.HttpException: [StandaloneCoroutine{Cancelling}@e0984b0, Dispatchers.Main]
The text was updated successfully, but these errors were encountered: