Bug 8036 - CLI: albums query hangs sometimes with "a" tags
: CLI: albums query hangs sometimes with "a" tags
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: CLI
: 7.0
: All All
: -- normal (vote)
: 7.x
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-02 07:17 UTC by Raoul Hecky
Modified: 2009-07-31 10:20 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Patch for Queries.pm (577 bytes, patch)
2008-05-02 07:17 UTC, Raoul Hecky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raoul Hecky 2008-05-02 07:17:08 UTC
Created attachment 3317 [details]
Patch for Queries.pm

When using the "albums" query with the CLI, squeezecenter spawn an error and stop the current request to continue. It appears to append only when the "a" tag is used, like "albums x y tags:a".
Squeezecenter give this error on stdout:
Slim::Plugin::CLI::Plugin::cli_process (606) Request [albums] failed with error: Bad dispatch!
Slim::Control::Request::execute (1750) Error: While trying to run function coderef [Slim::Control::Queries::albumsQuery]: [Can't call method "name" on an undefined value at /usr/share/perl5/Slim/Control/Queries.pm line 420.

Attached is a small patch for Queries.pm to test if $artists[0] is defined before calling $artists[0]->name()
Comment 1 Andy Grundman 2008-05-06 10:54:37 UTC
Fixed in 7.0.1 change 19492.
Comment 2 Ross Levine 2008-05-09 16:05:13 UTC
Verified to be fixed in 7.0.1 - 19597.
Comment 3 James Richardson 2008-05-15 12:31:08 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
Comment 4 Chris Owens 2009-07-31 10:20:31 UTC
Reduce number of active targets for SC