Bug 6556 - 'Various Artists' replaces real Artists at various points in the Browse Artist List
: 'Various Artists' replaces real Artists at various points in the Browse Artis...
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: Browser
: unspecified
: PC Windows XP
: P2 normal (vote)
: 7.0
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-08 14:21 UTC by Patrick Dixon
Modified: 2009-09-08 09:23 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
log with network.comet enabled (1.86 MB, text/plain)
2008-01-29 03:01 UTC, Patrick Dixon
Details
fix artist browsing (2.25 KB, patch)
2008-01-29 08:56 UTC, Michael Herger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Dixon 2008-01-08 14:21:27 UTC
r1279

When Browsing Artists, in addition to the normal 'Various Artists' entry, other (seemingly random) Artist names are replaced by 'Various Artists'

eg

Web UI:-

..
Talk Talk
Talking Heads
Talvin Singh
Tanita Tikarum
Tasmin Archer
..

Jive UI:-

..
Talk Talk
Talking Heads
Various Artists
Tanita Tikarum
Tasmin Archer
..

Selecting the erroneous 'Various Artists' appears to give a list of the VA albums, making (in this case) Talvin Singh's Album inaccessible via browse Artists on Jive
Comment 1 Richard Titmuss 2008-01-11 05:45:21 UTC
Patrick, I've never seen this. Is it repeatable? Can you get network.comet logs from SC when it happens. Thanks.
Comment 2 Patrick Dixon 2008-01-11 06:17:09 UTC
Yes completely repeatable.  I have 6 or 7 'Various Artists' in my list, each (apart from one) replacing a valid artist which I can't therefore access.  I know which artists by comparing to the browse artist list on the Player and Web UIs - so it has to be a Jive issue.

What's a network comet log?  It happens all the time - they're just there in the list, so when would I take the log?  I'm pretty sure someone else reported it on the forums a while back - so it's not a new thing.
Comment 3 Patrick Dixon 2008-01-11 06:19:42 UTC
see this post:-

http://forums.slimdevices.com/showthread.php?t=38915
Comment 4 Richard Titmuss 2008-01-11 07:06:53 UTC
Thanks Patrick, this should be fixed for 7.0. Ben do you see this, or do we need to get logs from someone. I assume it's a SC problem, but the logs could prove this.
Comment 5 Blackketter Dean 2008-01-27 08:08:53 UTC
*** Bug 6809 has been marked as a duplicate of this bug. ***
Comment 6 Blackketter Dean 2008-01-28 10:56:33 UTC
Michael: can you help out ben on this?
Comment 7 Michael Herger 2008-01-28 12:04:40 UTC
Does any of your Counting Crows tracks fall into a VA album? If you connect to the CLI (telnet localhost 9090) and run the "artists 0 9999" query, do you see the same issue?

As Richard mentioned, network.comet might be interesting.
Comment 8 Patrick Dixon 2008-01-28 12:31:08 UTC
On my system, this occurred with artists that both did and did not have entries in VA albums.

AFAIKT, the telenet CLI command only produces a single VA entry at the start of the list.
Comment 9 Michael Herger 2008-01-29 01:50:02 UTC
Ahm... any logs? They could really be helpful.
Comment 10 Patrick Dixon 2008-01-29 02:19:32 UTC
Nothing shows in the logs.  What can I tell you ... ?

Get a Jive, a music library, run SC7 and it should be easily reproduceable I reckon.  It's a PITA scrolling through 900-odd Artists, but I see several instances of it in my setup.
Comment 11 Patrick Dixon 2008-01-29 02:21:45 UTC
If you want to connect here, email me and I'll give you ssh access to my server.
Comment 12 Michael Herger 2008-01-29 02:26:10 UTC
Did you enable network.comet logging? This is _very_ chatty and should produce tons of output.

Mail is on its way. Thanks.
Comment 13 Patrick Dixon 2008-01-29 03:01:35 UTC
Created attachment 2764 [details]
log with network.comet enabled
Comment 14 Michael Herger 2008-01-29 03:30:29 UTC
Ouch... it's really easily reproduceable: VA are part of _every_ resultset to the "artists" request. Thus they show up whenever Jive is fetching another bunch of items. By default it's every 200th item. By reducing that number to 20 I did see it as well (don't have 200 artists in my testing environment).
Comment 15 Michael Herger 2008-01-29 05:09:56 UTC
Patrick - does the following change fix this issue for you?

Index: /Users/mh/Documents/workspace/SC7.0/Slim/Control/Queries.pm
===================================================================
--- /Users/mh/Documents/workspace/SC7.0/Slim/Control/Queries.pm	(revision 16883)
+++ /Users/mh/Documents/workspace/SC7.0/Slim/Control/Queries.pm	(working copy)
@@ -614,7 +614,8 @@
 	
 		# Various artist handling. Don't do if pref is off, or if we're
 		# searching, or if we have a track
-		if ($count_va) {
+		if ($count_va && $start == 0) {
+
 			unshift @data, Slim::Schema->variousArtistsObject;
 		}
 
IMHO we should return the VA item only with the first slice ($index == 0), not with every subsequent slice again.
Comment 16 Patrick Dixon 2008-01-29 06:05:29 UTC
That seems to solve the extra VA problem for me, but I now have another issue that I don't think I had before - I can't scroll down to the bottom of the Artists list (I get to the last W, and can see "XTC" but can't get to it or any of the Zs).  If I wrap round from the top, the scroll wheel dies in the Zs and I have to use the home key to get out.
Comment 17 Michael Herger 2008-01-29 08:56:23 UTC
Created attachment 2765 [details]
fix artist browsing

Please give this a try, thanks!

Ben - I'm not sure about the magic involved when adjusting the $index for the last chunk only. If I do this for all chunks>0, Jive would loop. For some odd reason Jive is already requestion an index-1 what I would expect. Except for the last item - thus I added the correction there. But it's all a bit fuzzy to me.
Comment 18 Ben Klaas 2008-01-29 09:09:02 UTC
Michael fixed this in SC change 16901.

If you can verify the fix, Patrick, it would be much appreciated.
Comment 19 Patrick Dixon 2008-01-29 10:31:19 UTC
Unfortunately I am unable to test, because having updated to SqueezeCenter Version: 7.0 - 16880 - Debian - EN - utf8 it has hosed all my settings, is rescanning my library and Jive is stuck on the begin update screen.  Pressing the centre button does nothing, so I'm unable to access the browse screen.  Jive is r1658
Comment 20 Patrick Dixon 2008-01-29 10:51:48 UTC
OK, I'm back up and running now after reverting back a Jive fw version.

Looks good - well done Michael!

I'm not 100% sure if there are any missing Artists as the scan used the default setting and I have millions more Artists now (from all the VA albums) :-), but it looks good AFAICS.
Comment 21 Ben Klaas 2008-01-29 10:53:24 UTC
Patrick, your patience is exceptional. I know we're in beta, but you've been really put through the ringer here. Glad to hear you haven't been reduced to tears. Or maybe you have, it's hard to tell in a virtual world. :)
Comment 22 Patrick Dixon 2008-01-29 11:02:56 UTC
No problem!

I've spent many years in product development, so I know how it works (and sometimes doesn't).

I'm happy I could help :-) 
Comment 23 Michael Herger 2008-01-29 12:13:38 UTC
BTW: your server.log is _huge_ and has tons of the network.comet stuff in there. Make sure you turn it off again.
Comment 24 James Richardson 2008-05-15 13:01:19 UTC
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1

Please try that version, if you still see the error, then reopen this bug.

To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html