Public bug reported:

Ubuntu 24.04 (noble), picom 10.2-3build2, Xorg on Intel graphics, backend = 
"xrender",
shadows and rounded corners enabled.

picom leaks XRender Picture objects inside the X server. Measured with xrestop:
after 2 days 10 hours, picom held 165,635 pictures and 15.3 GB of pixmap memory 
in Xorg.
Xorg then sat at 98-100% CPU (perf: ~58% in GetXIDRange) and the memory went to 
swap;
the desktop became unusable and Xorg had to be killed.

Reproduction (about 2.5 minutes, on a private Xvfb display):
 1. Xvfb :7, then picom --backend xrender with shadows and corner-radius enabled
 2. three "xclock -update 1" windows, plus small xlogo windows opening and 
closing in a loop
 3. xrestop -b -m 1 every 30 s, read picom's "pictures" count

Result, same test each time:
 picom 10.2, xrender: 262 -> 739 pictures in 150 s (about +3 per second, never 
stops)
 picom 10.2, glx:     flat at 2
 picom 13 (built from upstream source), xrender: 263 -> 293, then flat
 picom 13, glx:       flat at 0

Upstream's v11 changelog lists "Many memory/resource leak fixes" (#977 #978 
#979 #980 #982
#985 #992 #1009 #1022). Please consider updating picom in noble, or backporting 
those fixes.
Workaround: backend = "glx", or restart picom periodically.

** Affects: picom (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2177231

Title:
  picom 10.2 (noble) leaks XRender Pictures with backend = "xrender";
  fixed upstream in v11+

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/picom/+bug/2177231/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to