[kwin] [Bug 470898] resource leak: the number of threads increases over time, boundlessly

2023-06-12 Thread Julien Muchembled
https://bugs.kde.org/show_bug.cgi?id=470898

--- Comment #3 from Julien Muchembled  ---
Created attachment 159609
  --> https://bugs.kde.org/attachment.cgi?id=159609=edit
strace output just after kwin_x11 has started

During the capture, I used mpv and went/left fullscreen twice. If I look at
correctly, leaked threads are stuck at a futex syscall so it may not be useful.

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

[kwin] [Bug 470898] resource leak: the number of threads increases over time, boundlessly

2023-06-12 Thread Julien Muchembled
https://bugs.kde.org/show_bug.cgi?id=470898

--- Comment #2 from Julien Muchembled  ---
(In reply to David Edmundson from comment #1)
> How did you see how many threads were being used?

With `ls |wc -l` within the `/proc//task/` folder of kwin_x11 process.

> Could you reproduce this with firefox going fullscreen and back?

No issue with Firefox. I even tried a youtube video.

BTW, I only mentioned mpv as an example but there's also vlc.

To get more information, I can try patches against 4.27.5 if you have any.

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

[kwin] [Bug 470898] New: resource leak: the number of threads increases over time, boundlessly

2023-06-11 Thread Julien Muchembled
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.

[kruler] [Bug 36100] alternate units of measurement for kruler (inches)

2023-06-10 Thread Julien Muchembled
https://bugs.kde.org/show_bug.cgi?id=36100

Julien Muchembled  changed:

   What|Removed |Added

 CC||j...@jmuchemb.eu

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

[plasmashell] [Bug 341143] Wallpaper on every desktop is gone.

2017-08-26 Thread Julien Muchembled
https://bugs.kde.org/show_bug.cgi?id=341143

Julien Muchembled <j...@jmuchemb.eu> changed:

   What|Removed |Added

 CC||j...@jmuchemb.eu

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