LibreELEC / LibreELEC.tv

Just enough OS for KODI
http://libreelec.tv
2.24k stars 1.11k forks source link

[BUG] Error: EGL_BAD_PARAMETER and eglClientWaitSyncKHR with 21.0b2-Omega #8488

Closed heitbaum closed 5 months ago

heitbaum commented 8 months ago

Describe the bug

Commit https://github.com/LibreELEC/LibreELEC.tv/commit/61ddb717d0c23f2f9f2e7b1f452e3ef6545d6c05 introduced a bug when coming out of screen save.

nightly-20231203-0ee24f5 works nightly-20231206-2b7c647 nightly-20231208-5b2d3ec works nightly-20231210-e521363 broken nightly-20231211-5b9bf39 broken nightly-20231217-1833aee broken

https://github.com/LibreELEC/LibreELEC.tv/compare/5b2d3ec...e521363

How to reproduce

Steps to reproduce the behavior:

  1. On main menu, wait for dim, then black screen
  2. LG Screen Saver Screen comes up
  3. Press back arrow on the Kodi remote
  4. Screen returns to dim (and previous image displays) - STUCK
  5. Audio “clicking works”

Information

Log file

Context

heitbaum commented 8 months ago
heitbaum commented 5 months ago

User reported. Getting user to test - https://forum.libreelec.tv/thread/28349-kodi-black-screen-after-waking-from-sleep/?postID=190197#post190202

smp79 commented 3 months ago

I think this is triggered by a HDMI hotplug detect. Can you test if this fixes it?

diff --git a/drivers/gpu/drm/i915/display/intel_hotplug.c b/drivers/gpu/drm/i915/display/intel_hotplug.c
index d9ec349..3b4a947 100644
--- a/drivers/gpu/drm/i915/display/intel_hotplug.c
+++ b/drivers/gpu/drm/i915/display/intel_hotplug.c
@@ -973,10 +973,10 @@ static void queue_work_for_missed_irqs(struct drm_i915_private *i915)

 void intel_hpd_enable_detection_work(struct drm_i915_private *i915)
 {
-   spin_lock_irq(&i915->irq_lock);
-   i915->display.hotplug.detection_work_enabled = true;
-   queue_work_for_missed_irqs(i915);
-   spin_unlock_irq(&i915->irq_lock);
+   // spin_lock_irq(&i915->irq_lock);
+   // i915->display.hotplug.detection_work_enabled = true;
+   // queue_work_for_missed_irqs(i915);
+   // spin_unlock_irq(&i915->irq_lock);
 }

 void intel_hpd_disable_detection_work(struct drm_i915_private *i915)
heitbaum commented 3 months ago

I think this is triggered by a HDMI hotplug detect. Can you test if this fixes it?

I have tested using my dev tree (linux-6.9, Omega (Release), gcc-14.1.0)

smp79 commented 1 month ago

https://github.com/xbmc/xbmc/pull/25588 looks promising