https://bugs.kde.org/show_bug.cgi?id=512444

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #13 from [email protected] ---
Similar symptoms here, Fedora 44: plasma-workspace/kwin 6.8.2, Mesa 26.2.6,
Qt/qtwayland 6.11.2, libwayland 1.26.0. AMD Phoenix iGPU, sometimes external
monitor via
DisplayLink (evdi).

It started after:
1. The DisplayLink monitor, my only enabled output, went into DPMS off. Once,
   kwin logged "Failed to create a framebuffer: Invalid argument" a few seconds
   before. Most DPMS-off events don't trigger it.
2. Lid closed with the monitor unplugged (no outputs), then a Bluetooth
keyboard
   reconnected and woke the session. (No core for this one.)
Restarting plasmashell always ended it; waking a screen sometimes did.

While stuck: plasmashell ~100% CPU, kwin_wayland ~65%. In plasmashell the gl0,
WaylandEventThr and ClipboardThread threads each did 70-95k context switches/s.

Two cores (SIGABRT from systemd after plasmashell ignored the stop timeout)
show the same path on the Mesa glthread worker:
  wl_display_roundtrip_queue        wayland-client.c:1479
  wait_for_free_buffer              egl/drivers/dri2/platform_wayland.c:1292
  get_back_bo                       platform_wayland.c:1328
  update_buffers_if_needed          platform_wayland.c:1567
  dri_image_drawable_get_buffers    gallium/frontends/dri/dri2.c:157
  dri_st_framebuffer_validate -> st_Clear -> glthread_unmarshal_batch
with QSGRenderThread waiting in QWaylandGLContext::swapBuffers.

There Mesa finds no unlocked color buffer and calls wl_display_roundtrip_queue
in a loop until a wl_buffer.release frees one, which would explain the load on
both sides. So buffers apparently aren't released while the output is off or
absent; I can't tell whether that's KWin, Mesa or Qt (maybe QTBUG-126365).

Attaching symbolized stacks of both cores.

Disclosure: AI-assisted analysis; stacks and measurements are from my machine.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to