New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UMS not being detected after PC woken up from sleep #2334
Comments
Would you please try an older version like v9.7? We did some refactoring recently in 9.8+ that may have affected this and it would be good to know if that was the cause |
I have been using the latest versions as they have been released, but this has only been happening since trying the alpha version. |
@Mik-S-UMS I can't think of anything in v10 that would cause that, so would you please check with 9.8.3? |
OK I give it a try next time |
OK tried with 9.8.3 with same result which I guess is no surprise if it was due to some refactoring in 9.8+ I'll try again with 9.8.2, I'm sure that didn't have the problem. |
Ok great, I'll wait to hear from you about that |
9.8.2 was the same. I skipped back a few versions to 9.7.2 and that is working correctly. Instead of just alive messages I see. Although just scanning that log now I saw this There has been something else missing in newer versions that is in this log but I'll make a separate issue |
a bit of weirdness with 9.8.0. possibly due to me installing wireshark.
Disabling then re-enabling the network adaptor in windows fixed the IP and UMS was detected without restarting the server. |
@valib I don't think you can run Movian on Windows. Also, it this causes problems that itself is a new bug. I've always ran renderer software on the same computer when testing (Kodi, VLC, foobar2000 etc). I've never had issues caused by the fact that they're on the same computer. |
@Nadahar I edited my comment because I think that he set the same IP address for the PC and alo for the PS3. EDIT: sorry my mistake. The IP addresses are different. This is not the problem. |
Yes this could be the reason why the UMS fails. We should check if it happens. I will check the code. |
@Nadahar There is a Movian plug-in for chrome, not tried that version though as I use Firefox. |
@Mik-S-UMS Nice to know I guess, although I stay as far away from Chrome as possible, the surveillance tool that can also be used to browse web pages. |
@Nadahar yeah me too LOL I can confirm that it was wireshark changing the IP. I used Autoruns from the SysinternalsSuite to see if anything had been left behind when uninstalling. npcap and USBPcap services were still running so I turned them both off. Unfortunately turning off USBPcap stopped all my USB ports from working. Had to hunt down an old PS/2 mouse to login and turn it back on. With npcap off it is back to normal. Maybe the the cause of this is a delay in windows identifying networks when waking up causing UMS to pick an invalid one? |
I've found the version where this started happening. 9.8.1 is the first version with this problem. |
@Mik-S-UMS are you able to test #2339 ? If not I can upload a build for you |
could you upload a build for me? not set up to build it myself anymore. |
I installed this version on my PC and the Android version on my phone. The result is the same. The Movian UPnP implementation fails. This was my first feeling when this issue was created. I also tested the previous UMS versions like 9.7.0 and 9.8.0 with the same result. The UMS works with thousands renderers without any problems and only this SW fails. I also used the UPnP Tool on my phone to check responses of the Movian and it fails again. |
@SubJunk the Movian seems to have a problem with the UPnP implementation but it uses the "themoviedb.org" to obtain the info about the video media. It is implemented to get the info about the video in the preffered language the user set. Pleae try Movian to see it and maybe we can implement this feature. |
@SubJunk Unfortunately that didn't do the trick, I still have restart the server after waking up PC for my TV or Movian to detect UMS. I know my network setup is probably an edge case (Off-line wired network on one interface and wireless internet on another) but someone else is bound to have something similar. @valib I tried the chrome version myself, I thought it would be something like UMS's web interface. Surprised that it is the full app that runs separately from chrome (using parts of chrome I guess?) I did have trouble connecting to UMS when using it on the same machine, maybe due to the conf I cobbled together for the PS3. one of the plug-ins called Xperience is a new skin that shows off some of info it can get similar to UMS v10 does. Looks like Movian has been abandoned now since last update was 3 years ago. It is open source though and on GitHub so it could give you some ideas to add to UMS. If it ran on a web page like I thought, I was going to suggest you could use it as a video player for the web interface but looks like that isn't an option. |
@valib Just remembered one thing about Movian, media servers won't appear on the home screen until they are enabled in the settings. At the bottom of the settings is "Discovered media sources" and in each option you can turn them on. |
@Mik-S-UMS myabe my comment was too short. Generaly the Movian works. It found the UMS, browses folders and plays media. But e.g. the |
@valib np, I have very little knowledge about the protocols so can't really comment on if Movian follows them correctly. AFAICR I don't remember any reply from Movian to
and bad request
I'm guessing that |
@Mik-S-UMS yes it is true and other renderers respond with |
@SubJunk why the #2112 is working on other renderers but not only on Movian? As I wrote in this issue I tested the Movian on the PC and Android phone with the same result. I tested UMS versions before the 9.8.1 and the result is the same. Can you also test it to confirm it? |
@valib It's not just Movian, but my Samsung TV too. Must have something to do with how my PC is connected to the internet is stopping it seeing the local network? |
@Mik-S-UMS I have two Samsung renderers like Q9 TV and sound bar connected to my PC and those work without any problems. It seems to me that you have a poblem with your PC e.g. changing the IP address of the network interface is strange. I also had a problem to open your log zips when my PC says that those files are corrupted. Can you check your PC for viruses? |
@valib You seem to miss the fact that this applies only after waking the PC from sleep. It's not necessarily reproducible on all computer systems either, because NIC drivers seems to vary somewhat as to how they handle "wake up". That said, there was a thread on the forum not long ago about basically the same issue as far as I can remember, but as I wasn't aware that you had changed anything related to UPnP, I told him it was probably related to his hardware and/or OS. I believe that case was on Linux. |
I can't reproduce it on my machine - my computer goes to sleep frequently, after 10 mins of inactivity, so it is constantly going to sleep and waking up, but I never restart UMS unless I need to for testing/development @valib do you have any ideas for other fixes? If not I can try to come up with something to test |
It's important to note that there are "different levels of sleep". In some setups, the screen might be shut of and the computer going to a "low power mode" while still having the system running. This is unlikely to cause any problems as the drivers aren't actually stopped. It's only when the NIC's are actually powered down (and the drivers stopped) the issues when resuming is likely. My laptop seems to use both - it first go to "light sleep", from which is wakes up quickly and everything is as it was. If left alone for a longer period, it actually shuts down NICs etc, waking up takes some 20 seconds or so and the network must reconnect. |
@valib the IP changing was my fault trying wireshark, thought it might give me some indication if there are any problems with the communication between them. I don't know what I'm doing with it and it had changed the expected outcome of my test so I removed it. which log is corrupted? Just scanned all my local copies and nothing is out of the ordinary. Maybe one didn't upload correctly? I just had another thought, being that I am using a usb Wifi dongle I think it is set to turn off when not in use. Maybe when it is turned on after the PC wakes up it alters the order of network adaptors? I'll give that a test later and see if disabling that in power management makes any difference. |
@Mik-S-UMS If you make sure that all network adapters are kept powered on during "sleep" I doubt you will have any issues. But, that doesn't really change the fact that this works with older versions of UMS...? |
@Mik-S-UMS please try https://www.universalmediaserver.com/uploads/UMS-fix-sleep-connection-abdd839.exe |
OK. Got a few ideas myself to test with my setup to see if I can narrow down what is different for me. Will report back later. |
In my opinion it is better to leave your setup at least until we can fix this regression. It would be a shame if we lost the ability to reproduce this bug |
@Mik-S-UMS in fact I saw this warning for the first time and it could be the Firefox warning. I have no idea. I open those zips and inside is all OK. I only tried to warn you. |
@SubJunk oops, I had already tried a few things and now it is no longer happening. Tried putting everything back the way it was but cannot reproduce the bug :( on the plus side I think I have found the cause of the other issue but will post about that in that thread. I'll go though what I tried and see if anything makes sense to you. I disabled "allow the computer to off this device to save power" for the network adaptors in device manager. -> no change Then I tried the build with partial reversion but that gave errors while trying to connect
So I then reinstalled v10 and it is now not happening. I've been back tracking to see if I can find what did it but I'm stumped. @valib no problem, always good to be cautious and I did a scan anyway to be on the safe side. |
Closing the issue, feel free to open it again if anyone reproduces it |
Just for record. The Firefox recognized the zip file like corrupted because the full URL is And the part |
Something I have noticed the past few days is that when I go to watch something on my PS3, UMS is not getting detected. A quick server restart fixes it so just ignored it.
I happened again today so thought I should look into it and see what the logs say.
The only thing I could see at the end of the log was just "Sending ALIVE..." messages for hours, up till when the computer was woken up.
Just after waking up was this:
[cling-1246] Ignoring remote device: InternetGatewayDevice (RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:31383735-3239-3600-0000-400d10b6e4ad, Descriptor: http://192.168.1.1:5000/rootDesc.xml, Root: true
[cling-1246] Ignoring embedded device: urn:schemas-upnp-org:device:WANDevice:1 (RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:31383735-3239-3600-0000-400d10b6e4ae, Descriptor: http://192.168.1.1:5000/rootDesc.xml, Root: false
192.168.1.1 is the wireless connection I use for internet (Neighbours router used with permission) and is not the interface UMS should be using which I have forced to use wired.
I think in 10.0.0-a1 UMS is not using the right network interface when it is woken up from sleep for some reason.
ums_dbg_2021-01-05-04-16.zip
The text was updated successfully, but these errors were encountered: