Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 7 tasks
chcore opened this issue May 16, 2024 · 7 comments
Open
1 of 7 tasks
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@chcore
Copy link

chcore commented May 16, 2024

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.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label May 16, 2024
@smp79
Copy link
Contributor

smp79 commented May 17, 2024

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

@chcore
Copy link
Author

chcore commented May 17, 2024

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.

@chcore
Copy link
Author

chcore commented May 17, 2024

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

kodi_debug_log_windowing.log

@smp79
Copy link
Contributor

smp79 commented May 17, 2024

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?

@chcore chcore changed the title The Kodi GUI freezes/hangs regularly The Kodi GUI freezes/hangs when the display is put into sleep mode May 17, 2024
@chcore
Copy link
Author

chcore commented May 17, 2024

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.

@chcore chcore changed the title The Kodi GUI freezes/hangs when the display is put into sleep mode "Put display to sleep when idle" option causes the Kodi GUI to freeze/hang May 17, 2024
@chcore
Copy link
Author

chcore commented May 20, 2024

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

@mnvoronin
Copy link

mnvoronin commented May 25, 2024

Stumbled upon this thread while researching the same issue.

Happens every time with my Kodi. Screensaver is set to dim after 3 minutes and turn the screen off after 30. Every time I wake it up the screen stays dimmed and doesn't seem to react, though the navigation sounds can still be heard when using the arrow buttons.

Environment:
Kodi 21.0-Omega on x86_64 installed from official flatpak repo, no modifications to the package. Updated yesterday (Friday 24th of May) and checked again today to confirm the issue still happens.
No desktop manager of any sort, running raw on whatever the package pulled as a dependency (which is Freedesktop 23.08.17).
The service is started by simply running "flatpak run tv.kodi.Kodi" and it seems to handle the graphics by itself.
Ubuntu 22.04 with all updates applied.

I can provide logs if you tell me what I need to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

3 participants