Closed summersab closed 1 month ago
Reproduced this. It happens when Podcini is brought back to the foreground (during the downloads). Got the following exception:
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionEpisodeViewHolder{6182c9e position=0 id=172210508604100, oldPos=0, pLpos:-1 scrap [attachedScrap] tmpDetached no parent} ac.mdiq.podcini.ui.view.EpisodesRecyclerView{4548c14 VFED..... .......D 0,0-1080,1211 #7f0a02f7 app:id/recyclerView}, adapter:ac.mdiq.podcini.ui.fragment.FeedEpisodesFragment$FeedEpisodesAdapter@c9c98d0, layout:androidx.recyclerview.widget.LinearLayoutManager@625ecbd, context:androidx.appcompat.view.ContextThemeWrapper@fd2bfc
at androidx.recyclerview.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:6590)
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6796)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6757)
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6753)
Appears the RecyclerView is not happy somehow.
Despite of the crash, the downloaded files appear to arrive unharmed
Likely fixed in 6.2.0
Yup, downloads still worked despite the occasional crashes.
I'll mark this as closed for now and will reopen if I see other related crashes.
downloads still worked despite the occasional crashes.
Do you still see occasional crashes in this case?
I just installed 6.2.0, so I haven't tested it extensively. I closed this because I take your word that you fixed it. If I see it happen again and can reproduce the problem, I'll reopen this issue, but in the meantime, I figured I'd reduce the clutter of open issues in front of you.
Reopening this. I'm getting ready for a road trip with my family and am downloading podcasts to listen to on the way. Starting multiple downloads (say, 5 or more) causes a lot of instability and crashes.
I don't know of it matters, but I am on the Queue view watching the episodes download, and that is when the crash happens. It may happen on any page, but I am not certain. I think it happens once one download finishes and the next begins.
OK, sorry about that. Fixed in the coming release. Same issue as I fixed in FeedEpisodes view. Other views don't appear to have this issue.
6.2.1 released
Seems this is not happening?
Seems not happening now.
Checklist
App version
6.1.6
Where did you get the app from
F-Droid
Android version
14 (LOS 21)
Device model
OnePlus 7 Pro
First occurred
No response
Steps to reproduce
Podcini is a little unstable when there is an active download in progress. It appears to have gotten better in recent versions, but it is still an issue. Sending the app to the background and bringing it to the foreground tends to cause a crash (it may take a few attempts). I believe there are other ways to trigger a crash while a download is in progress, but this seems to be the most reproducible method:
Expected behaviour
This should cause the app to crash.
Current behaviour
App shouldn't crash.
Logs
No response