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

            Bug ID: 520377
           Summary: kwin_wayland memory leak and OOM kill after long idle
                    with multi-monitor Wayland setup on Intel Arc Meteor
                    Lake
    Classification: Plasma
           Product: kwin
      Version First git-stable-Plasma/6.3
       Reported In:
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: compositing
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 192436
  --> https://bugs.kde.org/attachment.cgi?id=192436&action=edit
Logs and diagnostics for kwin_wayland OOM, DRM/i915 timeout events, and
multi-monitor Wayland instability on Intel Arc Meteor Lake

DESCRIPTION

After several hours of idle time with the screen locked and displays sleeping,
the Wayland desktop session becomes unstable and eventually crashes. The issue
appears correlated with long idle/display sleep periods in a complex
multi-monitor setup using Intel Arc Meteor Lake graphics.

The failure initially presents as:

* delayed monitor wakeup (sometimes 30-45 seconds)
* monitor corruption/artifacts after wake
* Plasma session instability
* applications disappearing after unlock

Investigation showed that kwin_wayland memory usage grows continuously until
the kernel OOM killer terminates the compositor.

Relevant log excerpts:

Out of memory: Killed process 80673 (kwin_wayland)
total-vm:53863844kB
anon-rss:26566788kB

plasma-kwin_wayland.service:
25.4G memory peak
23.9G memory swap peak

After kwin_wayland is killed:

* plasmashell crashes
* multiple Plasma services restart
* Wayland display connections break
* SDDM recreates the session

Kernel logs also contain:

* flip_done timed out
* commit wait timed out
* atomic commit failed
* eDP-1 timeout events
* DRM/i915 timeout behavior

The issue does not occur during active desktop usage. It appears strongly
correlated with long idle periods and display sleep/wake activity.

STEPS TO REPRODUCE

1. Use a multi-monitor Wayland setup with Intel Arc Meteor Lake graphics
2. Leave system idle for several hours with screen locked and displays sleeping
3. Wake displays and unlock session

OBSERVED RESULT

* Delayed display wakeup
* Display corruption/artifacts
* Plasma session instability
* Running desktop applications disappear
* kwin_wayland memory usage grows extremely large
* Kernel OOM killer terminates kwin_wayland
* Plasma session partially restarts

EXPECTED RESULT

The Wayland session should resume normally after long idle periods without
memory growth, compositor crashes, display corruption, or session restart
behavior.

SOFTWARE/OS VERSIONS

Operating System:
Kubuntu 26.04
Linux kernel 7.0.0-15-generic

KDE Plasma Version:
6.6.4

KDE Frameworks Version:
6.24.0

Qt Version:
6.10.2

ADDITIONAL INFORMATION

Hardware:

* Intel Arc Graphics (Meteor Lake)
* Multiple external DisplayPort monitors through dock/MST
* One monitor rotated vertically
* Mixed scaling and resolutions

Mitigations attempted:

* Disabled PSR (enable_psr=0)
* Re-enabled FBC (enable_fbc=1)

Disabling PSR improved recovery behavior somewhat, but the underlying issue
remains.

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

Reply via email to