Announcement

Collapse
No announcement yet.

[Announce] Squeezelite-X

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I'm stuck with the black screen again. Pressing F5 doesn't help (and doesn't seem to do anything).
    QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
    LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

    Comment


      Originally posted by dolodobendan View Post
      I'm stuck with the black screen again. Pressing F5 doesn't help (and doesn't seem to do anything).
      OK, well, thanks for letting me know. I wish I could reproduce this. I'll have to do some analysis and see if I can figure out what might be causing this.

      R Greg Dawson
      Squeezelite-X

      Comment


        Version 2.4.6

        I've submitted 2.4.6 to MS Store.

        Based on new work in Material Skin development by Craig, I have removed the experimental Material Skin filter as it will not be needed. Otherwise, no new features.

        R Greg Dawson
        Squeezelite-X

        Comment


          Originally posted by rgdawson View Post
          OK, well, thanks for letting me know. I wish I could reproduce this. I'll have to do some analysis and see if I can figure out what might be causing this.
          Would it help if I enabled logging?
          QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
          LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

          Comment


            Originally posted by dolodobendan View Post
            Would it help if I enabled logging?
            You could enable logging, or when it happens press F12 and view the log that way. The fact that pressing F5 does nothing is a clue. SLX will momentarily hide the browser window while loading/rendering and to show the dial. In this state, it will not accept the F5 key input. So that is a clue that the trigger to make the window visible again (e.g. a LoadEnd event) is not happening in certain cases. So I'll look at the code and see if I can figure it out, or modify the code so that if the LoadEnd event does not happen the Window is made visible anyway, just in case.

            R Greg Dawson
            Squeezelite-X

            Comment


              Originally posted by rgdawson View Post
              You could enable logging, or when it happens press F12 and view the log that way. The fact that pressing F5 does nothing is a clue. SLX will momentarily hide the browser window while loading/rendering and to show the dial. In this state, it will not accept the F5 key input. So that is a clue that the trigger to make the window visible again (e.g. a LoadEnd event) is not happening in certain cases. So I'll look at the code and see if I can figure it out, or modify the code so that if the LoadEnd event does not happen the Window is made visible anyway, just in case.

              R Greg Dawson
              I just woke up the computer from hibernation and there's that black screen again:

              Code:
               15:30:47.398   VK_MEDIA_PLAY_PAUSE, PlayerID=aa:bb:cc:dd:ee:ff
               15:30:47.399   SND (Telnet): aa:bb:cc:dd:ee:ff pause
               15:48:24.842   MainViewForm.Show (Begin)
               15:48:35.392   Read Settings From Registry
               15:48:35.398   SyncMemo called.
               15:56:52.244   ----------------------------------------------------------------------
               15:56:52.245   WMPowerBroadcast: PBT_APMSUSPEND
               15:56:52.246   ----------------------------------------------------------------------
               15:56:52.289   squeezelite-win.exe terminated cleanly (SLX, aa:bb:cc:dd:ee:ff)
               15:56:52.290   Telnet Disconnected
               15:56:52.291   
               15:56:52.292   ... (Suspended)
               15:56:52.292   
               17:00:32.430   ----------------------------------------------------------------------
               17:00:32.721   WMPowerBroadcast: PBT_APMRESUMESUSPEND
               17:00:32.722   ----------------------------------------------------------------------
               17:00:32.722   ----------------------------------------------------------------------
               17:00:32.723   WMPowerBroadcast: PBT_APMRESUMEAUTOMATIC
               17:00:32.735   ----------------------------------------------------------------------
               17:00:36.275   Waiting for devices... (Network Adapter)
               17:00:37.362   Waiting for devices... (Network Adapter)
               17:00:39.292   Devices Found...
               17:00:39.293   ConnectTimer.Interval = 5000
               17:00:39.293   ConnectTimer.Enabled := True
               17:00:44.287   Connected, but Squeezelite not running.  Starting Squeezelite.
               17:00:44.287   StartSqueezelite called.
               17:00:44.300   Starting Squeezelite-win.exe -n "SLX" -s server -m aa:bb:cc:dd:ee:ff
               17:00:52.523   Squeezelite-win.exe startup not yet confirmed, proceed without further waiting [8207 ms]
               17:00:52.523   Squeezelite-win.exe (SLX): Running
              Just spitballing here: I have SLX pinned to the taskbar and it was open and minimized. Could that be a problem (preview rendering)?
              QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
              LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

              Comment


                Here I woke the computer up with SLX' window not minimized to taskbar (no open SLX window at all):

                Code:
                 17:17:24.902   squeezelite-win.exe terminated cleanly (SLX, aa:bb:cc:dd:ee:ff)
                 17:17:24.904   Telnet Disconnected
                 17:17:24.904   
                 17:17:24.905   ... (Suspended)
                 17:17:24.905   
                 18:57:55.669   ----------------------------------------------------------------------
                 18:57:55.686   WMPowerBroadcast: PBT_APMRESUMESUSPEND
                 18:57:56.158   ----------------------------------------------------------------------
                 18:57:56.168   ----------------------------------------------------------------------
                 18:57:56.170   WMPowerBroadcast: PBT_APMRESUMEAUTOMATIC
                 18:57:56.171   ----------------------------------------------------------------------
                 18:57:59.213   Waiting for devices... (Network Adapter)
                 18:58:00.230   Waiting for devices... (Network Adapter)
                 18:58:02.258   Devices Found...
                 18:58:02.259   ConnectTimer.Interval = 5000
                 18:58:02.260   ConnectTimer.Enabled := True
                 18:58:07.247   Not connected, attempting to re-connect.
                 18:58:07.247   ConnectAll;
                 18:58:07.247   ConnectAll Called
                 18:58:07.250   CheckHost(http://server:9001) and CheckMaterialSkin
                 18:58:07.443   CheckHost Result = HTTP_HOST_OK [192 ms]
                 18:58:07.443   Lms.ConnectTelnet called (Host=server:9090)
                 18:58:07.577   Remember last connected known host: Ip=192.168.178.1, Mac=
                 18:58:07.578   SND (Telnet): subscribe power,client,name,playlist,mixer
                 18:58:07.580   StartSqueezelite called.
                 18:58:07.593   Starting Squeezelite-win.exe -n "SLX" -s server -m aa:bb:cc:dd:ee:ff
                *18:58:07.593   Telnet Connected
                 18:58:07.593   RCV (Telnet): subscribe power,client,name,playlist,mixer
                 18:58:09.565   RCV (Telnet): aa:bb:cc:dd:ee:ff client new
                 18:58:09.565   Squeezelite-win.exe (SLX): Startup Confirmed. (ID = aa:bb:cc:dd:ee:ff)
                 18:58:09.566   Load Url (http://server:9001/material)
                 18:58:09.592   Squeezelite-win.exe startup confirmed by LMS [721 ms]
                 18:58:09.594   ConnectAll Complete.
                 18:58:09.594   Load Url (http://server:9001/material)
                 18:58:14.305   MainViewForm.Show (Begin)
                 18:58:16.133   TMainViewForm.FormCloseQuery?
                 18:58:30.344   MainViewForm.Show (Begin)
                The black screen did not occur. Could be just random, though. (Edit: Yup, random.)
                Last edited by dolodobendan; 2019-08-22, 19:09.
                QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
                LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

                Comment


                  Originally posted by dolodobendan View Post
                  I just woke up the computer from hibernation and there's that black screen again:

                  Code:
                   15:30:47.398   VK_MEDIA_PLAY_PAUSE, PlayerID=aa:bb:cc:dd:ee:ff
                   15:30:47.399   SND (Telnet): aa:bb:cc:dd:ee:ff pause
                   15:48:24.842   MainViewForm.Show (Begin)
                   15:48:35.392   Read Settings From Registry
                   15:48:35.398   SyncMemo called.
                   15:56:52.244   ----------------------------------------------------------------------
                   15:56:52.245   WMPowerBroadcast: PBT_APMSUSPEND
                   15:56:52.246   ----------------------------------------------------------------------
                   15:56:52.289   squeezelite-win.exe terminated cleanly (SLX, aa:bb:cc:dd:ee:ff)
                   15:56:52.290   Telnet Disconnected
                   15:56:52.291   
                   15:56:52.292   ... (Suspended)
                   15:56:52.292   
                   17:00:32.430   ----------------------------------------------------------------------
                   17:00:32.721   WMPowerBroadcast: PBT_APMRESUMESUSPEND
                   17:00:32.722   ----------------------------------------------------------------------
                   17:00:32.722   ----------------------------------------------------------------------
                   17:00:32.723   WMPowerBroadcast: PBT_APMRESUMEAUTOMATIC
                   17:00:32.735   ----------------------------------------------------------------------
                   17:00:36.275   Waiting for devices... (Network Adapter)
                   17:00:37.362   Waiting for devices... (Network Adapter)
                   17:00:39.292   Devices Found...
                   17:00:39.293   ConnectTimer.Interval = 5000
                   17:00:39.293   ConnectTimer.Enabled := True
                   17:00:44.287   Connected, but Squeezelite not running.  Starting Squeezelite.
                   17:00:44.287   StartSqueezelite called.
                   17:00:44.300   Starting Squeezelite-win.exe -n "SLX" -s server -m aa:bb:cc:dd:ee:ff
                   17:00:52.523   Squeezelite-win.exe startup not yet confirmed, proceed without further waiting [8207 ms]
                   17:00:52.523   Squeezelite-win.exe (SLX): Running
                  Just spitballing here: I have SLX pinned to the taskbar and it was open and minimized. Could that be a problem (preview rendering)?
                  There are some clues here. When the computer went to sleep, SLX terminated squeezelite, and disconnected its Telnet interface (which was confirmed by a signal from the Telnet object), as it should. However, when it woke up, after waiting for all the devices to also wake up, SLX then goes through its normal "Check to see if I am connected, and if not then connect". Somehow, that check returned, "I'm connected", that it's telnet interface was connected, but that should not be possible since it was disconnected prior to sleep. But since SLX thought it was connected, it did not go through the reconnect sequence. It only restarted squeezelite. That is what cause the screen to not appear. The issue in this case is SLX thinking its telnet interface is connected, but that not being true.

                  You also occasionally see this on just plan startup, right? I also noticed your http port is 9001. Is your LMS and SLX configured for port 9090 for the Telnet interface or is it another port number?

                  R Greg Dawson
                  Last edited by rgdawson; 2019-08-22, 22:30.
                  Squeezelite-X

                  Comment


                    Originally posted by rgdawson View Post
                    There are some clues here. When the computer went to sleep, SLX terminated squeezelite, and disconnected its Telnet interface (which was confirmed by a signal from the Telnet object), as it should. However, when it woke up, after waiting for all the devices to also wake up, SLX then goes through its normal "Check to see if I am connected, and if not then connect". Somehow, that check returned, "I'm connected", that it's telnet interface was connected, but that should not be possible since it was disconnected prior to sleep. But since SLX thought it was connected, it did not go through the reconnect sequence. It only restarted squeezelite. That is what cause the screen to not appear. The issue in this case is SLX thinking its telnet interface is connected, but that not being true.
                    Quite human.

                    Originally posted by rgdawson View Post
                    You also occasionally see this on just plan startup, right?
                    I really cannot say. Could be.

                    Originally posted by rgdawson View Post
                    I also noticed your http port is 9002. Is your LMS and SLX configured for port 9090 for the Telnet interface or is it another port number?
                    SLX is configured for ports 9001 (http) and 9090 (CLI).
                    QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
                    LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

                    Comment


                      I might have a handle on this. Your logs gave me a clue. And the question I needed to answer was, "How can Telnet.Connected? possible return True AFTER Telnet has been disconnected. In digging through the Telnet socket code library I use, I learned that calling Telnet.Connected? will return true even if Telnet has has been disconnected, if its data buffer is not empty. SLX reads the data out of that buffer immediately any time data is available, and so it should be empty (and certainly almost always is)...BUT, I suppose, timing could be such that it is not. I think clearing the Telnet input buffer before disconnecting should prevent Telnet.Connect? from returning true when it shouldn't.

                      I just cancelled the v2.4.6 I submitted to the store so I can resubmit with this fix according to this theory.

                      Thanks for your dogged persistence, help, and patience!

                      R Greg Dawson
                      Last edited by rgdawson; 2019-08-23, 00:27. Reason: spelling
                      Squeezelite-X

                      Comment


                        Hi All,

                        I am trying to have Squeezelite-X working on Windows 10 but after installing from the Microsoft Store all I get after a few seconds startup animation is a black window.

                        Here is a capture of the settings window https://imgur.com/VR3VBdE

                        Here is the log https://pastebin.com/H0XwiHmh

                        In the log I noticed the following messages:

                        Code:
                         08:24:45.463   Registry-->LocalStorage 08:24:46.501   Error executing JavaScript: Did not return a result.
                                        |  var Result = localStorage.getItem('lms-material::player');
                                        |  if (Result==null) {
                                        |    Result = "";
                                        |  }
                                        |  SlxExtension.ReturnResult(Result, "JsResult");
                        
                        
                         08:24:46.501   Setting BrowserPlayerId = d4:3d:7e:a0:1c:80 
                         08:24:47.528   Error executing JavaScript: Did not return a result.
                                        |  var Result = "d4:3d:7e:a0:1c:80";
                                        |  localStorage.setItem('lms-material::player', Result);
                                        |  SlxExtension.ReturnResult(Result, "JsResult");
                        but have little idea of what is happening: anyone can help?

                        Thanx in advance, Paolo.

                        Comment


                          Originally posted by psychokiller View Post
                          Hi All,

                          I am trying to have Squeezelite-X working on Windows 10 but after installing from the Microsoft Store all I get after a few seconds startup animation is a black window.

                          Here is a capture of the settings window https://imgur.com/VR3VBdE

                          Here is the log https://pastebin.com/H0XwiHmh

                          In the log I noticed the following messages:

                          Code:
                           08:24:45.463   Registry-->LocalStorage 08:24:46.501   Error executing JavaScript: Did not return a result.
                                          |  var Result = localStorage.getItem('lms-material::player');
                                          |  if (Result==null) {
                                          |    Result = "";
                                          |  }
                                          |  SlxExtension.ReturnResult(Result, "JsResult");
                          
                          
                           08:24:46.501   Setting BrowserPlayerId = d4:3d:7e:a0:1c:80 
                           08:24:47.528   Error executing JavaScript: Did not return a result.
                                          |  var Result = "d4:3d:7e:a0:1c:80";
                                          |  localStorage.setItem('lms-material::player', Result);
                                          |  SlxExtension.ReturnResult(Result, "JsResult");
                          but have little idea of what is happening: anyone can help?

                          Thanx in advance, Paolo.
                          Can you show entire log? [Edit: Oops, I see it is attached. I'll tak a look.}

                          R Greg Dawson
                          Last edited by rgdawson; 2019-08-23, 14:03.
                          Squeezelite-X

                          Comment


                            Originally posted by psychokiller View Post
                            Hi All,

                            I am trying to have Squeezelite-X working on Windows 10 but after installing from the Microsoft Store all I get after a few seconds startup animation is a black window.

                            Here is a capture of the settings window https://imgur.com/VR3VBdE

                            Here is the log https://pastebin.com/H0XwiHmh

                            In the log I noticed the following messages:

                            Code:
                             08:24:45.463   Registry-->LocalStorage 08:24:46.501   Error executing JavaScript: Did not return a result.
                                            |  var Result = localStorage.getItem('lms-material::player');
                                            |  if (Result==null) {
                                            |    Result = "";
                                            |  }
                                            |  SlxExtension.ReturnResult(Result, "JsResult");
                            
                            
                             08:24:46.501   Setting BrowserPlayerId = d4:3d:7e:a0:1c:80 
                             08:24:47.528   Error executing JavaScript: Did not return a result.
                                            |  var Result = "d4:3d:7e:a0:1c:80";
                                            |  localStorage.setItem('lms-material::player', Result);
                                            |  SlxExtension.ReturnResult(Result, "JsResult");
                            but have little idea of what is happening: anyone can help?

                            Thanx in advance, Paolo.
                            I don't know. What happens if you use the Ip address of the server (10.0.3.208) instead of jukebox.localhost?

                            R Greg Dawson
                            Squeezelite-X

                            Comment


                              Originally posted by rgdawson View Post
                              Thanks for your dogged persistence, help, and patience!
                              Thanks for giving me credit for persistently bugging you.
                              QLMS [email protected] x64 (digimaster) / QNAP 469L (QTS 4.3.4)
                              LMS 8.4 x64 / Intel NUC8 i3 (Ubuntu 22.04.1 LTS)

                              Comment


                                Originally posted by rgdawson View Post
                                I don't know. What happens if you use the Ip address of the server (10.0.3.208) instead of jukebox.localhost?

                                R Greg Dawson
                                I guessed the origin of the problem: if I enter the ip address in the hostname field everything works fine and I get a working window with LMS Material skin. If I enter the hostname with no domain (hence no "." in it, just "jukebox" and not "jukebox.localhost") it works fine.

                                It hangs with a black windows only if I enter a fully qualified hostname, that indeed contains a dot character, like "jukebox.localhost".

                                For me it now works, but maybe you wish to investigate further whether any parsing code assumes that the presence of a dot implies having an ip address in the hostname field and hence no DNS lookup is needed, and then code takes a wrong path.

                                Thanx for your support, Paolo.

                                Comment

                                Working...
                                X