Bugzilla – Bug 6090
Can't see the list of players in default skin
Last modified: 2007-11-10 01:18:01 UTC
Updated to SVN 14496, and today I can't see any drop-down options in the Choose Player control. I see the following in my log file: [08:21:28.1354] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1351] Request: Query [serverstatus] from JSONRPC (Bad dispatch!) [08:21:28.1358] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1355] Param: [_index] = [0] [08:21:28.1361] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1359] Param: [_quantity] = [99] [08:21:28.1366] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1362] Result: [version] = [7.0] [08:21:28.1371] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1368] Result: [info total albums] = [1612] [08:21:28.1375] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1372] Result: [info total artists] = [545] [08:21:28.1379] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1376] Result: [info total genres] = [76] [08:21:28.1382] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1380] Result: [info total songs] = [17650] [08:21:28.1385] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1383] Result: [player count] = [1] [08:21:28.1389] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1386] Result: [players_loop] is loop with 1 elements: [08:21:28.1392] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1390] Result: 0. [playerid] = [00:04:20:06:38:3c] [08:21:28.1398] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1394] Result: 0. [ip] = [192.168.1.14:22881] [08:21:28.1402] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1399] Result: 0. [name] = [Bedroom] [08:21:28.1405] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1403] Result: 0. [model] = [squeezebox2] [08:21:28.1408] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1406] Result: 0. [power] = [1] [08:21:28.1413] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1409] Result: 0. [displaytype] = [graphic-320x32] [08:21:28.1417] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1415] Result: 0. [canpoweroff] = [1] [08:21:28.1421] Slim::Utils::Misc::msg (1210) Warning: [08:21:28.1419] Result: 0. [connected] = [1] [08:21:28.1425] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch! [08:21:28.1740] Slim::Control::Request::execute (1717) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Can't use an undefined value as an ARRAY reference at P:/Music/SlimServer/trunk/server/Slim/Networking/SqueezeNetwork/Players.pm line 115. ] I am also seeing a lot of the following message in the log (roughly 3 a second): [08:24:12.6096] Slim::Utils::Misc::msg (1210) Warning: [08:24:12.6092] Use of uninitialized value in addition (+) at P:/Music/SlimServer/trunk/server/Slim/Networking/SqueezeNetwork/Players.pm line 84. Is it trying to communicate with SqueezeNetwork all the time?
only thing I can think of, try changing line 79 of Networking::SqueezeNetwork::Players to: $PLAYERS = $res->{players} || []; or turn on network.squeezenetwork debugging and see what you get in the log around that same as you have attached. It should detect a bad response given that $PLAYERS is otherwise always initted as [] (an empty array ref)
I think I have figured out what causes the WebUI to get into this state. I start SoftSqueeze and select this as the player in the WebUI, then stop SoftSqueeze, close the web browser, and stop the server. When I restart the server and open the web browser, it doesn't have the SoftSqueeze player any more, and thus displays an empty player list.
Phil - could you please turn on JSON/RPC & CLI debugging and see what exact command is sent to the server?
I updated to latest SVN, cleared my cache, and since then I haven't been able to reproduce.
ah ok. Given the recent information about clearing cache for scripting, lets go with this being a caching error for the moment. The detail is that js scripts are loaded with a ?r=<revision> param. nightlies have the svn number for this param, but the trunk updates on svn only have "trunk" as the revision and the r= param. As such, svn users do need to clear the cache to flush the scripts. please do reopen if ou do find a reproduceable case.