2020-03-26, 12:27
## Bug report
### Describe the bug
Here is a clear and concise description of what the problem is:
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->
<!--- A bug report that is not clear will be closed -->
<!--- Put your text below this line -->
Following PC sleep, Kodi crashes when starting playback with "Adjust display refresh rate" set to "On Start/stop".
The crashing does not occur if just sleep/wake the PC, but I use a harmony remote to sleep/wake my PC, TV and amp in a single button press. After the crash occurs, I can open Kodi again, and the playback will start correctly.
## Expected Behavior
Here is a clear and concise description of what was expected to happen:
<!--- Tell us what should happen -->
<!--- Put your text below this line -->
Kodi sets the refresh rate according to the media file and starts playback
## Actual Behavior
<!--- Tell us what happens instead -->
<!--- Put your text below this line -->
Kodi crashes
Here is the sequence of events correlated to the log file:
I put the PC only to sleep with Kodi still open
I wake the PC only
I start playback - Line 713
No problem, stop playback.
I put the whole system (PC, TV and amp) to sleep with Kodi still open
I wake the whole system (PC, TV and amp)
I start playback - Line 1591
Kodi attempts to start playback and then crashes
Comparing the successful and unsuccessful attempts, it's line 850 onwards that is not executed on the unsuccessful attempt i.e. "DEBUG: DX:eviceResources::ReleaseBackBuffer: release buffers." and beyond
## Possible Fix
<!--- Not obligatory, but suggest a fix or reason for the bug -->
<!--- Put your text below this line -->
Seems related to the resolution/refresh rate detection/setting. Presumably Kodi can be prevented from crashing given that when restarting Kodi, all works correctly, so nothing OS-wise or driver has needed to be reset as such.
Edit: after some messing around, it seems as though refresh rate switching seems to have gotten busted on my setup out of nowhere (assume windows update must have caused it), i've always had "use fullscreen window" unticked in order to get smooth playback with passthru audio and refresh rate switching. It seems that now, refresh rate switching isnt working at all with that setting unticked. Ticking it seems to have fixed the issue... touch wood... still not ideal that Kodi can outright crash with no explanation in this scenario.
### To Reproduce
Steps to reproduce the behavior:
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
<!--- Put your text below this line -->
With "Adjust display refresh rate" set to "On Start/stop":
1. Put PC to sleep with Kodi still running (i do this with my harmony remote which also switches off the tv and my amp)
2. Wait a short period for client to fully sleep
3. Wake client (i am using harmony remote which powers on the tv and amp and client in quick succession)
4. Attempt to play media
*Kodi crashes*
### Debug Log
<!--- Put your text below this line -->
<!--- A Debug Log is always mandatory when creating an issue. Provide one! -->
The Debug Log can be found here:
https://www.mediafire.com/file/hyc7axrxx...i.zip/file
orx
https://paste.kodi.tv/qujuzaxaro.kodi
## Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
<!--- How has this bug affected you? What were you trying to accomplish? -->
<!--- Put your text below this line -->
### Your Environment
Used Operating system:
<!--- Include as many relevant details about the environment you experienced the bug in -->
<!--- Put your text below this line. Checkboxes can easily be ticked once issue is created -->
- [ ] Android
- [ ] iOS
- [ ] Linux
- [ ] OSX
- [ ] Raspberry-Pi
- [X] Windows
- [ ] Windows UWP
- Operating system version/name: Windows 10 - fully updated
- Kodi version: 18.6 (also reproduced on 18.4 and 26.03 nightly)
<!--- End of this issue -->
### Describe the bug
Here is a clear and concise description of what the problem is:
<!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug -->
<!--- A bug report that is not clear will be closed -->
<!--- Put your text below this line -->
Following PC sleep, Kodi crashes when starting playback with "Adjust display refresh rate" set to "On Start/stop".
The crashing does not occur if just sleep/wake the PC, but I use a harmony remote to sleep/wake my PC, TV and amp in a single button press. After the crash occurs, I can open Kodi again, and the playback will start correctly.
## Expected Behavior
Here is a clear and concise description of what was expected to happen:
<!--- Tell us what should happen -->
<!--- Put your text below this line -->
Kodi sets the refresh rate according to the media file and starts playback
## Actual Behavior
<!--- Tell us what happens instead -->
<!--- Put your text below this line -->
Kodi crashes
Here is the sequence of events correlated to the log file:
I put the PC only to sleep with Kodi still open
I wake the PC only
I start playback - Line 713
No problem, stop playback.
I put the whole system (PC, TV and amp) to sleep with Kodi still open
I wake the whole system (PC, TV and amp)
I start playback - Line 1591
Kodi attempts to start playback and then crashes
Comparing the successful and unsuccessful attempts, it's line 850 onwards that is not executed on the unsuccessful attempt i.e. "DEBUG: DX:eviceResources::ReleaseBackBuffer: release buffers." and beyond
## Possible Fix
<!--- Not obligatory, but suggest a fix or reason for the bug -->
<!--- Put your text below this line -->
Seems related to the resolution/refresh rate detection/setting. Presumably Kodi can be prevented from crashing given that when restarting Kodi, all works correctly, so nothing OS-wise or driver has needed to be reset as such.
Edit: after some messing around, it seems as though refresh rate switching seems to have gotten busted on my setup out of nowhere (assume windows update must have caused it), i've always had "use fullscreen window" unticked in order to get smooth playback with passthru audio and refresh rate switching. It seems that now, refresh rate switching isnt working at all with that setting unticked. Ticking it seems to have fixed the issue... touch wood... still not ideal that Kodi can outright crash with no explanation in this scenario.
### To Reproduce
Steps to reproduce the behavior:
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
<!--- Put your text below this line -->
With "Adjust display refresh rate" set to "On Start/stop":
1. Put PC to sleep with Kodi still running (i do this with my harmony remote which also switches off the tv and my amp)
2. Wait a short period for client to fully sleep
3. Wake client (i am using harmony remote which powers on the tv and amp and client in quick succession)
4. Attempt to play media
*Kodi crashes*
### Debug Log
<!--- Put your text below this line -->
<!--- A Debug Log is always mandatory when creating an issue. Provide one! -->
The Debug Log can be found here:
https://www.mediafire.com/file/hyc7axrxx...i.zip/file
orx
https://paste.kodi.tv/qujuzaxaro.kodi
## Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
<!--- How has this bug affected you? What were you trying to accomplish? -->
<!--- Put your text below this line -->
### Your Environment
Used Operating system:
<!--- Include as many relevant details about the environment you experienced the bug in -->
<!--- Put your text below this line. Checkboxes can easily be ticked once issue is created -->
- [ ] Android
- [ ] iOS
- [ ] Linux
- [ ] OSX
- [ ] Raspberry-Pi
- [X] Windows
- [ ] Windows UWP
- Operating system version/name: Windows 10 - fully updated
- Kodi version: 18.6 (also reproduced on 18.4 and 26.03 nightly)
<!--- End of this issue -->