Announcement

Collapse
No announcement yet.

[Announce] Squeezelite-X

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Originally posted by schmurtz
    Thanks Greg for this new version.

    I observe 2 problems :
    • If you stop your LMS server, then start SLX, then start the server -> it will never connect automatically.
    • More anoying : I've got intempestive popups (I've got this popup every 8 seconds) if the server is lost during playing :
    Is your server running on Windows or something else? I just discovered that Windows and Linux are giving me different socket error messages when the server there but LMS is not running. Also, is the entire server not running or just LMS?

    R Greg Dawson
    Squeezelite-X

    Comment


    • Still hangs

      Well, it's still hanging for me. I guess I'm done with this app. It's a really nice app when it works for me. I'll stick with logging in with my browser.

      Comment


      • Originally posted by CakeOrDeath
        Well, it's still hanging for me. I guess I'm done with this app. It's a really nice app when it works for me. I'll stick with logging in with my browser.
        I guess you are. Seriously, though, as this is a community supported ecosystem and everyone that supports it is putting their own time into it on a voluntary basis and for free, I think a better attitude would be to help characterize and identify the problem so that it can be solved. Occasionally there are issues that I cannot test for and I cannot reproduce as I do not have the hardware and so on. So we rely on the community to help. Helping solve the problem is a way you can contribute to the effort, if you are so inclined. If not, that's fine too.

        R Greg Dawson
        Squeezelite-X

        Comment


        • Originally posted by rgdawson
          I guess you are. Seriously, though, as this is a community supported ecosystem and everyone that supports it is putting their own time into it on a voluntary basis and for free, I think a better attitude would be to help characterize and identify the problem so that it can be solved. Occasionally there are issues that I cannot test for and I cannot reproduce as I do not have the hardware and so on. So we rely on the community to help. Helping solve the problem is a way you can contribute to the effort, if you are so inclined. If not, that's fine too.

          R Greg Dawson
          I'm not trying to be a jerk. I have tried to help identify the problem and have contributed - back on page 157.

          Comment


          • Originally posted by CakeOrDeath
            I'm not trying to be a jerk. I have tried to help identify the problem and have contributed - back on page 157.
            I know, me neither (but I was, so I apologize). Here is what would be helpful. When you get SLX to run, go into settings. Press Ctrl-Shift-D. This will enable the Debug settings. Enable Log File and set debug level to debug. This will create a debug file on your desktop when SLX is restarted. Then, when it does fail to start, lets look at the debug file and I will be able to see where and maybe why it hangs. That would be very helpful, if you could, thanks. I am suspecting something in either audio device enumeration or network interface enumeration. I know there are certain audio devices (like a certain capture card) that can cause the port audio library to hang. (The port Audio library is an open source portable audio library (used by squeezelite)), so I didn't write it, but I use it. Or it could be network related, for example a computer that has both wired and wifi network cards, and maybe some others, or virtual network cards that are messing things up. Sometimes it is hard to tell which network card is being used. Or if you switch from wired to wifi (switching cards), then this could cause an issue. I have code to handle stuff like this, but I may not be handling something right in your circumstance. Anyway, I'm eager to work with you on this, thanks.

            R Greg Dawson
            Squeezelite-X

            Comment


            • Originally posted by rgdawson
              Is your server running on Windows or something else? I just discovered that Windows and Linux are giving me different socket error messages when the server there but LMS is not running. Also, is the entire server not running or just LMS?

              R Greg Dawson
              My server is running on Ubuntu (it is a VM but I don't think that it differs from a physical machine). Like you I didn't know for the different socket errors...stange
              For this popup error I try with 2 ways : I shutdown the server and after I just stop the lms service with the same result. It is really necessary to be currently in playing mode and then shutdown the server to get this error. Don't hesitate if I can help you to test or to give some logs.

              And don't be disappointed by the comments of some users, sometimes it is just assholes, sometime it is just a misunderstood due to hand writing.
              Your software is awesome, it is really nice to have a good gui for the old squeezebox, it change from the old black screen of squeezelite and it saves hours of setup time ! Again, thank you !

              Comment


              • Originally posted by CakeOrDeath
                Well, it's still hanging for me. I guess I'm done with this app. It's a really nice app when it works for me. I'll stick with logging in with my browser.
                May be You could disable all the useless sound cards in Windows device manager, just let one, reboot and try again. Like this you will be able to know if a particular card trigger the problem.

                Comment


                • Originally posted by schmurtz
                  My server is running on Ubuntu (it is a VM but I don't think that it differs from a physical machine). Like you I didn't know for the different socket errors...stange
                  For this popup error I try with 2 ways : I shutdown the server and after I just stop the lms service with the same result. It is really necessary to be currently in playing mode and then shutdown the server to get this error. Don't hesitate if I can help you to test or to give some logs.

                  And don't be disappointed by the comments of some users, sometimes it is just assholes, sometime it is just a misunderstood due to hand writing.
                  Your software is awesome, it is really nice to have a good gui for the old squeezebox, it change from the old black screen of squeezelite and it saves hours of setup time ! Again, thank you !
                  While I was looking at it, I noticed my Windows server gave a different reason and my code would stop retrying thinking it is the type of error it might as well stop on. But yours is actually continuing to try, which is why you are seeing the popup every 8 seconds. The only code that could cause those errors (I think) is a line of code where I tell the socket to "keep alive", but that happens immediately after I test that the connection is OK. But apparently there is something wrong with the socket. Yesterday, I made some changes to at least prevent those popups and I fixed that other issue. I uploaded that to the store yesterday, so you should get it in a day or two. I have been unable to reproduce it, so I'm not sure what is going on. Does what you are playing matter (e.g. streamed vs local file vs Podcast, etc)? Also, yes, lets look at the log (Ctrl-Shift-D in settings to enable).

                  R Greg Dawson
                  Squeezelite-X

                  Comment


                  • Originally posted by rgdawson
                    While I was looking at it, I noticed my Windows server gave a different reason and my code would stop retrying thinking it is the type of error it might as well stop on. But yours is actually continuing to try, which is why you are seeing the popup every 8 seconds. The only code that could cause those errors (I think) is a line of code where I tell the socket to "keep alive", but that happens immediately after I test that the connection is OK. But apparently there is something wrong with the socket. Yesterday, I made some changes to at least prevent those popups and I fixed that other issue. I uploaded that to the store yesterday, so you should get it in a day or two. I have been unable to reproduce it, so I'm not sure what is going on. Does what you are playing matter (e.g. streamed vs local file vs Podcast, etc)? Also, yes, lets look at the log (Ctrl-Shift-D in settings to enable).

                    R Greg Dawson
                    I use the non-store installer so I can give you the result of the 2.6.33.0 now

                    No more popups ! Also it reconnects !
                    But the yellow warning icon at the top left doesn't refresh correctly. It stays after reconnecting. The red warning at the top right is working correctly.
                    To reproduce the problem :
                    • play something on slx
                    • stop the lms server
                    • wait the disconnection on slx
                    • then start the server again -> after few seconds the red spot at the top right disappears but not the yellow warning at the top left.
                    • Funny thing : if you try again you won't have the same behavior : you have to close slx and restart it to reproduce the bug.



                    For the other issue, if you start slx before the lms server, the UI stay on the "squeezelite-x settings" page with "connection refused" at the bottom : it doesn't try to reconnect continuously.

                    I hope this helps
                    Last edited by schmurtz; 2020-08-13, 20:45.

                    Comment


                    • Originally posted by rgdawson
                      I know, me neither (but I was, so I apologize). Here is what would be helpful. When you get SLX to run, go into settings. Press Ctrl-Shift-D. This will enable the Debug settings. Enable Log File and set debug level to debug. This will create a debug file on your desktop when SLX is restarted. Then, when it does fail to start, lets look at the debug file and I will be able to see where and maybe why it hangs. That would be very helpful, if you could, thanks. I am suspecting something in either audio device enumeration or network interface enumeration. I know there are certain audio devices (like a certain capture card) that can cause the port audio library to hang. (The port Audio library is an open source portable audio library (used by squeezelite)), so I didn't write it, but I use it. Or it could be network related, for example a computer that has both wired and wifi network cards, and maybe some others, or virtual network cards that are messing things up. Sometimes it is hard to tell which network card is being used. Or if you switch from wired to wifi (switching cards), then this could cause an issue. I have code to handle stuff like this, but I may not be handling something right in your circumstance. Anyway, I'm eager to work with you on this, thanks.

                      R Greg Dawson
                      All good :-)

                      Roger that! I'll keep you posted.

                      Comment


                      • Originally posted by rgdawson
                        I know, me neither (but I was, so I apologize). Here is what would be helpful. When you get SLX to run, go into settings. Press Ctrl-Shift-D. This will enable the Debug settings. Enable Log File and set debug level to debug. This will create a debug file on your desktop when SLX is restarted. Then, when it does fail to start, lets look at the debug file and I will be able to see where and maybe why it hangs. That would be very helpful, if you could, thanks. I am suspecting something in either audio device enumeration or network interface enumeration. I know there are certain audio devices (like a certain capture card) that can cause the port audio library to hang. (The port Audio library is an open source portable audio library (used by squeezelite)), so I didn't write it, but I use it. Or it could be network related, for example a computer that has both wired and wifi network cards, and maybe some others, or virtual network cards that are messing things up. Sometimes it is hard to tell which network card is being used. Or if you switch from wired to wifi (switching cards), then this could cause an issue. I have code to handle stuff like this, but I may not be handling something right in your circumstance. Anyway, I'm eager to work with you on this, thanks.

                        R Greg Dawson
                        SLX came up. I Enabled Log File and set debug level to debug. SLX prompted to restart, which I did. App closed but didn't restart. I started app and it hung. It created a log file:

                        ================================================== ===

                        INFO 16:01:44.464 ----------------------------------------------------------------------------------------------------
                        Program Start (8/13/2020)
                        ----------------------------------------------------------------------------------------------------
                        INFO 16:01:44.466 Squeezelite-X (Legacy Build) (x64), Version: 2.6.32.0
                        Windows Version: Windows 10 (Version 10.0, Build 18363, 64-bit Edition)
                        CEF Version: 84.3.10.0 (Chrome: 84.0.4147.105)
                        CEF Cache Location: C:\Users\labballe\AppData\Local\SqueezeliteX\cache
                        CEF Cache Size: 7,961,125 bytes
                        INFO 16:01:44.466 ----------------------------------------------------------------------------------------------------
                        Main Form Create
                        ----------------------------------------------------------------------------------------------------
                        INFO 16:01:44.517 Creating Main Browser
                        INFO 16:01:44.530 Log Window Created
                        INFO *16:01:44.553 Chromium Browser Created
                        INFO 16:01:44.602 ----------------------------------------------------------------------------------------------------
                        Start InitProgram
                        ----------------------------------------------------------------------------------------------------
                        INFO 16:01:44.672 Server Discovery: [Deadwing] [69 ms]
                        INFO 16:01:44.672 Read Settings From Registry
                        INFO 16:01:44.676 Setting Lms.Host (HostName=Deadwing, Host=192.168.1.150)
                        INFO 16:01:44.677 ----------------------------------------------------------------------------------------------------
                        ConnectAll
                        ----------------------------------------------------------------------------------------------------
                        DBUG *16:01:44.677 PaInfoGetOutputDeviceList - Start
                        INFO 16:01:44.680 Lms.ConnectTelnet called (Host=192.168.1.150:9090)
                        DBUG 16:01:44.680 DisconnectTelnet Called
                        INFO 16:01:44.681 Telnet.Status: Connecting to 192.168.1.150.
                        INFO 16:01:44.681 Telnet.Status: Connected.
                        DBUG 16:01:44.682 TelNet.Connect succeeded [1 ms]
                        INFO 16:01:44.688 SND (CLI): login moonloop ******
                        DBUG 16:01:44.688 ...Wait for login response
                        INFO 16:01:44.689 RCV (CLI): login moonloop ******
                        INFO 16:01:44.700 Authentication Succeeded. [12 ms]
                        INFO 16:01:44.701 SND (CLI): subscribe power,client,name,playlist,mixer
                        INFO 16:01:44.702 RCV (CLI): subscribe power,client,name,playlist,mixer
                        INFO 16:08:15.595 RCV (CLI): 00:04:20:2d:a3:2c client disconnect
                        INFO 16:08:37.726 RCV (CLI): 00:04:20:2d:a3:2c client reconnect

                        ================================================== ===
                        Attached Files

                        Comment


                        • Originally posted by schmurtz
                          I use the non-store installer so I can give you the result of the 2.6.33.0 now

                          No more popups ! Also it reconnects !
                          But the yellow warning icon at the top left doesn't refresh correctly. It stays after reconnecting. The red warning at the top right is working correctly.
                          To reproduce the problem :
                          • play something on slx
                          • stop the lms server
                          • wait the disconnection on slx
                          • then start the server again -> after few seconds the red spot at the top right disappears but not the yellow warning at the top left.
                          • Funny thing : if you try again you won't have the same behavior : you have to close slx and restart it to reproduce the bug.



                          For the other issue, if you start slx before the lms server, the UI stay on the "squeezelite-x settings" page with "connection refused" at the bottom : it doesn't try to reconnect continuously.

                          I hope this helps
                          I wish I could reproduce that. It works fine here. If you are seeing that warning icon, then I'm not sure that the CLI interface actually reconnected, so you may be seeing the web interface (http), but the CLI interface may not be connected or something is wrong with it. Try this: After is reconnects with the warning icon showing, over over the taskbar icon and see if the taskbar icon buttons work (like pause/play or volume up/dn). Anything else on your server that might be responding to port 9090? Might try going into LMS settings and changing CLI port to something else like 9091.

                          R Greg Dawson
                          Squeezelite-X

                          Comment


                          • Originally posted by rgdawson
                            I wish I could reproduce that. It works fine here. If you are seeing that warning icon, then I'm not sure that the CLI interface actually reconnected, so you may be seeing the web interface (http), but the CLI interface may not be connected or something is wrong with it. Try this: After is reconnects with the warning icon showing, over over the taskbar icon and see if the taskbar icon buttons work (like pause/play or volume up/dn). Anything else on your server that might be responding to port 9090? Might try going into LMS settings and changing CLI port to something else like 9091.

                            R Greg Dawson
                            You're right the CLI is not reconnected. I admit that I cannot reproduce it systematically but there's something strange in this telnet reconnection.... I've check that nothing was on my 9090 port and I've also changed my port CLI to 9096 to be sure. And after that I've got the same behavior : when I stop the lms service, if the UI doesn't show the circle "loading" logo (white spinner at the center of the black screen) I know that it will not reconnect correctly. I have to disconnect the server often more than one time to get this result. After this problem I see that in the logs :
                            Code:
                            INFO   00:16:31.310  SND (CLI): 94:c6:91:a4:7b:0a mixer volume +5
                            ERROR  00:16:31.310  Exception (EIdConnClosedGracefully): Connection Closed Gracefully.
                            May be I should reinstall the Windows server to compare

                            ---------------------------------------------------
                            For the other issue (start slx without server running), you're able to reproduce it ? (the UI stay on the "squeezelite-x settings" page with "connection refused" at the bottom : it doesn't try to reconnect continuously, may be it should show the spinner indefinitely instead..). .. I've got this logs in this case :

                            Code:
                            INFO   00:22:15.650  ----------------------------------------------------------------------------------------------------
                                                 Program Start (14/08/2020)
                                                 ----------------------------------------------------------------------------------------------------
                            INFO   00:22:15.652  Squeezelite-X (Legacy Build) (x64), Version: 2.6.33.0
                                                 Windows Version: Windows 10 (Version 10.0, Build 17763, 64-bit Edition)
                                                 CEF Version: 84.3.10.0 (Chrome: 84.0.4147.105)
                                                 CEF Cache Location: C:\Users\xxx\AppData\Local\SqueezeliteX\cache
                                                 CEF Cache Size: 11 201 319 bytes
                            INFO   00:22:15.652  ----------------------------------------------------------------------------------------------------
                                                 Main Form Create
                                                 ----------------------------------------------------------------------------------------------------
                            INFO   00:22:15.706  Creating Main Browser
                            INFO   00:22:15.717  Log Window Created
                            INFO  *00:22:15.726  Chromium Browser Created
                            INFO   00:22:15.727  ----------------------------------------------------------------------------------------------------
                                                 Start InitProgram
                                                 ----------------------------------------------------------------------------------------------------
                            INFO   00:22:15.884  Server Discovery: No Servers Discovered [158 ms]
                            INFO   00:22:15.884  Read Settings From Registry
                            INFO   00:22:16.062  Setting Lms.Host (HostName=ubuntu-server, Host=ubuntu-server)
                            INFO   00:22:16.127  ----------------------------------------------------------------------------------------------------
                                                 ConnectAll
                                                 ----------------------------------------------------------------------------------------------------
                            INFO  *00:22:16.198  PaInfoGetOutputDeviceList - Complete [71 ms]
                            INFO   00:22:16.304  Lms.ConnectTelnet called (Host=ubuntu-server:9096)
                            INFO   00:22:16.304  Telnet.Status: Resolving hostname ubuntu-server.
                            INFO   00:22:16.317  Telnet.Status: Connecting to 192.168.1.25.
                            ERROR  00:22:17.322  Exception in ConnectTelnet: Socket Error # 10061 Connection refused.[1018] 
                            INFO   00:22:17.322  EIdSocketError
                            INFO   00:22:17.322  ConnectAll Complete
                            ERROR  00:22:17.332  Connection refused.
                            INFO   00:22:17.342  ----------------------------------------------------------------------------------------------------
                                                 End InitProgram [InitProgram: 1616 ms, Total: 1692 ms]
                                                 ----------------------------------------------------------------------------------------------------

                            Comment


                            • Originally posted by schmurtz
                              You're right the CLI is not reconnected. I admit that I cannot reproduce it systematically but there's something strange in this telnet reconnection.... I've check that nothing was on my 9090 port and I've also changed my port CLI to 9096 to be sure. And after that I've got the same behavior : when I stop the lms service, if the UI doesn't show the circle "loading" logo (white spinner at the center of the black screen) I know that it will not reconnect correctly. I have to disconnect the server often more than one time to get this result. After this problem I see that in the logs :
                              Code:
                              INFO   00:16:31.310  SND (CLI): 94:c6:91:a4:7b:0a mixer volume +5
                              ERROR  00:16:31.310  Exception (EIdConnClosedGracefully): Connection Closed Gracefully.
                              May be I should reinstall the Windows server to compare

                              ---------------------------------------------------
                              For the other issue (start slx without server running), you're able to reproduce it ? (the UI stay on the "squeezelite-x settings" page with "connection refused" at the bottom : it doesn't try to reconnect continuously, may be it should show the spinner indefinitely instead..). .. I've got this logs in this case :

                              Code:
                              INFO   00:22:15.650  ----------------------------------------------------------------------------------------------------
                                                   Program Start (14/08/2020)
                                                   ----------------------------------------------------------------------------------------------------
                              INFO   00:22:15.652  Squeezelite-X (Legacy Build) (x64), Version: 2.6.33.0
                                                   Windows Version: Windows 10 (Version 10.0, Build 17763, 64-bit Edition)
                                                   CEF Version: 84.3.10.0 (Chrome: 84.0.4147.105)
                                                   CEF Cache Location: C:\Users\xxx\AppData\Local\SqueezeliteX\cache
                                                   CEF Cache Size: 11 201 319 bytes
                              INFO   00:22:15.652  ----------------------------------------------------------------------------------------------------
                                                   Main Form Create
                                                   ----------------------------------------------------------------------------------------------------
                              INFO   00:22:15.706  Creating Main Browser
                              INFO   00:22:15.717  Log Window Created
                              INFO  *00:22:15.726  Chromium Browser Created
                              INFO   00:22:15.727  ----------------------------------------------------------------------------------------------------
                                                   Start InitProgram
                                                   ----------------------------------------------------------------------------------------------------
                              INFO   00:22:15.884  Server Discovery: No Servers Discovered [158 ms]
                              INFO   00:22:15.884  Read Settings From Registry
                              INFO   00:22:16.062  Setting Lms.Host (HostName=ubuntu-server, Host=ubuntu-server)
                              INFO   00:22:16.127  ----------------------------------------------------------------------------------------------------
                                                   ConnectAll
                                                   ----------------------------------------------------------------------------------------------------
                              INFO  *00:22:16.198  PaInfoGetOutputDeviceList - Complete [71 ms]
                              INFO   00:22:16.304  Lms.ConnectTelnet called (Host=ubuntu-server:9096)
                              INFO   00:22:16.304  Telnet.Status: Resolving hostname ubuntu-server.
                              INFO   00:22:16.317  Telnet.Status: Connecting to 192.168.1.25.
                              ERROR  00:22:17.322  Exception in ConnectTelnet: Socket Error # 10061 Connection refused.[1018] 
                              INFO   00:22:17.322  EIdSocketError
                              INFO   00:22:17.322  ConnectAll Complete
                              ERROR  00:22:17.332  Connection refused.
                              INFO   00:22:17.342  ----------------------------------------------------------------------------------------------------
                                                   End InitProgram [InitProgram: 1616 ms, Total: 1692 ms]
                                                   ----------------------------------------------------------------------------------------------------
                              Thanks. BTW, on startup, SLX won't try continuously unless Wake on LAN is enabled. That is by design.

                              R Greg Dawson
                              Squeezelite-X

                              Comment


                              • Originally posted by CakeOrDeath
                                SLX came up. I Enabled Log File and set debug level to debug. SLX prompted to restart, which I did. App closed but didn't restart. I started app and it hung. It created a log file:

                                ================================================== ===

                                INFO 16:01:44.464 ----------------------------------------------------------------------------------------------------
                                Program Start (8/13/2020)
                                ----------------------------------------------------------------------------------------------------
                                INFO 16:01:44.466 Squeezelite-X (Legacy Build) (x64), Version: 2.6.32.0
                                Windows Version: Windows 10 (Version 10.0, Build 18363, 64-bit Edition)
                                CEF Version: 84.3.10.0 (Chrome: 84.0.4147.105)
                                CEF Cache Location: C:\Users\labballe\AppData\Local\SqueezeliteX\cache
                                CEF Cache Size: 7,961,125 bytes
                                INFO 16:01:44.466 ----------------------------------------------------------------------------------------------------
                                Main Form Create
                                ----------------------------------------------------------------------------------------------------
                                INFO 16:01:44.517 Creating Main Browser
                                INFO 16:01:44.530 Log Window Created
                                INFO *16:01:44.553 Chromium Browser Created
                                INFO 16:01:44.602 ----------------------------------------------------------------------------------------------------
                                Start InitProgram
                                ----------------------------------------------------------------------------------------------------
                                INFO 16:01:44.672 Server Discovery: [Deadwing] [69 ms]
                                INFO 16:01:44.672 Read Settings From Registry
                                INFO 16:01:44.676 Setting Lms.Host (HostName=Deadwing, Host=192.168.1.150)
                                INFO 16:01:44.677 ----------------------------------------------------------------------------------------------------
                                ConnectAll
                                ----------------------------------------------------------------------------------------------------
                                DBUG *16:01:44.677 PaInfoGetOutputDeviceList - Start
                                INFO 16:01:44.680 Lms.ConnectTelnet called (Host=192.168.1.150:9090)
                                DBUG 16:01:44.680 DisconnectTelnet Called
                                INFO 16:01:44.681 Telnet.Status: Connecting to 192.168.1.150.
                                INFO 16:01:44.681 Telnet.Status: Connected.
                                DBUG 16:01:44.682 TelNet.Connect succeeded [1 ms]
                                INFO 16:01:44.688 SND (CLI): login moonloop ******
                                DBUG 16:01:44.688 ...Wait for login response
                                INFO 16:01:44.689 RCV (CLI): login moonloop ******
                                INFO 16:01:44.700 Authentication Succeeded. [12 ms]
                                INFO 16:01:44.701 SND (CLI): subscribe power,client,name,playlist,mixer
                                INFO 16:01:44.702 RCV (CLI): subscribe power,client,name,playlist,mixer
                                INFO 16:08:15.595 RCV (CLI): 00:04:20:2d:a3:2c client disconnect
                                INFO 16:08:37.726 RCV (CLI): 00:04:20:2d:a3:2c client reconnect

                                ================================================== ===
                                Thank you, this is very helpful. Looks like PortAudio and enumerating the audio devices is the culprit. I can see that PaInfoGetOutputDeviceList gets started, but does not complete. Now I have something to go on.

                                R Greg Dawson
                                Last edited by rgdawson; 2020-08-14, 21:46.
                                Squeezelite-X

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎