Xfwm4 memory leak since 4.20?

I recently went from manjaro stable to testing which included an upgrade to xfce4 4.20 and since then xfwm4 is eating a lot of RAM.
I have rebooted several times and also tried disabling the compositor but that’s not it.
Currently its sitting at 21GB.

When i restart xfwm4 the problem is fixed only temporary.
How can i troubleshoot this?

I have display compositing disabled and mine is steady at 51 MiB. Unstable branch, AMD graphics.

Screenshot_2025-02-06_19-02-04

It seems like an Nvidia issue:

A full inxi output may be of some help here.

1 Like

Most likely issues with the proprietary Nvidia drivers. tested with FOSS drivers yet?

1 Like

I am with Intel HD Graphics 4000 (IVB GT2)
and xfwm4 is ok:

sudo ps_mem | grep xfwm4
 20.1 MiB +   1.4 MiB =  21.5 MiB	xfwm4
1 Like

xfwm4 --replace always running / Desktop / Xfce Forums

It is either saved in your sessions cache or you have it set up to do so in your autostart applications. Usually “xfwm4 --replace” is run to take over window management from another window manager (not sure if you’ve been testing other window managers).

The fix is to first, see if there is an xfwm4 entry at Settings Manager > Session and Startup > Application Autostart. If so disable/delete it. Secondly, clear your sessions cache. The best way to do this is to delete the contents of ~/.cache/sessions while not logged in. So, from another virtual terminal (VT1, 2, 3, etc.).

1 Like

Yes it was the prop. nvidia-driver, thank you.

I was wondering about the replace-option of “xfwm4 --replace” myself but i don’t have anything in autostart, so that seems how it is started for some reason.

Option --replace suggests that xfwm4 is replacing another window manager
Option would be needed to run xfwm4 on another DE (e.g. replacing sddm on Manjaro KDE)
But not needed if xfwm4 is default window manager

$ xfconf-query -c xfce4-session -p /sessions/Failsafe/Client0_Command 
Value is an array with 1 items:

xfwm4

xfce4-session:preferences - Session [Xfce Docs]

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.