xbmc / xbmc

Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and powerful skinning engine, it's available for Android, BSD, Linux, macOS, iOS, tvOS and Windows.

Home Page:https://kodi.tv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Put display to sleep when idle" option causes the Kodi GUI to freeze/hang

chcore opened this issue · comments

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

When Kodi triggers its power saving feature (not the screen saver, but the "Put display to sleep when idle" option) after some minutes of inactivity, it causes the GUI to freeze completely, requiring me to SSH into the system and restart the application.

Unplugging and re-plugging the HDMI cable does not fix the issue, only a restart of the application does.

I am using a slightly modified build of the official flatpak, with the only change being using GLES instead of GL.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

The GUI should not freeze when Kodi puts the display to sleep.

Actual Behavior

The GUI freezes and does not respond to input.

Possible Fix

To Reproduce

Steps to reproduce the behavior:

  1. Disable the screensaver, and enable the "Put display to sleep" option
  2. Wait until the display is put to sleep. My TV (LG G1) doesn't turn off immediately, but just shows some static rotating images for a while. The TV does not need to be powered off to reproduce this issue, and the same thing happens even if it is already powered off when the sleep mode is triggered by Kodi.
  3. Provide some input so as to wake Kodi and unsleep the TV (and turn on the TV if it is powered off). Find that the GUI is frozen.

Debuglog

The debuglog can be found here:

I turn my TV on towards the end of the debug log, and find the GUI to be frozen.

kodi_freeze_debug.log

Screenshots

Here are some links or screenshots to help explain the problem:

N/A

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

N/A

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • macOS

  • Windows

  • Windows UWP

  • Operating system version/name: Fedora 40

  • Kodi version: 21 (Flatpak)

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

commented

Does this happen if you unplug and replug HDMI cable? I think this is triggered by a HDMI hotplug event.

Does this happen if you unplug and replug HDMI cable? I think this is triggered by a HDMI hotplug event.

Just tested it several times. Unplugging and replugging does not fix it, it's still frozen.

Here's another debug log, but with extra logging for the "windowing" component, as requested in #23921.

kodi_debug_log_windowing.log

commented

It seems to occur while my TV is powered off

Is there an easy way to reproduce the issue? Does unplugging and replugging HDMI make it freeze? Does power cycling the TV make it freeze?

I found some time to test this. Power cycling the TV and/or unplugging the HDMI cable does not reproduce this issue.

I can confirm the "Put display to sleep when idle" option is the culprit, and is 100% reproducible.

Reverting #23921 like in LibreELEC/LibreELEC.tv#8488 fixes the issue for me too.