Bug 302780 - When playing shuffle, it automatically starts at the album first song and not the first in the shuffle playlist
Summary: When playing shuffle, it automatically starts at the album first song and not...
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: Playlist (show other bugs)
Version: 2.8.0
Platform: Debian unstable Linux
: NOR normal
Target Milestone: 2.8
Assignee: Amarok Developers
URL:
Keywords: regression, release_blocker
Depends on:
Blocks:
 
Reported: 2012-06-30 07:50 UTC by ximi
Modified: 2013-08-23 14:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (41.42 KB, image/png)
2012-06-30 07:50 UTC, ximi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ximi 2012-06-30 07:50:20 UTC
Created attachment 72231 [details]
screenshot

How to reproduce the bug:
1. Set your amarok to sort what you play in shuffle mode (see screenshot below or in the attachment)
http://desmond.imageshack.us/Himg98/scaled.php?server=98&filename=amarokbug.png&res=landing
2. Stop all the music and clear your playing list.
3. Select an album and drag and drop it in order to "replace the playing list" or "add to playing list"

what is happening:
Amarok starts to play the first song of the album. But the songs are sorted randomly, so the first song of the album is rarely the first song of the playing list. Thus, it skips all the songs that are sorted above the first song played (the first of the album)

what should happen:
As it did before, it should start the play at the first song in the playing list, and not the first song of the album which can be anywhere.

I'm using debian sid amd64 with amarok 2.6~beta1+75.g47e75 and vlc backend for phonon.
Comment 1 Myriam Schweingruber 2012-06-30 07:57:40 UTC
Did you re-apply the playlist filter once the playlist content changed?
Please also make sure you have no other playback filters active (right button at the bottom of the playlist queue).
Comment 2 ximi 2012-06-30 08:43:39 UTC
> DPlease also make sure you have no other playback filters active (right button at the bottom of the playlist queue).

I'm in "Standard" mode if it is what you ask for. I used to be in random on amaraok 1, but this function doesn't do what I want anymore (last time I tried, it activated the repeat mode too... https://www.youtube.com/watch?v=rubWBETtd_I I'v been told to use the filter "shuffle" instead)

> Did you re-apply the playlist filter once the playlist content changed?

I don't understand this. I always have the same filter for my playing list : shuffle (as I always listen albums in shuffle mode). If I click on "shuffle" while the music play, it will resort randomly the songs, but the problem still exists.

I think, I've explained quite well how I do in my first post (even if my english is not quite well ^^):
- the filter "shuffle" is on and there is no song in your playlist queue and amarok is not playing anything
- you add an album in the playlist queue by using drag and drop on the big button in the middle window which says something like "replace the playing list" or "add to playing list" (I've a french version, so I don't know what is written exactly in the english one)
- it starts with the wrong song

Moreover, in the last release, all worked fine (certainly this one in debian experimental: 2.6~beta1-1). This problem appeared just few days ago when the new update came in Debian Sid. And I haven't changed anything (that's why I think this is a bug and not my fault)

I can reproduce it as many time as you want. Maybe there is a problem only with me, but in this case, what should I do? reinstall amarok? delete its preference files?
Comment 3 Myriam Schweingruber 2012-07-02 09:32:50 UTC
My questions were mainly to make sure it was not another problem.

We didn't release a new beta since beta1, so it would be interesting to know which exact git build you have. It would make finding the problem easier.
Comment 4 ximi 2012-07-02 15:40:21 UTC
ok. As I'm not a native english speaker, I wasn't sure I well understood the question.

I use the last version in Debian Sid repository: 2.6~beta1+75.g47e75df-1
http://packages.debian.org/sid/amarok

in the menu Help -> About Amarok, it says: Amarok 2.5-GIT compiled on June 28 2012.
I don't know how get the exact git version of what I'm currently running... If you want me to do some manipulations, do not hesitate!

oh, and I use KDE 4.8.4 (don't know if it is important).
Comment 5 Myriam Schweingruber 2012-07-08 00:07:10 UTC
Thank you for the feedback, compiled on June 28 will already help to narrow down the problem.
Comment 6 Modestas Vainius 2012-07-12 19:31:13 UTC
47e75df is the master commit which the package was built from (as encoded in the package version)
Comment 7 ximi 2012-08-12 20:55:56 UTC
the bug still exist in the new version of amarok in Debian Sid:
amarok 2.6~rc1-1, 2.5.96 (build date: August 7 2012)

It is strange that this bug is still unconfirmed. It maybe comes from a problem in my linux...
Comment 8 Myriam Schweingruber 2012-08-14 08:56:24 UTC
Sorry, didn't find time to test this before, confirmed in current Amarok 2.6-git
Comment 9 Matěj Laitl 2012-12-14 16:38:37 UTC
Hi ximi, I cannot reproduce this with 2.7 Beta (2.6.90), perhaps this git solved by https://projects.kde.org/projects/extragear/multimedia/amarok/repository/revisions/57e5bf466b364a0e086000b2d24f00e1e336b22e ? Please retest with 2.7 Beta.
Comment 10 ximi 2012-12-15 14:08:25 UTC
that's a good news :)
unfortunately, Debian is actually freezing the packages (the next stable should be released in february). I'll test that as soon as this version will come in debian sid.

Thank you for this news!
Comment 11 Matěj Laitl 2012-12-15 14:11:10 UTC
(In reply to comment #10)
> that's a good news :)
> unfortunately, Debian is actually freezing the packages (the next stable
> should be released in february). I'll test that as soon as this version will
> come in debian sid.

Just to note: building Amarok locally isn't hard: http://blogs.fsfe.org/myriam/2009/09/compiling-amarok-from-git-locally-full-summary/ (please uninstall distro Amarok package first)
Comment 12 Myriam Schweingruber 2013-02-11 17:57:45 UTC
Any news on this? We released Amarok 2.7 final a few weeks ago
Comment 13 ximi 2013-02-12 20:10:05 UTC
(In reply to comment #12)
> Any news on this? We released Amarok 2.7 final a few weeks ago

Sorry for the late, I wanted to post before but I forgot (shame on me).

This bug still exists for me in amarok 2.7, but maybe it is related to my Debian (as Matěj Laitl seems to don't have it).
Or may it be because of the plugins / scripts I have in Amarok?

my scripts enabled:
- lyricwiki
- ultimate lyrics
- cool streams
- radio françaises

my plugins enabled: I disabled everything except
- Ipod collection
- CD collection
- USB collection (mass storage)
Comment 14 Modestas Vainius 2013-02-13 08:03:47 UTC
Could you try with phonon-backend-vlc  0.6.1 from experimental?
Comment 15 ximi 2013-02-13 10:20:54 UTC
(In reply to comment #14)
> Could you try with phonon-backend-vlc  0.6.1 from experimental?

I just did it (v. 0.6.1.1). I even restarted my computer just in case (windows' user habit :/). But nothing has changed.
Well, I don't see how an external program could change how the playlist play the music in shuffle...

I plan to reinstall all my system when the next Debian version will be (at least) released. I'll give you some news at this moment. I also can try on a Kubuntu live system to see if this bug exists there too (it is very strange that I'm the only one to get it).
Comment 16 Myriam Schweingruber 2013-04-11 08:13:23 UTC
Any news on this? FWIW: I ran Amarok 2.7.0 on Kubuntu 12.10 and haven't observed that beahvior.
Comment 17 Myriam Schweingruber 2013-07-22 00:07:53 UTC
Closing correctly.
Comment 18 ximi 2013-08-22 22:02:29 UTC
well...
I'm really sorry for the lack of news. I was really busy by the end of my last study year. my Linux was broken (the pleasures of debian sid with experimental packages ^^) and I didn't had the time to fix it.

Now that I have a little time, I just reinstall completely debian sid with KDE 4.10.5 and amarok 2.8.0.

well... this bug effectively disappead. but something new happens: when I choose "shuffle" to sort the playing lists, it shuffles my current playlist once, but the sort is not remembered as it was before (the label "shuffle" is not shown). whereas, if I choose to sort the playlist by "year", the label "year" is showed and it doesn't disapperad; so, if I change the current playlist, the sort is done again.

well... if you are interested, I can make a video to explain it more precisely. What I just want is a way to listen a complete album in shuffle only once (what was possible before by just choosing to play in "random tracks"). can you tell me how to do it?

I'm really sorry if it is a dumb question.
anyway, thank you to help me and to make amarok as cool as it is :)
Comment 19 Matěj Laitl 2013-08-22 23:02:45 UTC
(In reply to comment #18)
> but something new happens: when I
> choose "shuffle" to sort the playing lists, it shuffles my current playlist
> once, but the sort is not remembered as it was before (the label "shuffle"
> is not shown). whereas, if I choose to sort the playlist by "year", the
> label "year" is showed and it doesn't disapperad; so, if I change the
> current playlist, the sort is done again.
> 
> well... if you are interested, I can make a video to explain it more
> precisely. What I just want is a way to listen a complete album in shuffle
> only once (what was possible before by just choosing to play in "random
> tracks"). can you tell me how to do it?
> 
> I'm really sorry if it is a dumb question.
> anyway, thank you to help me and to make amarok as cool as it is :)

This is not a bug, but a feature: the shuffle was reimplemented as an action (rather than a state) in Amarok 2.8. The reason is that manually reordering tracks didn't work at all previously if the "sorting" was "Shuffle", which is a more grave problem than the one above.

So it means that you'll have to Shuffle every time you finish prepare the playlist. Fortunately we've added a convenient way to do it: Ctrl+H shortcut. Unfortunately, pressing Ctrl+H in Amarok 2.8 crashes it, sorry about that. :) It is fixed in git, we'll be also releasing 2.8.1.

For future reference: please open new bugs rather than reopening the closed ones in similar cases (unless the problem is exactly the same).
Comment 20 ximi 2013-08-23 03:03:13 UTC
OK, very sorry, I should have open a new bug...

thank you for the shortcut. but, it is a pity that there is no other way to play in shuffle than sort manually the playlist each time... (very approximative english :s)
I know this is a feature you work hard on (it had a lot of changes since amarok 1) and it begins to go better (now, it remembers the order of the playlist when i quit amarok and reopen it).

thank you very much for what you do.
Comment 21 Myriam Schweingruber 2013-08-23 08:28:46 UTC
Why don't you use the Random playback mode? If you load all your tracks in the playlist (which is not necessary as there are dynamic playlists BTW) then Random mode is probably what you are looking for, not shuffle: http://userbase.kde.org/Amarok/Manual/AmarokWindow/PlaylistPane#Track_Progression
Comment 22 ximi 2013-08-23 13:45:31 UTC
The reason why I put my tracks in the playlist is because I like to listen complete albums by complete albums (and and the songs of the album in random order). So, when an album is finished, I just have to drag and drop a new one in the special case "replace playlist" and voila. the new album starts and I don't have to care about the playlist until the album is finished.

The reason why I don't use the "random playback mode" is because this mode also enable repeat mode (I just retest it right now). So, How can I know that I already listened the complete album if it never stops the music! (I listen to music when I'm working, and sometimes the album play 3 times before I realize that I have to change the playlist).
when I complain about this, I've been told to use the shuffle playlist sort (well, I don't find this thread anymore...), which used to work until recently.

what is interesting is that I've found a post where *you* say that random and repeat don't work together (https://forum.kde.org/viewtopic.php?f=115&t=85115&start=15#p154498) while it *is* what is currently happening as it is described just 3 posts below yours.

all in all, I completely agree with you that what I'm looking for is the random mode (if it did what I expect it to do).

I'm OK some people want to listened random and repeat, but what I want is to listen random only. if you know a better way for me to use amarok, you are very welcome.
Comment 23 Matěj Laitl 2013-08-23 14:01:40 UTC
(In reply to comment #22)
> The reason why I don't use the "random playback mode" is because this mode
> also enable repeat mode (I just retest it right now).

Yeah, this is the way it works currently. To prevent any misunderstanding: the technical reason that it plays indefinitely is not that it purposefully enables "repeat mode" (in fact, there is not such mode), but simply because the algorithm is naive and cannot see it has already played the track is chooses (or, if it is not naive, it is broken).

It would be a valid wish to enhance the "Random Tracks/Albums" play mode not to duplicate tracks. (or perhaps even a bug? depends on whether it always behaved like this or not)