Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 65
  1. #11
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315
    Quote Originally Posted by mruano View Post
    Yes, I am afraid I do: I have 5,127 genres - I have not bothered to edit them, as I don't use genres very much - so they are the ones that came with the original recordings. Would that be the cause?
    Well, that certainly would kill it. I've only found one place which would trigger the message you're seeing. And that's rendering the Genres list in the Advanced Search. (doesn't mean there couldn't be any other code breaking the same way, but that's what I've found)

    You could try patching the template toolkit. Increase the number of max iterations in a WHILE loop from 1000 to 10000:

    Code:
    diff --git a/CPAN/Template/Directive.pm b/CPAN/Template/Directive.pm
    index 152023861f..2e5713ccb3 100644
    --- a/CPAN/Template/Directive.pm
    +++ b/CPAN/Template/Directive.pm
    @@ -34,7 +34,7 @@ use Template::Exception;
     
     our $VERSION   = 2.20;
     our $DEBUG     = 0 unless defined $DEBUG;
    -our $WHILE_MAX = 1000 unless defined $WHILE_MAX;
    +our $WHILE_MAX = 10000 unless defined $WHILE_MAX;
     our $PRETTY    = 0 unless defined $PRETTY;
     our $OUTPUT    = '$output .= ';
    Then restart LMS.
    Michael

    http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo

  2. #12
    Junior Member
    Join Date
    Oct 2014
    Posts
    24

    Search not working

    Gezuz Micheal - the things you have to deal with. 5127 GENRES?!?!?!?
    How the hell does that happen?

    LOL

    On 8/9/19, mherger <mherger.94j6un (AT) no-mx (DOT) forums.slimdevices.com> wrote:
    >
    > mruano wrote:
    >> Yes, I am afraid I do: I have 5,127 genres - I have not bothered to edit
    >> them, as I don't use genres very much - so they are the ones that came
    >> with the original recordings. Would that be the cause?

    >
    > Well, that certainly would kill it. I've only found one place which
    > would trigger the message you're seeing. And that's rendering the Genres
    > list in the Advanced Search. (doesn't mean there couldn't be any other
    > code breaking the same way, but that's what I've found)
    >
    > You could try patching the template toolkit. Increase the number of max
    > iterations in a WHILE loop from 1000 to 10000:
    >
    >
    > Code:
    > --------------------
    > diff --git a/CPAN/Template/Directive.pm b/CPAN/Template/Directive.pm
    > index 152023861f..2e5713ccb3 100644
    > --- a/CPAN/Template/Directive.pm
    > +++ b/CPAN/Template/Directive.pm
    > @@ -34,7 +34,7 @@ use Template::Exception;
    >
    > our $VERSION = 2.20;
    > our $DEBUG = 0 unless defined $DEBUG;
    > -our $WHILE_MAX = 1000 unless defined $WHILE_MAX;
    > +our $WHILE_MAX = 10000 unless defined $WHILE_MAX;
    > our $PRETTY = 0 unless defined $PRETTY;
    > our $OUTPUT = '$output .= ';
    >
    >
    > --------------------
    >
    >
    > Then restart LMS.
    >
    >
    >
    > Michael
    >
    > http://www.herger.net/slim-plugins - Spotty, MusicArtistInfo
    > ------------------------------------------------------------------------
    > mherger's Profile: http://forums.slimdevices.com/member.php?userid=50
    > View this thread: http://forums.slimdevices.com/showthread.php?t=110264
    >
    >

  3. #13
    Quote Originally Posted by mherger View Post
    Well, that certainly would kill it. I've only found one place which would trigger the message you're seeing. And that's rendering the Genres list in the Advanced Search. (doesn't mean there couldn't be any other code breaking the same way, but that's what I've found)

    You could try patching the template toolkit. Increase the number of max iterations in a WHILE loop from 1000 to 10000:

    Code:
    diff --git a/CPAN/Template/Directive.pm b/CPAN/Template/Directive.pm
    index 152023861f..2e5713ccb3 100644
    --- a/CPAN/Template/Directive.pm
    +++ b/CPAN/Template/Directive.pm
    @@ -34,7 +34,7 @@ use Template::Exception;
     
     our $VERSION   = 2.20;
     our $DEBUG     = 0 unless defined $DEBUG;
    -our $WHILE_MAX = 1000 unless defined $WHILE_MAX;
    +our $WHILE_MAX = 10000 unless defined $WHILE_MAX;
     our $PRETTY    = 0 unless defined $PRETTY;
     our $OUTPUT    = '$output .= ';
    Then restart LMS.
    Thanks, Michael. Where/how do I install the patch?

  4. #14
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315

    Search not working

    > CPAN/Template/Directive.pm

    You'd find this sub-folder to one of LMS' installation folders. Where
    exactly depends on your system. You'd probably find it using

    find /usr -name Directive.pm


    --

    Michael

  5. #15
    Quote Originally Posted by mherger View Post
    > CPAN/Template/Directive.pm

    You'd find this sub-folder to one of LMS' installation folders. Where
    exactly depends on your system. You'd probably find it using

    find /usr -name Directive.pm


    --

    Michael
    Thanks again, Michael. I located the file and edited it as per your instructions. Unfortunately, it did not fix the problem - I am still getting the error message
    [19-08-10 17:43:46.4622] Slim::Web::Template::SkinManager::_fillTemplate (337) Error: undef error - WHILE loop terminated (> 1000 iterations)

    Any other ideas?

  6. #16
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    3,151
    Quote Originally Posted by mruano View Post
    Thanks again, Michael. I located the file and edited it as per your instructions. Unfortunately, it did not fix the problem - I am still getting the error message
    [19-08-10 17:43:46.4622] Slim::Web::Template::SkinManager::_fillTemplate (337) Error: undef error - WHILE loop terminated (> 1000 iterations)

    Any other ideas?
    Have you checked the file to make sure it was changed?

    Sent from my SM-G900F using Tapatalk

  7. #17
    Quote Originally Posted by slartibartfast View Post
    Have you checked the file to make sure it was changed?

    Sent from my SM-G900F using Tapatalk
    Yes, I did - the number is indeed changed to 10000

  8. #18
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315

    Search not working

    > Yes, I did - the number is indeed changed to 10000

    And you did restart LMS?

    --

    Michael

  9. #19
    Quote Originally Posted by mherger View Post
    > Yes, I did - the number is indeed changed to 10000

    And you did restart LMS?

    --

    Michael
    I did indeed - I used
    Code:
    service logitechmediaserver restart
    in the CLI

  10. #20
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,315

    Search not working

    > Thanks again, Michael. I located the file and edited it as per your
    > instructions. Unfortunately, it did not fix the problem - I am still
    > getting the error message
    > [19-08-10 17:43:46.4622] Slim::Web::Template::SkinManager::_fillTemplate
    > (337) Error: undef error - WHILE loop terminated (> 1000 iterations)


    That message says the value was still 1000, not the 10000 you claim it
    is set to.

    --

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •