FS#12987 - Shuffle does not work properly any more (H300)

Attached to Project: Rockbox
Opened by Alex (rothschild86) - Sunday, 06 July 2014, 18:43 GMT
Last edited by Thomas Martitz (kugel.) - Monday, 21 July 2014, 07:00 GMT
Task Type Bugs
Category Playlists
Status Unconfirmed   Reopened
Assigned To No-one
Operating System Iriver H300 series
Severity Medium
Priority Normal
Reported Version Release 3.13
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Been using Rockbox for years, so it was really obvious when things got messed up somewhere in 3.12~3.13. In a nutshell, with this release, in a 1000+ playlist, I'm listening to the same songs over and over again when shuffle is on. To fix the issue, I have to turn shuffle OFF and then flip it back to ON every time I start a player. Never had this problem before. Don't know if this affects all devices or just my H340 (yes! still going strong!).
This task depends upon

Comment by MichaelGiacomelli (saratoga) - Sunday, 06 July 2014, 20:00 GMT
How are you shuffling?
Comment by Alex (rothschild86) - Sunday, 06 July 2014, 21:21 GMT
on H300, I press A-B and there is an option: Shuffle: Yes/No
Comment by MichaelGiacomelli (saratoga) - Sunday, 06 July 2014, 23:43 GMT
Testing in the current build, every time I reboot and then load a playlist with Playback Settings > Shuffle > yes, the playlist is reshuffled.
Comment by Alex (rothschild86) - Monday, 07 July 2014, 00:05 GMT
Ok, one more detail. i don't load a playlist every time. I have Resume Playback enabled. Thanks for looking into this Michael :)
Comment by MichaelGiacomelli (saratoga) - Monday, 07 July 2014, 00:33 GMT
I think that expected behavior then. When you reboot with a playlist in memory, its stored to disk so that it can be resumed precisely as you left it.
Comment by Alex (rothschild86) - Monday, 07 July 2014, 02:42 GMT
two thoughts:
1) It is not resumed where i left it. it now goes back and starts where it started last time, replaying all the same songs.
2) It used to function as expected. The player would return to the same playlist on reboot and continue shuffling in the new stuff.

Do you have access to the old code to see what changed?
Comment by MichaelGiacomelli (saratoga) - Monday, 07 July 2014, 06:18 GMT
I'm not sure what you mean with #1, but if you can't figure it out, ask in the forums.

Source code is in git if you want it.

Comment by Thomas Martitz (kugel.) - Monday, 21 July 2014, 07:03 GMT
I would like to fully understand this issue before declaring not a bug. It sounds like it could be a bug.

The expected behavior is when you power up with a shuffled playlist and resume playback is that the playlist is *not* reshuffled, and playback resumes at the exact time (not start of last song, nor start of playlist) where you powered off.

Is this not the actual behavior anymore?
Comment by Alex (rothschild86) - Monday, 21 July 2014, 14:01 GMT
thank you for re-opening this. i ended up reverting to 3.11 for now. you are correct in describing the expected behavior (works as expected in 3.11). and no, that does not happen. right now it seems as if rockbox does not save the progress of the last listening session and always returns to the same (stale) point in the playlist.
Comment by Thomas Martitz (kugel.) - Tuesday, 22 July 2014, 05:49 GMT
Save & restore of the resume position is independent of shuffle/playlists. So if the playlist itself is saved and not reshuffled on restart the playlist side should be working fine. Does resume work with unshuffled playlists?
Comment by Alex (rothschild86) - Tuesday, 22 July 2014, 13:58 GMT
agreed. bad interaction between the two independent functions. would have to upgrade back to 3.13 to try, but imagine that both conditions are the requirement, otherwise many more people would have reported this.
Comment by William F. Dudley Jr. (wfdudley2) - Wednesday, 02 December 2015, 00:06 GMT
Yes, I see this exact behaviour. 3.13 shuffle is broken, when you resume playback, you hear the exact same songs again as before you shut the device down.
Comment by Alex (rothschild86) - Thursday, 03 December 2015, 20:26 GMT
thx for confirming. better late than 1.5 years later :) i ended up downgrading my rockbox and never looked back.