Kodi Community Forum

Full Version: Kodi crashes on HDR movies
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I use Kodi on two Nvidia Shield devices: Fantastic! Even REMUX HDR versions work perfectly on all TVs in the house. However...

I've installed Kodi on a Windows 10 PC, that's directly connected through HDMI to a 4K LG TV. Each time I start any series or movie on the TV, Kodi crashes. If I use Plex, it all works fine including 4K HDR. If I use my PC monitor on the same PC, Kodi works fine.

My setup:
- Windows 10 (22H2)
- EVGA Nvidia Geforce 1080 (FTW)
- 32 GB DDR4 RAM
- Kodi 20.2
- LG C2 Oled

Some information on status / what I've tried:
- I have the latest Nvidia driver installed
- Tried with (in Windows 10) the HDR option off / on
- Tried all HDR settings in Kodi (HDR off, disabled Hardware accelaration, sync framerate)
- I tried with / without audio passthrough
- I tried all rendering methods

From the log file below it looks like an audio error? But passthrough is off and I use the LG build-in speaker. 

Can someone support with this? Thanks in advance.


2023-08-08 17:29:31.576 T:8512    error <general>: DX:Big GrineviceResources::CreateSwapChain: function call at line 527 ends with error: -7FF8FFFB - E_ACCESSDENIED (Access is denied.
                                                   )
2023-08-08 17:29:31.576 T:8512  warning <general>: DX:Big GrineviceResources::ResizeBuffers: creating 10bit swapchain failed, fallback to 8bit.
2023-08-08 17:29:31.623 T:8512    error <general>: DX:Big GrineviceResources::CreateSwapChain: function call at line 527 ends with error: -7FF8FFFB - E_ACCESSDENIED (Access is denied.
                                                   )
2023-08-08 17:29:31.623 T:8512    error <general>: DX:Big GrineviceResources::ResizeBuffers: unable to create swapchain.
2023-08-08 17:29:31.627 T:8512     info <general>: DXVA::CProcessorHD::InitProcessor: supported deinterlace methods: blend:yes, bob:yes, adaptive:yes, mocomp:no.
2023-08-08 17:29:31.905 T:8256  warning <general>: CRenderManager::Configure - timeout waiting for configure
2023-08-08 17:29:32.028 T:8256    error <general>: CVideoPlayerVideo::OutputPicture - failed to configure renderer
2023-08-08 17:29:34.379 T:8256  warning <general>: CVideoPlayerVideo::OutputPicture - timeout waiting for buffer
2023-08-08 17:29:34.395 T:3292  warning <general>: ActiveAE - large audio sync error: -1908.403667
2023-08-08 17:29:34.398 T:3292  warning <general>: ActiveAE - large audio sync error: -1908.283933
2023-08-08 17:29:34.398 T:3292  warning <general>: ActiveAE - large audio sync error: -1909.280533
2023-08-08 17:29:34.411 T:3292  warning <general>: ActiveAE - large audio sync error: -1899.189000
2023-08-08 17:29:34.427 T:3292  warning <general>: ActiveAE - large audio sync error: -1898.555200
2023-08-08 17:29:34.432 T:8256  warning <general>: CVideoPlayerVideo::OutputPicture - timeout waiting for buffer
2023-08-08 17:29:34.443 T:3292  warning <general>: ActiveAE - large audio sync error: -1897.918000
It's not an audio error. After some googling, that error may come from something that Kodi should be doing when recreating the swap chain but it's not trivial to fix and could take a while.
In case you're technically inclined https://learn.microsoft.com/en-ca/window..._with_Flip

I don't have issues with a GT 1030 in similar conditions and this hasn't been widely reported so for workarounds...
- try resetting the driver settings to default
- try v21 alpha (a new one is due in a week or so). It has many other improvements/changes that may help go around the driver incompatibility. Run it in portable mode, or make a backup of your Kodi data first just in case.
- avoid the situations that recreate the swap chain, ie HDR/SDR switch by Kodi => Turn the option Player > Videos > Use display HDR capabilities to OFF. Switch HDR on/off yourself in Windows before starting Kodi.

Do you use windowed fullscreen or true fullscreen?
Thanks for the quick answer!

I downloaded v21 and tried your recommendations. First no luck, but your question at the end of your answer helped me. By turning off the 'full screen' option, now all video video files play and also in HDR. However, when I stop the playback Kodi still crashes. See log file in the link below.

Any ideas?

https://paste.kodi.tv/sopadixegi
Try Nexus nightly (is different from 20.2):
https://mirrors.kodi.tv/nightlies/window...us-x64.exe

or Omega/v21 nightly (is different from Alpha 2):
https://mirrors.kodi.tv/nightlies/window...er-x64.exe


May be related to https://forum.kodi.tv/showthread.php?tid...pid3161120
The logs you attached are not complete and not at the "Debug" level so they have less information than usual. But honestly in this case we probably wouldn't learn much more with the debug level.

I tried the easy fix of calling ClearState() as suggested by the MS article, but without additional work, Kodi black screens (AMD) or crashes in a much worse way after a few switches (nVidia).
Without the ability to repro, it's not clear if it's worth continuing down that path or if a different sort of solution is needed.

Maybe the windowed fullscreen setting is the key to help someone else reproduce the issue, I'll give it a try sometime.
Please try to setup a config as standard as possible and see what happens (delete profile data after backing it up, only setup a source so you can play something).
windowed fullscreen or fullscreen exclusive made no difference here, the issue is not happening.
Wanted to chip in to say that I have the very same problem, all same symptoms including the "failed to configure renderer" error; except that I'm still in Kodi 19.5 and it doesn't crash, just shows a black screen (audio fine) when viewing 4K HDR videos, but on my 4K TV only, not in the monitor.

This was working fine with a 3-4 months old nVidia driver, and started happening when updating it to latest one. Going back fixes it, so not sure what changed, but I checked my AVR and it was reporting a "4K 24Hz 3D" signal being passed (together with 10 bits and BT2020), while before it didn't show the "3D". Just in case it helps figuring something out.

PS: Also using window screen (not windowed full screen) solves it with latest driver, but it is not usable as a HTPC.
@JasperVanK can you try this test build - it's based on v21 beta 1 https://mirrors.kodi.tv/test-builds/wind...1--x64.exe