Improve handling of connection error to remote content (don't freeze Kodi)
#1
When the connection to a remote host (a NAS, a computer...) gets interrupted, the video freezes and Kodi stops responding (on Windows 10, the window is actually shown as non responding) for a minute or so.

I suggest showing an error dialog with the message "Connection to host [host name] lost, trying to reconnect..." (ideally with animated "..." or image).
Below the message in the same error dialog, a button "Cancel" would be shown so the user can abort if wanted.

This error dialog would ideally be shown once the image freezes so the user doesn't wonder what's going on. It already seems to take a few seconds (10 or so? with the default config depending on the file) for the buffer to get empty.

Debug log using Xbian 2021.07.30 rpi4 with Kodi 19.1 and accessing a NAS: https://paste.kodi.tv/ubutefatax.kodi (check near line 2215)
Debug log using Windows 10 with Kodi 19.1 and accessing the same NAS: https://paste.kodi.tv/enijifetiq.kodi (check near line 924)

By comparison, Kodi doesn't stop responding when playing a video from a USB device that gets removed:
Debug log using Windows 10 with Kodi 19.1 and accessing a USB device: https://paste.kodi.tv/jakacakivu.kodi (check near line 894)

Originally posted at https://github.com/xbmc/xbmc/issues/20040 but it seems "it's a feature, not a bug". Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Improve handling of connection error to remote content (don't freeze Kodi)0