Home of the Squeezebox™ & Transporter® network music players.
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 51
  1. #31
    Senior Member Stig Nygaard's Avatar
    Join Date
    Feb 2006
    Location
    Copenhagen
    Posts
    255

    Not Spotify only - Opening list of stations in Radio is also slow with Default skin..

    Hi Michael


    The slow list response problem is not a Spotify specific problem.


    On my LMS 791 I did a test opening a list of local radiostations, which in my case points to 52 stations in the Copenhagen area.

    Home -> Radio -> Local/Copenhagen -> Stations

    Using Default skin and 50 items per page in Interface settings:
    32 seconds to open the station list

    Using Classic skin and 50 items per page in Interface settings:
    <1 second to open the station list


    Opening list of stations with Alternative Rock is a bit faster, but it's still the same pattern:

    Home -> Radio -> Music -> Alternative Rock -> Stations (26+)

    Using Default skin and 50 items per page in Interface settings:
    16 seconds to open the station list

    Using Classic skin and 50 items per page in Interface settings:
    <1 second to open the station list
    Last edited by Stig Nygaard; 2017-04-14 at 04:35.
    /Stig
    www.rockland.dk - www.last.fm/user/rockland - www.discogs.com/user/StigNygaard - plus.google.com/+StigNygaard
    Server: LMS 7.9.1 (LmsRepack) - 1503129892 @ Sat Aug 19 on Synology DS716+II. Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Livingroom HiFi: Marantz PM6005 and F3/Lyd Audiovector 2.

    Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

  2. #32
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,757

    Problems with LMS79x and Spotify onReadyNAS Ultra 2 [1/3]

    > On my LMS 791 I did a test *opening a list of local radiostations*,
    > which in my case points to 52 stations in the Copenhagen area.


    The issue I identified back in March was indeed not limited to Spotify
    or any other service. It was exposed by the artwork URL's format. Could
    you give me some example URL from those pages you mention? And is this
    running 7.9.1 from April on your ReadyNAS or something else?

    The big difference between the two skins obviously is using artwork or not.
    What would be your resizing setting in Settings/Advanced/Performance?

    --

    Michael
    Last edited by mherger; 2017-04-16 at 04:25.

  3. #33
    Senior Member Stig Nygaard's Avatar
    Join Date
    Feb 2006
    Location
    Copenhagen
    Posts
    255
    Quote Originally Posted by mherger View Post
    > On my LMS 791 I did a test *opening a list of local radiostations*,
    > which in my case points to 52 stations in the Copenhagen area.


    The issue I identified back in March was indeed not limited to Spotify
    or any other service. It was exposed by the artwork URL's format. Could
    you give me some example URL from those pages you mention? And is this
    running 7.9.1 from April on your ReadyNAS or something else?

    The big difference between the two skins obviously is using artwork or not.
    What would be your resizing setting in Settings/Advanced/Performance?
    Running April 8th LMS791 on my ReadyNAS. I have noticed finding artwork sometimes seems very slow compared to LMS781, but haven't thought about it until current LMS791 installation, so haven't done any direct comparisons between 781 and 791 in this area.

    Maybe it is easier to look at Home -> Radio -> Music -> Alternative Rock -> Stations (26+) which I mentioned in an updated version of the post you are quoting. I assume we see the same list there. And it's bit shorter, so you get the complete list of image urls:
    http://www.mysqueezebox.com/public/i...%2Fs90437q.png
    http://www.mysqueezebox.com/public/i...%2Fs29726q.png
    http://www.mysqueezebox.com/public/i...2Fs221580q.png
    http://www.mysqueezebox.com/public/i...2Fs111382q.png
    http://www.mysqueezebox.com/public/i...%2Fs31929q.png
    http://www.mysqueezebox.com/public/i...%2Fs20270q.png
    http://www.mysqueezebox.com/public/i...m%2Fs2707q.png
    http://www.mysqueezebox.com/public/i...2Fs162354q.png
    http://www.mysqueezebox.com/public/i...%2Fs24031q.png
    http://www.mysqueezebox.com/public/i...%2Fs30372q.png
    http://www.mysqueezebox.com/public/imageproxy?w=50&h=50&u=http%3A%2F%2Fcdn-radiotime-logos.tunein.com%2Fs223158q.png
    http://www.mysqueezebox.com/public/i...%2Fs48937q.png
    http://www.mysqueezebox.com/public/imageproxy?w=50&h=50&u=http%3A%2F%2Fcdn-radiotime-logos.tunein.com%2Fs22543q.png
    http://www.mysqueezebox.com/public/i...2Fs187420q.png
    http://www.mysqueezebox.com/public/i...%2Fs26555q.png
    http://www.mysqueezebox.com/public/i...%2Fs32312q.png
    http://www.mysqueezebox.com/public/i...2Fs140358q.png
    http://www.mysqueezebox.com/public/i...%2Fs95135q.png
    http://www.mysqueezebox.com/public/i...2Fs151799q.png
    http://www.mysqueezebox.com/public/i...%2Fs47734q.png
    http://www.mysqueezebox.com/public/i...%2Fs21226q.png
    http://www.mysqueezebox.com/public/i...m%2Fs3276q.png
    http://www.mysqueezebox.com/public/i...%2Fs28576q.png
    http://192.168.1.150:9000/music/0/cover_50x50_o


    Performance settings should be default for a clean install of LMS791:

    Database Memory Config
    High (ReadyNas Ultra has 1GB RAM)

    Trigger Scan on Preference Changes
    Prompt to scan, but don't trigger automacly

    Library Statistics
    Enabled

    Artwork Pre-caching
    Pre-cache album artwork

    Artwork resizing
    Use mysqueezebox.com to resize artwork

    Server Priority
    Current server priority

    Scanner Priority
    0 Normal

    Maximum Playlist Length
    500
    Last edited by Stig Nygaard; 2017-04-16 at 05:56.
    /Stig
    www.rockland.dk - www.last.fm/user/rockland - www.discogs.com/user/StigNygaard - plus.google.com/+StigNygaard
    Server: LMS 7.9.1 (LmsRepack) - 1503129892 @ Sat Aug 19 on Synology DS716+II. Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Livingroom HiFi: Marantz PM6005 and F3/Lyd Audiovector 2.

    Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

  4. #34
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,757

    Problems with LMS79x and Spotify onReadyNAS Ultra 2 [1/3]

    > Maybe it is easier to look at *Home -> Radio -> Music -> Alternative
    > Rock -> Stations (26+)* which I mentioned in an updated version of the
    > post you are quoting. I assume we see the same list there. And it's bit
    > shorter, so you get the complete list of image urls:
    > http://www.mysqueezebox.com/public/i...%2Fs90437q.png


    That looks ok. I just don't understand why you are having these
    issues... there clearly was a problem with certain URLs with a @ in the
    file name (image (AT) 2x (DOT) jpg). But that's not the case here.

    Loading those pages take a second or two only on my systems.

    What if you disabled image loading in the browser? Would it still take
    that long? Do the menus on smartphone app or Touch/Radio take
    excessively long, too?

    If you were able to edit a source file: what if you enabled the
    following line:

    diff --git a/Slim/Web/Template/SkinManager.pm
    b/Slim/Web/Template/SkinManager.pm
    index 2c241d5..a8b8849 100644
    --- a/Slim/Web/Template/SkinManager.pm
    +++ b/Slim/Web/Template/SkinManager.pm
    @@ -27,7 +27,7 @@
    # Use our custom Template::Context subclass
    $Template::Config::CONTEXT = 'Slim::Web::Template::Context';
    # Use Profiler instead if you want to investigate page rendering
    performance
    -# $Template::Config::CONTEXT = 'Slim::Web::Template::Profiler';
    + $Template::Config::CONTEXT = 'Slim::Web::Template::Profiler';
    $Template::Provider::MAX_DIRS = 128;
    }

    Basically remove the hashtag from that line. That would log some
    profiling information for every web page rendered. What would you get
    for such a station list?

    --

    Michael

  5. #35
    Senior Member Stig Nygaard's Avatar
    Join Date
    Feb 2006
    Location
    Copenhagen
    Posts
    255
    Quote Originally Posted by mherger View Post
    Loading those pages take a second or two only on my systems.

    What if you disabled image loading in the browser? Would it still take
    that long? Do the menus on smartphone app or Touch/Radio take
    excessively long, too?
    Disabling images in browser makes no difference. It is just a slow as with images.

    Opening the same station list directly from Touch devices' UI or in apps is instant (I would say less than 1 second).

    Quote Originally Posted by mherger View Post
    If you were able to edit a source file: what if you enabled the
    following line:

    ...

    Basically remove the hashtag from that line. That would log some
    profiling information for every web page rendered. What would you get
    for such a station list?
    I have removed the hashtag from the following line in SkinManager.pm:

    Code:
    #    $Template::Config::CONTEXT = 'Slim::Web::Template::Profiler';
    I have the log attached as a file: LMSProfilerLog.txt
    I don't get much wiser looking at that, but maybe you do?
    I tried to click the menu exactly at 13:37.
    As you can see from the log I have (re-)installed the MusicArtistInfo plugin, however it is not causing the problem. I've been running clean LMS installs (no extra plugins or fancy settings) with this performance problem for weeks now.


    It's been a long thread and you of course involved in a lot of other stuff and threads, so thought I would do a short summary of how I see the problems and findings done so far:


    • Problem started when upgrading to LMS79x. On the 781 nightlies performance was fine.
    • Problem is so far found to be isolated to the Default theme in LMS79x's webinterface and it is very dependent of value of "Items per page" in Interface settings (Currently I have this value at the default 50 - If I set to 200, the affected lists doesn't open at all).
    • Performance is fine when opening menus directly on my Touch devices and performance is also fine in various apps like Orange Squeeze on Android phone and tablet, or if using the Windows 10 Squeeze Control app.
    • While waiting for one of those slow lists to open on LMS79x, I cannot control/access LMS in another browser-tab, browser or app meanwhile. LMS is not responding.
    • I have made clean re-installs of both LMS781 and LMS79x several times to make sure everything has equal and clean setups. I have even reinstalled the firmware on my NAS.
    • It looks like the lists giving trouble, are lists where communication to MySB.com is required?
    • Something that might or might not be related to my problems, is how (apparently?) missing SSL support seems to be handled. I have noticed I get "Unable to load IO::Socket::SSL" warnings in the log when running LMS781. But I do NOT get these warnings in the log when running LMS79x (I remember you were a bit surprised I didn't get the same warnings on LMS79x). However on LMS791 I DO get an SSL error when trying to run the Bands Campout plugin.
    • Another error I have noticed in my many clean re-installs, is that LMS79x crashes when trying to set the "Media Library Name" in "Basic Settings" under my initial setup (When I'm prompted to rescan my library. Btw, I wonder why a rescan is necessary just because I set the name?). This does not happen when doing a clean install of 781. It is only a problem on clean installs of LMS79x (When upgrading from prior version, the name is already set. But trying to change the name after it has been set, doesn't seem to be a problem either). Though I think this is an error that would be nice to get fixed, I have currently no reason to believe it is directly related to my other problem.
    Last edited by Stig Nygaard; 2017-04-17 at 07:12.
    /Stig
    www.rockland.dk - www.last.fm/user/rockland - www.discogs.com/user/StigNygaard - plus.google.com/+StigNygaard
    Server: LMS 7.9.1 (LmsRepack) - 1503129892 @ Sat Aug 19 on Synology DS716+II. Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Livingroom HiFi: Marantz PM6005 and F3/Lyd Audiovector 2.

    Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

  6. #36
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,757
    Stig,

    I think your log leads back to where I found the previous issue: _resizeImage in SkinManager.pm (the file you edited last time). LMS seems to be spending a long time in there, for every image on the page. Disable the images (set the option bottom left to "Text only") and re-try. Would that improve the situation?

    Could you please edit that file again and apply the following few changes:

    Code:
    diff --git a/Slim/Web/Template/SkinManager.pm b/Slim/Web/Template/SkinManager.pm
    index 2c241d5..88e3d0f 100644
    --- a/Slim/Web/Template/SkinManager.pm
    +++ b/Slim/Web/Template/SkinManager.pm
    @@ -269,18 +269,23 @@
     		
     		my ($host) = Slim::Utils::Misc::crackURL($url);
     
    +my $t = Time::HiRes::time();
     		# don't use imageproxy on local network
     		if ( $host && (Slim::Utils::Network::ip_is_private($host) || $host =~ /localhost/i) ) {
    +warn "local: " . (Time::HiRes::time() - $t);
     			return $url;
     		}
     		
     		# fall back to using external image proxy for external resources
     		elsif ( !main::NOMYSB && $url =~ m{^https?://} ) {
    +warn "mysb: " . (Time::HiRes::time() - $t);
     			return Slim::Networking::SqueezeNetwork->url(
     				"/public/imageproxy?w=$width&h=$height&u=" . uri_escape($url)
     			);
     		}
     		
    +warn "imageproxy: " . (Time::HiRes::time() - $t);
    +		
     		# $url comes with resizing parameters
     		if ( $url =~ /_((?:[0-9X]+x[0-9X]+)(?:_\w)?(?:_[\da-fA-F]+)?(?:\.\w+)?)$/ ) {
     			return $url;
    It would hopefully tell us whether the issue is ip_is_private (again).
    Michael

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

  7. #37
    Senior Member Stig Nygaard's Avatar
    Join Date
    Feb 2006
    Location
    Copenhagen
    Posts
    255
    Quote Originally Posted by mherger View Post
    Stig,

    I think your log leads back to where I found the previous issue: _resizeImage in SkinManager.pm (the file you edited last time). LMS seems to be spending a long time in there, for every image on the page. Disable the images (set the option bottom left to "Text only") and re-try. Would that improve the situation?
    Ah, I probably misunderstood you before when you asked me to disable images in the browser. I disabled images in my browser's settings. Didn't see the little option-dropdown in the lower left of columns.
    And yes, disabling images directly in the UI by selecting "Text only" does indeed solve the performance problem.
    I also checked Spotify and my list of playlists. And ditto, much better performance with "Text only".

    Quote Originally Posted by mherger View Post
    Could you please edit that file again and apply the following few changes:
    I'll try. Not used to read those diffs. Especially not when perl and without colors... hmm, and not looking forward to fight that VI thing again :-)
    But I'll try. As far as I can see, you are only adding lines?
    I'll be back soon when done... (EDIT: It will probably be tomorrow)

    Quote Originally Posted by mherger View Post
    It would hopefully tell us whether the issue is ip_is_private (again).
    What does ip_is_private mean? After I some time ago changed from static IP to dynamic IP at my internet provider, my router gives me the warning:

    The WAN IP is not the external IP. External IP-based services will not work.

    And I apparently cannot use some functions of the router, such as it's built-in DDNS Client.
    My router says my WAN ip-number is something like for example 100.96.xxx.xxx, but in reality I'm something like for example 89.23.xxx.xxx when seen from "the outside".
    Is that releated you think?
    Last edited by Stig Nygaard; 2017-04-18 at 13:34.
    /Stig
    www.rockland.dk - www.last.fm/user/rockland - www.discogs.com/user/StigNygaard - plus.google.com/+StigNygaard
    Server: LMS 7.9.1 (LmsRepack) - 1503129892 @ Sat Aug 19 on Synology DS716+II. Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Livingroom HiFi: Marantz PM6005 and F3/Lyd Audiovector 2.

    Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

  8. #38
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,757

    Problems with LMS79x and Spotify onReadyNAS Ultra 2 [1/3]

    > Ah, I probably misunderstood you before when you asked me to disable
    > images in the browser. I disabled images in my browser's settings.
    > Didn't see the little option-dropdown in the lower left of columns.
    > And yes, disabling images directly in the UI by selecting "Text only"
    > does indeed solve the performance problem.


    That's ok. Both tests make sense.

    > But I'll try. As far as I can see, you are only adding lines?


    Yes, the first line is storing a timestamp, the others will tell us what
    exit path the call took, and how long it took to get there.

    > What does ip_is_private mean?


    It's a call we use to figure out whether a URL is internal to your
    network, or out in the wild. The issue I fixed a few weeks ago was that
    failed lookups would take really long on Windows. I wonder whether we're
    seeing something similar in your case.

    > And I apparently cannot use some functions of the router, such as it's
    > built-in DDNS Client.
    > My router says my WAN ip-number is something like 100.96.xxx.xxx, but in
    > reality I'm something like 89.23.xxx.xxx when seen from "the outside".


    I don't think this is related. Yet it's good to know. What kind of ISP
    are you using? Cable or DSL?

    --

    Michael

  9. #39
    Senior Member Stig Nygaard's Avatar
    Join Date
    Feb 2006
    Location
    Copenhagen
    Posts
    255
    Quote Originally Posted by mherger View Post
    I don't think this is related. Yet it's good to know. What kind of ISP
    are you using? Cable or DSL?
    I suddenly got tired last night, so editing SkinManager.pm again must be tonight.

    Regarding my internet connection, it is not DSL. I would describe it something like Fiber via the housing association's network in our apartment building. But don't really know the terms you would use in English.
    Last edited by Stig Nygaard; 2017-04-18 at 22:45.
    /Stig
    www.rockland.dk - www.last.fm/user/rockland - www.discogs.com/user/StigNygaard - plus.google.com/+StigNygaard
    Server: LMS 7.9.1 (LmsRepack) - 1503129892 @ Sat Aug 19 on Synology DS716+II. Clients: RPi3 (Max2Play, 7" touch, HiFiBerry Digi+ Pro), SB Touch, OrangeSqueeze/SqueezePlayer. Livingroom HiFi: Marantz PM6005 and F3/Lyd Audiovector 2.

    Try my Art Grabr for fetching big cover-art from various sites - And Album Linkr for a better last.fm desktop browser experience...

  10. #40
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,757

    Problems with LMS79x and Spotify onReadyNAS Ultra 2 [1/3]

    > Regarding my internet connection, it is not DSL. I would describe it
    > something like Fiber via our Housing Association's network. But don't
    > really know the terms you would use in English.


    Just to make sure your issue isn't related to your internet connection:
    could you install LMS on your desktop and see whether it's showing the
    same delays?

    --

    Michael

Tags for this Thread

Posting Permissions

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