![]() |
Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164) +---- Thread: Kodi exiting video randomly on new Nvdia Shield Pro 2019 (/showthread.php?tid=348860) |
RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - fritsch - 2020-02-17 try to increase the lease-time with your router ... that really looks like your shield disconnects. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-17 I did not not want to post before I felt confident in my results but after my previous post where I noticed a possible wireless/DHCP related issue by comparing the router and Kodi logs when the exit occurred, I did some further testing. I assigned a static IP to my Shield TV (using the Shield UI, I just assigned the static DHCP lease I had set on my router already as a static assignment on the Shield wireless NIC) and then played back an entire 4k movie without any issues. I then replicated this test a second time, again 0 issues. That has never happened in Kodi (only MrMC) since I setup Kodi on the Shield. I feel pretty confident in saying that my issue is finally resolved. Even though the DHCP lease time on my router is set to 24 hours, the Shield is doing something bizarre when on WiFi causing it to lose the connection and then attempt to get a new lease/renew the DHCP lease every 1-2 hours (not sure about the precise interval). One caveat here is that I had some completely unrelated 2.4Ghz WiFi issues that started on Friday that I have been troubleshooting at the same time, so I DID also set my router to not dynamically set the channel and instead statically set it to 11/20mhz width for 2.4Ghz and channel 149 80mhz width for 5Ghz (ShieldTV is connected to 5Ghz). So, technically I did make two changes, the static IP and set static channels/width. However, I tested previously with static wireless channel settings WITHOUT the static IP and that did not make any difference (still random exits); the static IP was the key. I am pretty confident that the wireless changes, moving the Shield around physically etc. were not related to the fix, only the static IP was. Thanks for the feedback as well fritsch, (your hard work on Kodi is much appreciated) we were on the same line of thought! I will continue to monitor the situation and update if it re-occurs but hopefully I am all set and this solution is helpful to someone else in the future. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - VonMagnum - 2020-02-17 (2020-02-17, 10:22)Pirivan Wrote: I did not not want to post before I felt confident in my results but after my previous post where I noticed a possible wireless/DHCP related issue by comparing the router and Kodi logs when the exit occurred, I did some further testing. I assigned a static IP to my Shield TV (using the Shield UI, I just assigned the static DHCP lease I had set on my router already as a static assignment on the Shield wireless NIC) and then played back an entire 4k movie without any issues. I then replicated this test a second time, again 0 issues. That has never happened in Kodi (only MrMC) since I setup Kodi on the Shield. I'm actually unable to access the equipment right now (trip). But how does MrMC play into that equation? Isn't the Shield's WiFi leased by the device not the program? I don't recall manually setting lease times before. I won't be able to look at it on my Asus router until I get back. Perhaps the "freezes" were also leasing errors, but if they were buffered enough, it reconnected before it froze or stopped? RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-18 (2020-02-17, 22:58)VonMagnum Wrote: I'm actually unable to access the equipment right now (trip). But how does MrMC play into that equation? Isn't the Shield's WiFi leased by the device not the program? I don't recall manually setting lease times before. I won't be able to look at it on my Asus router until I get back. Perhaps the "freezes" were also leasing errors, but if they were buffered enough, it reconnected before it froze or stopped? If I understand the situation correctly, I think it's likely that the WiFi disconnects/DHCP lease renewal was occurring when using MrMc as well. However, MrMc was masking the issue because it uses a different SMB client which seems to handles a brief network drop/interrupt more smoothly (perhaps by having a larger buffer?) than the one currently implemented in Kodi. To clarify, I didn't change my lease times (24 hours) because the ShieldTV wasn't respecting the lease timer anyhow, it was doing something bizarre on wireless more often than 24 hours, I just assigned it a static IP on the Shield itself to prevent it from ever requesting a new lease. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - VonMagnum - 2020-02-18 (2020-02-18, 02:18)Pirivan Wrote:(2020-02-17, 22:58)VonMagnum Wrote: I'm actually unable to access the equipment right now (trip). But how does MrMC play into that equation? Isn't the Shield's WiFi leased by the device not the program? I don't recall manually setting lease times before. I won't be able to look at it on my Asus router until I get back. Perhaps the "freezes" were also leasing errors, but if they were buffered enough, it reconnected before it froze or stopped? If I'm understanding you correctly (that assigning a static IP address in the router is what gives it an unlimited lease) then I don't think it will fix anything here as I've always assigned ALL my regular devices their own local permanent IP addresses. I regularly connect to it via SMB://192.168.1.6 here. It's always that address. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-18 What I had setup on the Asus router was a DHCP reservation, which is not quite the same thing as a static IP address. The Shield TV still renews the DHCP address lease, it just always renews it with the same IP and the router will never give out that DHCP address to any other client because it 'knows' it is associated with the Shield TV MAC address. What I had to do was ALSO assign the Shield TV wireless interface a static IP that was equivalent to the static DHCP reservation I was using for it on the router. If I understand correctly, this prevents the ShieldTV from ever trying to renew the lease, which it was doing on bizarre intervals (not ever 24 hours), causing the network interruption. Alternatively, you do not have to use DHCP reservations on the router at all. You could assign your ShieldTV (on the device itself) a static IP in your local subnet but OUTSIDE of the DHCP pool, that should work as well. I simply chose to statically assign the Shield the DHCP reservation I had setup for it on the router. Are you assigning static IP's locally on the devices or are you setting up DHCP reservations for the devices on the router (as I was)? If you have been assigning static IP's for each device within their configuration UI (aka the Shields wireless network settings) then this may not be a fix for you as you have already implemented it. I will continue testing but the issue so far appears to be completely resolved for me with this change. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - VonMagnum - 2020-02-18 (2020-02-18, 03:08)Pirivan Wrote: What I had setup on the Asus router was a DHCP reservation, which is not quite the same thing as a static IP address. The Shield TV still renews the DHCP address lease, it just always renews it with the same IP and the router will never give out that DHCP address to any other client because it 'knows' it is associated with the Shield TV MAC address. I guess I don't know how to do what you're talking about offhand and can't look at it for some time. Where can you assign that within the Shield itself? RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-18 (2020-02-18, 04:24)VonMagnum Wrote: I guess I don't know how to do what you're talking about offhand and can't look at it for some time. Where can you assign that within the Shield itself?On the Shield: Settings -> Network & Internet -> <wireless network name> -> IP settings -> Static -> assign static IP settings (again I used the same settings it already had from the DHCP reservation) Note, for some reason getting the Android TV interface to 'move forward' after inputting an IP was problematic when using an Android remote control application (scrcpy on my PC), it doesn't like to let you 'accept' what you input to move to the next field and I had to use the my physical remote/wireless keyboard to click OK. Also, when I tried to set this the first time it told me that the IP settings weren't valid but when I attempted it again immediately using all of the same IP address/subnet/gateway/DNS information, it accepted it and applied. So, reattempt a few times if necessary and likely configure it using the actual Shield with a remote/keyboard rather than a remote control application like scrcpy. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - VonMagnum - 2020-02-18 (2020-02-18, 04:34)Pirivan Wrote:I'll give it a try when I get back.(2020-02-18, 04:24)VonMagnum Wrote: I guess I don't know how to do what you're talking about offhand and can't look at it for some time. Where can you assign that within the Shield itself?On the Shield: Settings -> Network & Internet -> <wireless network name> -> IP settings -> Static -> assign static IP settings (again I used the same settings it already had from the DHCP reservation) ![]() RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-18 Mea culpa, it looks like the static IP did not completely resolve the issue. It worked through several full length 4K movie playback tests, which it NEVER had before so I took that to mean the issue was resolved (it does seem to be improved in my defense, the issue may be less frequent). Then, while watching a TV show episode it quit some 10 odd minutes in. I immediately checked the Kodi and Asus Router logs. Router log: Feb 17 20:05:07 WLCEVENTD: eth2: Assoc <Shield TV MAC> Kodi log: 2020-02-17 20:05:03.786 T:21509 ERROR: Read - Error( -1, 103, Software caused connection abort ) So, the behavior has changed slightly. After setting a static IP, there is no more DHCPDISCOVER, DHCPOFFER, DHCPREQUEST, DHCPACK, DHCPSOLICT process in addition to the WLCEVENTD message. I did a bit of research and I believe that WLCEVENTD is technically unrelated to DHCP. According to the developer of Asuswrt (the slightly modified stock firmware I run on my router) WLCEVENTD is: "A daemon Asuswrt runs to detect wireless client connecting/disconnecting" So, back to square one in some ways. Basically all I know is that the ShieldTV is disconnecting from wireless very briefly and that causes Kodi playback to halt. I did some quick research and have the following possible solutions to investigate based on searching for ShieldTV + Asus router wireless issues:
RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - fritsch - 2020-02-18 Quote:2020-02-17 20:05:03.786 T:21509 ERROR: Read - Error( -1, 103, Software caused connection abort ) This could be the well known SMB issue since several months / years. Could you test with NFS? RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-18 (2020-02-18, 08:51)fritsch Wrote:Quote:2020-02-17 20:05:03.786 T:21509 ERROR: Read - Error( -1, 103, Software caused connection abort ) Hi Fritsch, really appreciate the feedback but yes, I did test with NFS and that also failed (it had a slightly different error message): 2020-01-05 23:16:38.649 T:29650 ERROR: Read - Error( -5, nfs_service failed ) I am pretty convinced that it's a wireless networking issue between the latest Shield TV firmware and various Asus routers (possibly a specific broadcom chipset used by a variety of wireless routers). RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - fritsch - 2020-02-18 Jep, this special case looks like it. RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - VonMagnum - 2020-02-18 Given it started quitting here with the last firmware update, I'm still suspicious they changed something that screwed it up. I clearly remember CEC causing this before, but they've changed their CEC menu. There is no total "OFF" button, just individual sliders. Perhaps it's still interfering in some undocumented way? RE: Kodi exiting video randomly on new Nvdia Shield Pro 2019 - Pirivan - 2020-02-19 FYI to avoid spamming everyone, I am have been editing my post from yesterday where I was listing possible fixes with the results of those tests. I will continue to do that but in summary so far:
|