[Bug][5.0b2] App crashes when scrolling through playlist search results
Checklist
- [x] I make sure that the issue is NOT a duplicate of pinned issues
- [x] I make sure I am using the LATEST version - check here
- [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
- [x] I have attached the error report in the issue
Describe the bug
App crash when scrolling down the searching results. Follow steps to simulate.
Frequency
Always (100% of the time)
Device
No response
Steps to reproduce the bug
- Go Search
- Search filter: Youtube, Type: Playlists, Sort: Views
- Type "disney" and click search
- Scrolling down to the end two to three times
- App crashed
Additional context
{"os":"Linux samsung/a55xzh/a55x:16/BP2A.250605.031.A3/A5560ZHUACYI9:user/release-keys 16 - 36","device":"samsung SM-A5560 (a55x)","app_version":"5.0.0-beta2 (2001)","timestamp":1761999797304,"language":"en_HK","timezone":"Asia/Hong_Kong (UTC+8:00)","task":"UNKNOWN","request":null,"stacktrace":"java.lang.ClassCastException: project.pipepipe.shared.infoitem.PlaylistInfo cannot be cast to project.pipepipe.shared.infoitem.StreamInfo\n\tat project.pipepipe.app.helper.FilterHelper.filterStreamInfoList(FilterHelper.kt:865)\n\tat project.pipepipe.app.viewmodel.SearchViewModel.loadMoreResults(SearchViewModel.kt:267)\n\tat project.pipepipe.app.viewmodel.SearchViewModel$loadMoreResults$1.invokeSuspend(SearchViewModel.kt:0)\n\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)\n\tat kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)\n\tat android.os.Handler.handleCallback(Handler.java:995)\n\tat android.os.Handler.dispatchMessage(Handler.java:103)\n\tat android.os.Looper.loopOnce(Looper.java:273)\n\tat android.os.Looper.loop(Looper.java:363)\n\tat android.app.ActivityThread.main(ActivityThread.java:10060)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)\n\tSuppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ffab098, Dispatchers.Main.immediate]\n"}