Bug 6514 - Playlist glitch with RandomPlay
: Playlist glitch with RandomPlay
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 7.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Michael Herger
http://www.carveraudio.com
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-31 10:15 UTC by James Sauter
Modified: 2009-09-08 09:14 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Sauter 2007-12-31 10:15:20 UTC
While playing tracks from a random list, the song I click on is NOT the song it starts to play.
Here is a screenshot of what happenes. I click on the Sir-Mix_alot song, and it started to play The Pet Shop Boys.

It is doing this all the time with songs thay are not even in the play list. Refreshing does not fix it either.

http://www.carveraudio.com/images/squeezecenter1.jpg


James
Comment 1 Blackketter Dean 2007-12-31 11:00:23 UTC
michael: can you look at this?
Comment 2 James Sauter 2008-01-02 08:11:24 UTC
I did find yesterday, if I turn OFF the shuffle option, this issue stops.
It seems as though if the Shuffle option is on, when you click play on a spacific song, the shuffle feature takes action AFTER you push play, and seems to jump to another track by itself.

Aside from this, the software seems to be working very smoothly so far. Keep up the good work, I love my SB !!!

James
Comment 3 Michael Herger 2008-01-03 01:26:33 UTC
Is this a playlist played in shuffled mode? Or a random playlist created using the RandomPlay plugin?
Comment 4 Michael Herger 2008-01-07 07:13:39 UTC
James - I still can't reproduce this issue. Can you please tell me how you created that playlist? Is it a random mix plus the shuffle option turned on?

QA - any chance you can reproduce this?
Comment 5 James Sauter 2008-01-07 10:52:25 UTC
Yes the shuffle option was on, and I added a "random songes" mix.
I will try to do it again tonight, and see if I can do the same thing.
If you want, I will video tape it if it works.

James
Comment 6 Ross Levine 2008-01-07 16:31:43 UTC
I was able to reproduce this with random mix with shuffle disabled. Random mix created a playlist of 17 tracks and started playing, I clicked to play the 7th song using the new default web ui, it started playing track 8. Again I tried playing track 7, again it played track 8. I tried playing track 8, that works :) Do we need a log or anything? Repro steps seems simple Random song mix from new default UI (not classic), click play on several of the items on the list and you'll notice some work and some do not. 
Comment 7 Michael Herger 2008-01-07 23:02:14 UTC
What are your settings in RandomPlay for adding/removing songs from the list?
Comment 8 James Sauter 2008-01-08 06:18:36 UTC
Sorry, I got home pretty late last night and did not get a chance to test the system again. I will get it done tonight.

For anyone interested, I posted a video the other day on YouTube of the iPeng iPhone app. Here is a link to it, if you should want to show anyone.
http://www.youtube.com/watch?v=Mjq7LxhOTk0

James

Comment 9 Michael Herger 2008-01-10 04:00:59 UTC
Ross - can you give me some more information about the RandomPlay settings you're using?
Comment 10 Ross Levine 2008-01-10 11:58:39 UTC
I've reproduced it with both Random songs and Random albums, all genres are checked and Now playing shows 10 upcoming songs, and 10 recently played songs. Note: I've reproduced this twice in about 15 attempts. 
Comment 11 James Sauter 2008-01-10 14:55:08 UTC
Ok, looks like you got a handle on the problem, do you need anything else from me ?

The "glitch" isn't a big deal for me at all, I really don't care so much.
It's actually kinda like a game, you never know waht you ate going to get :)

I was just letting you know about it.

GOOD LUCK !!!!

PS, if either of you guys finds a lonley little Transporter laying around that is looking for a good, loving and caring home, make sure you don't take it home yourselves, but call me. I'd be happy to adopt one. 239-337-5556

Wish the price wasn't so damn high, I'd just buy one.

Are there any programs as to getting some kind of discount if I were to advertise on my website (banners or something) for you?
There are a few threads running on my forum about Slimdevices. and there are a few of us trying to get the audiopholes, "To come over to the dark side" of digital.

Oh, by the way...  This is me, here's what I bought my 1st Squeezebox for:
http://forums.slimdevices.com/showthread.php?t=27219&highlight=olufsen

Just in case you want to take a look, here is my website:
www.CarverAudio.com 

and here are the links to the threads about SD on my forum.
You'll see I have been trying to push you guys since I got mine...

Forum Search: Squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=2964&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=4103&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=3411&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=4069&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=4058&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=4049&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=1393&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=3835&highlight=squeezebox
http://www.carveraudio.com/phpBB2/viewtopic.php?t=3416&highlight=squeezebox


Later, good luck, and keep the toys coming !!!!!!!!!!

James
Comment 12 Michael Herger 2008-01-14 04:44:16 UTC
I'm sorry, no idea what's going on here. I can't reproduce... I tried with shuffle on and off (noticed RandomPlay would turn it off). Several pages of songs queued up, clicking from second page. Everything is behaving as expected. Are you all using the very latest and greatest builds, cleared your browser's cache and fully reloaded the page? What browser are you using?
Comment 13 Ross Levine 2008-01-14 16:43:21 UTC
Updated to 7.0 - 16243, cleared IE6 cache, random mix -> random albums, clicked play and the bug manifested itself immediately. SC showed it was playing track 1, it was actually playing track 2. I clicked play track 1, it restarted track 2. 

Michael is there any logging that would help? I seem to have little trouble reproducing this. 
Comment 14 Michael Herger 2008-01-15 01:15:30 UTC
> Michael is there any logging that would help? I seem to have little trouble
> reproducing this. 

No idea, really. First I hoped it would be an IE6 issue (well, didn't really hope so, but at least this would have given an idea). But no way. I can play random tracks, artists, albums, toggle shuffle as much as I want, it just works for me.

As I don't know whether it's the javascript on the client side or something wrong on the server side, I do not even know where to start digging. Can you reproduce this with any browser? With any of the shuffle options (none, album, playlist)? With any of the RandomPlay modes?
Comment 15 KDF 2008-01-15 10:46:31 UTC
Does this only happen with Default skin?  We can try to isolate whether this is a server or html code problem?
Can you capture the url of the song that you are trying to click on, either right click and copy location, view source and find it, or use firebug to "inspect html".  Then use browse to find the same song url and compare id's.

Comment 16 James Sauter 2008-01-15 19:40:02 UTC
OK.... I have figured out WHEN it happens and WHY.

It doesn't matter which shuffle mode you are using, it does it with all modes.

It seems I am moving faster than the software.
If you scroll to the bottom of the 10-20 ramdomly listed songs, and click play on one of them, it will play correctly.  If you click on another song (right away, not giving the list enough time to add the next 6-8 songs) it will jump to a random song. (so I thought... see below)
If you click play on a song, and wait for the list to refresh/add more songs, and THEN click play on anther track, it will play the track you want. 

Looks to me the software is still building the new list, and if you click anything while it is processing, whatever you clicked on actually changes by the time the list is updated. 

This happens in IE7 and Firefox.

If you click a song at the bottom of the list before waiting for the list to update (and don't move your mouse) when the list is finished updating, you will be ON the song it (ramdomly) jummped to.

I guess it's not so much a glitch, but a "patience" issue. You have to be patient as SC builds the new list... If you don't wait, you will not get the song you clicked on, you will get the NEXT song that appears in that row, after the list is finished rebuilding.

Sorry if I have waisted your time, as it seems the software is working correctly, just not as fast as I would like.
The list DOES seem to rebuild much faster in Firefox than in IE7, but then it is a MS program... what do you expect right ??

Ok, I hope this at least helps you see what it was doing to me, and maybe there is something that can come out of this.

Goodluck, and thanks for looking into it.....   
No one found the extra Transoprter with my name on it I guess huh... damn.

Thnaks guy's LOVE my SB and the new SC7 !!! Hopefully soon I will scrape up the cash for a Pretty Shiny Black Transporter.

Tell then,

James




Comment 17 James Sauter 2008-01-15 19:40:12 UTC
OK.... I have figured out WHEN it happens and WHY.

It doesn't matter which shuffle mode you are using, it does it with all modes.

It seems I am moving faster than the software.
If you scroll to the bottom of the 10-20 ramdomly listed songs, and click play on one of them, it will play correctly.  If you click on another song (right away, not giving the list enough time to add the next 6-8 songs) it will jump to a random song. (so I thought... see below)
If you click play on a song, and wait for the list to refresh/add more songs, and THEN click play on anther track, it will play the track you want. 

Looks to me the software is still building the new list, and if you click anything while it is processing, whatever you clicked on actually changes by the time the list is updated. 

This happens in IE7 and Firefox.

If you click a song at the bottom of the list before waiting for the list to update (and don't move your mouse) when the list is finished updating, you will be ON the song it (ramdomly) jummped to.

I guess it's not so much a glitch, but a "patience" issue. You have to be patient as SC builds the new list... If you don't wait, you will not get the song you clicked on, you will get the NEXT song that appears in that row, after the list is finished rebuilding.

Sorry if I have waisted your time, as it seems the software is working correctly, just not as fast as I would like.
The list DOES seem to rebuild much faster in Firefox than in IE7, but then it is a MS program... what do you expect right ??

Ok, I hope this at least helps you see what it was doing to me, and maybe there is something that can come out of this.

Goodluck, and thanks for looking into it.....   
No one found the extra Transoprter with my name on it I guess huh... damn.

Thnaks guy's LOVE my SB and the new SC7 !!! Hopefully soon I will scrape up the cash for a Pretty Shiny Black Transporter.

Tell then,

James
Comment 18 James Sauter 2008-01-15 19:40:52 UTC
Sorry about the double post
Comment 19 Jim McAtee 2008-01-15 21:52:43 UTC
I've just reproduced this.  Random Mix, all genres selected, 15 upcoming, 5 recently played, playing random songs, shuffle and repeat both OFF, although most of that doesn't matter.  Does it with different numbers of tracks in upcoming/played and does it with just single genre selected.

I've reproduced it in Default, Classic and Fishbone skins.

In Default and Fishbone skins, since there's an album cover displayed in the status pane I can clearly see that the selected track becomes Now Playing for a split second (and I *think* I'm also hearing the track begin to play), then some other random track in the playlist begins playing.  So it appears to be making a random jump a fraction of second after playback of the selected track starts.

Something other observations:

1)
Random Mix loads the 15 tracks I've asked for, always flashes track #1 for a split second, but then it plays track #3 in the playlist.  Every single time it's always #3 track in the list.

2)
If I select the last track in the playlist, it loads the track artwork in the status pane and highlights the track in the playlist, but playback immediately stops.

3)
The Stop button in Fishbone doesn't stop - it causes the next track to play.

4)
Sometimes the artist shown in the status pane is incorrect.

5)
After being in Random Mix and getting into this state, if I click on an artist, then play one of the artist's albums, I get much of the same behavior.  It begins playing track #3 and clicking on a track in the playlist will play some other track.  

Clearing the playlist breaks out of the behavior for non-Random Mix modes, but returning to Random Mix will display the same behavior.  Restarting SC7 breaks out of the behavior in Random Mix until you get into the state again.

To get into this state, I believe you just quickly click tracks in the Random Mix playlist until SC7 gets confused.
Comment 20 Michael Herger 2008-01-16 02:08:55 UTC
Thanks James, makes sense: the play command is based on the index within the playlist. By clicking faster than the list updates, you've hit an item which isn't the same any more, as in the background the list has changed.

QA - can you reproduce some of Jim's observations?
Comment 21 Jim McAtee 2008-01-16 02:19:13 UTC
(In reply to comment #19)
> I've just reproduced this.

I take it all back.  I was testing this from work with a Squeezeslave client and seeing all the weirdness.  Now I'm home and using an SB2 client and can't reproduce the problems with this player.
Comment 22 Ross Levine 2008-01-16 12:06:24 UTC
I also have no trouble reproducing this with IE6 or firefox. FWIW I'm reproducing with a VM of xp pro SP2 2.8ghz 256mb or ram. 

Michael is there anything else I can do to help? 
Comment 23 Michael Herger 2008-01-18 07:17:17 UTC
Thanks Jim for the feedback.

Ross - no, I meant testing Jim's additional issues. But as he's taken them back, your lucky. Will take over the main bug again.

I'm not sure yet how I could prevent the user's clicking too early (before the playlist is updated). 
Comment 24 Michael Herger 2008-01-21 04:35:00 UTC
I'm a bit out of ideas how this should be handled. We have a timing issue here: the application's state isn't represented in the UI yet. 

Would you rather...
- block the UI until it's updated?
- replace the UI immediately with some "please wait..." message?
Comment 25 Blackketter Dean 2008-01-21 07:25:34 UTC
What is the lag between when the song changes and the UI is updated?  

Also, could the web ui know that it's changed?  A spinny might be all we need here.
Comment 26 Michael Herger 2008-01-21 07:52:02 UTC
> What is the lag between when the song changes and the UI is updated?  

Depends on a lot of factors (client, server, browser, collection size etc.). It's about two seconds for me.

> Also, could the web ui know that it's changed?  A spinny might be all we need
> here.

As with many details in the new skin we've been there before and I had to remove it (rev. 13231). We've put it back for some cases, but I don't see how I could differentiate between "normal" and RandomPlay mode.

I could silently ignore any action until the update has finished, though.
Comment 27 Michael Herger 2008-01-24 03:18:18 UTC
Change 16693 blocks mouse clicks while it's waiting for the playlist to be updated. Please give it a try. Can you still reproduce?
Comment 28 Michael Herger 2008-01-25 00:46:46 UTC
closing - feel free to re-open if you can still reproduce this issue with the latest revision
Comment 29 Chris Owens 2008-03-07 09:04:32 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.