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

            Bug ID: 470898
           Summary: resource leak: the number of threads increases over
                    time, boundlessly
    Classification: Plasma
           Product: kwin
           Version: 5.27.5
          Platform: Debian stable
               URL: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037
                    268
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-x11-standalone
          Assignee: kwin-bugs-n...@kde.org
          Reporter: j...@jmuchemb.eu
  Target Milestone: ---

SUMMARY

After 17 days, the number of threads of /usr/bin/kwin_x11 process has exceeded
2700 and it keeps increasing. At the beginning of a session, the process starts
with 34 threads.

I could find that such leak happens when viewing videos fullscreen e.g. with
mpv. More precisely, when exiting fullscreen.

I found the issue because I configure a nproc limit to protect against
fork-bombs.

STEPS TO REPRODUCE
1. start mpv without --fs -> thread count does not change
2. switch to fullscreen -> usually -2 threads
3. leaves fullscreen -> usually +17 threads
4. exit mpv -> thread count does not change

ADDITIONAL INFORMATION

- Version 4:5.27.2 was affected too. I previously used 4:5.24.4 and I'm almost
sure it had no leak or it was not as severe.
- I do have a 4k intel display.
- I was unable to reproduce the issue inside qemu (didn't try 4k though, only
FHD).
- I found that the number of threads (initially & how fast it increases)
depends on the number of CPU. I have a i7-1260P (16 entries in /proc/cpuinfo).
- kwin_wayland is not affected. And wayland also fixes display corruption I had
with X11 (regularly, for less than 1s).

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

Reply via email to