Kodi Freezes, but will not crash

Best I can tell, Kodi seems to become unresponsive after the HDMI source on my TV has been changed.

Kodi is running on an NUC PC, which is hooked up to HDMI-1.

My son plays XBox, which is hooked up to HDMI-3.

After he finishes playing, he typically forgets to put the TV back on HDMI-1.

If I come back hours later and swap the HDMI input, Kodi appears to work just fine.

Whenever I select something to watch, there will be no audio. If I leave Kodi running, the video will eventually get choppy and freeze.

At this point, I can press the [STOP] button, and Kodi will eventually stop playback. If I try starting another video, I will get the same behavior until I exit Kodi.

When I try to exit Kodi, the UI locks up. The only way to get PC control back is to use CTRL-ALT-DELETE to bring up Task Manager and kill the Kodi process.

After this, I can restart Kodi and it works fine.

It seems like Kodi knows something is broke (because it is recording it in the log file shown below), and Kodi still works fine after a restart (not a PC reboot).

My guess is somewhere there is a driver or library file that diposes of itself after a long period of inactivity.

Can this bug be put on the list for fixes? If Kodi has detected the issue and something in the program is not responding, that control should/could be disposed of and reinitialized – my guess. I really don’t understand much about the code, and I am not one of those great computer programmers.

My PC is running Win10x64, 256G SSD, 8G RAM.

Log file:

http://paste.ubuntu.com/23631744/