2019-12-26, 22:38
Hello All!
I've been struggling with this issue for QUITE some time (probably around 2 years now) and it's time for me to try and tackle it. The tl;dr is that when I select a video file, sometimes (will expand on "sometimes" shortly) Kodi freezes after the requisite frame rate change. Since the start of these issues (no, I dont recall the version I was on when this started as it was too long ago, but I've always kept up to date on the latest revision) I have since replaced my AV receiver, my graphics card, later building a whole new HTPC, and finally a new TV. Only the new TV seems to have made an impact towards reducing the issues, but, at the same time I bought a new TV, I switched to the Kodi 19 HDR edition as Kodi 18 wouldn't load any 4K HDR movies at all, it ALWAYS crashed.
Any help you can offer would be much appreciate by me and the wife.
So, that's the Tl;dr. Now, for greater detail.
Current Setup
Self-built AM4 HTPC
Nvidia GTX 1050TI GPU
Win10 Professional
Onkyo AV Receiver w/HDCP
Vizio P Quantum X TV
Build Version: Current is 19 HDR edition. Issue has been seen on 18, and i believe 17, but that was quite some time ago.
Troubleshooting
I should start by saying that this is an annoyingly inconsistent issue. There is no consistency between the type of file played (all are stored as MKV containers, but I'm referring to video resolution, with the apparent exception of Kodi 18 and 4K HDR files) so it is not easy to replicate. Also, there are times when we can click through half a season of a show with no issue and other times when it takes 3+ forced restarts of Kodi to get one movie to play. That said, below are some troubleshooting steps that I have already attempted.
1) As mentioned, I have replaced every piece of the setup that plays Kodi on my TV (excluding my NAS that stores the files and hosts the MariaDB database I use).
2) When I built the current HTPC that I am using, I did a fresh install of Win7 Pro and upgraded through to Win 10 (product key from school still works on Win7)
3) I have tried a near infinite set of combinations of Player --> Video settings related to "Adjust display refresh rate", "Sync Playback to display", "Hardware Acceleration", and System-->Display "Delay after change of refresh rate" settings and none have reduced or rectified my issue.
** I should note here, the reason I use those settings is because I was getting a lot of noticeable dropped or missing frames when playing videos previously.
4) I have also tried multiple HDMI ports on my AV receiver, both those that do and do not have HDCP 2.2 support, to no avail.
5) I have also connected the HTPC directly to my TV (previous TV) and no change in performance occurred.
Research
In the logs (below), you will see that, when loading a file fails, I receive a "CWinSystemWin32::OnDisplayLost: notify display lost event" error. I have searched this error previously and the only information I was able to find was a post or bug report from several years ago that stated it was fixed in a version update and then was never mentioned again.
Repeat Note
The combination of new TV and switching to Kodi 19 HDR has reduced the frequency of this issue drastically. Previously, it was near-guaranteed to have it freeze every 3rd or so video, and usually take 2 or 3 restarts of Kodi to get the video to load. Now, I am able to make it through several episodes of a show before this issue occurs.
Again, any help or suggestions would be amazing. I can provide any other information that you think would be helpful.
LOGS
"Good" log (ie: Kodi loaded video without freezing)
good log
"Bad" log (ie: Kodi freezes when loading a video)
bad log
I've been struggling with this issue for QUITE some time (probably around 2 years now) and it's time for me to try and tackle it. The tl;dr is that when I select a video file, sometimes (will expand on "sometimes" shortly) Kodi freezes after the requisite frame rate change. Since the start of these issues (no, I dont recall the version I was on when this started as it was too long ago, but I've always kept up to date on the latest revision) I have since replaced my AV receiver, my graphics card, later building a whole new HTPC, and finally a new TV. Only the new TV seems to have made an impact towards reducing the issues, but, at the same time I bought a new TV, I switched to the Kodi 19 HDR edition as Kodi 18 wouldn't load any 4K HDR movies at all, it ALWAYS crashed.
Any help you can offer would be much appreciate by me and the wife.
So, that's the Tl;dr. Now, for greater detail.
Current Setup
Self-built AM4 HTPC
Nvidia GTX 1050TI GPU
Win10 Professional
Onkyo AV Receiver w/HDCP
Vizio P Quantum X TV
Build Version: Current is 19 HDR edition. Issue has been seen on 18, and i believe 17, but that was quite some time ago.
Troubleshooting
I should start by saying that this is an annoyingly inconsistent issue. There is no consistency between the type of file played (all are stored as MKV containers, but I'm referring to video resolution, with the apparent exception of Kodi 18 and 4K HDR files) so it is not easy to replicate. Also, there are times when we can click through half a season of a show with no issue and other times when it takes 3+ forced restarts of Kodi to get one movie to play. That said, below are some troubleshooting steps that I have already attempted.
1) As mentioned, I have replaced every piece of the setup that plays Kodi on my TV (excluding my NAS that stores the files and hosts the MariaDB database I use).
2) When I built the current HTPC that I am using, I did a fresh install of Win7 Pro and upgraded through to Win 10 (product key from school still works on Win7)
3) I have tried a near infinite set of combinations of Player --> Video settings related to "Adjust display refresh rate", "Sync Playback to display", "Hardware Acceleration", and System-->Display "Delay after change of refresh rate" settings and none have reduced or rectified my issue.
** I should note here, the reason I use those settings is because I was getting a lot of noticeable dropped or missing frames when playing videos previously.
4) I have also tried multiple HDMI ports on my AV receiver, both those that do and do not have HDCP 2.2 support, to no avail.
5) I have also connected the HTPC directly to my TV (previous TV) and no change in performance occurred.
Research
In the logs (below), you will see that, when loading a file fails, I receive a "CWinSystemWin32::OnDisplayLost: notify display lost event" error. I have searched this error previously and the only information I was able to find was a post or bug report from several years ago that stated it was fixed in a version update and then was never mentioned again.
Repeat Note
The combination of new TV and switching to Kodi 19 HDR has reduced the frequency of this issue drastically. Previously, it was near-guaranteed to have it freeze every 3rd or so video, and usually take 2 or 3 restarts of Kodi to get the video to load. Now, I am able to make it through several episodes of a show before this issue occurs.
Again, any help or suggestions would be amazing. I can provide any other information that you think would be helpful.
LOGS
"Good" log (ie: Kodi loaded video without freezing)
good log
"Bad" log (ie: Kodi freezes when loading a video)
bad log