Hello Folks,
It's me again with weird issues... This time I'm not sure on how to provide relevant outputs or info so please indulge me on what you'd need to read in order to investigate this issue.
I'm going to relate as much as I can to explain the events that seems to trigger this memory leak.
Last week I've almost finished my rice setup from artix-openrc base, using bspwm / picom / polybar. Then I did a sys upgrade running pacman -Syu
After that I noticed my RAM usage was getting full, so I've been troubleshooting and trying to disable apps from polybar / bspwm, but nothing changes.
What I could figure is that the memory leak happens when I start any GUI related application, Xorg starts to eat all my memory. Call it the browser or even a terminal (tried with gnome-terminal and xfce4-terminal). It doesn't happen straight away after launching X server (startx) and openning a terminal, for example, but at some point (I don't know if it's arbitrary tbh) it starts to leak to the point that all ram gets used and I get a completely dummy system.
When checking with command free -m I see the
shared
and
buff/cache
filling up at the same time the
free
column goes down in favour of filling up
used
I'm using a Lenovo T14 AMD Gen2 with artix 5.17.3 kernel on base openrc ( bspwm / polybar / picom )
Let me know what else can I provide and how to troubleshoot this issue which is a complete blocker.
Thanks in advance!
some outputs
uname -a
Linux iddqd 5.17.3-artix1-1 #1 SMP PREEMPT Thu, 14 Apr 2022 18:16:36 +0000 x86_64 GNU/Linux
Pacman.log output from the theoretical upgrade that broke Xorg.
[2022-04-15T00:06:27+0200] [PACMAN] Running 'pacman -Syu'
[2022-04-15T00:06:27+0200] [PACMAN] synchronizing package lists
[2022-04-15T00:06:31+0200] [PACMAN] starting full system upgrade
[2022-04-15T00:06:37+0200] [ALPM] running '60-mkinitcpio-remove.hook'...
[2022-04-15T00:06:37+0200] [ALPM] transaction started
[2022-04-15T00:06:37+0200] [ALPM] upgraded tzdata (2021e-1 -> 2022a-1)
[2022-04-15T00:06:37+0200] [ALPM] upgraded glibc (2.35-2 -> 2.35-3)
[2022-04-15T00:06:37+0200] [ALPM-SCRIPTLET] Generating locales...
[2022-04-15T00:06:38+0200] [ALPM-SCRIPTLET] en_US.UTF-8... done
[2022-04-15T00:06:38+0200] [ALPM-SCRIPTLET] Generation complete.
[2022-04-15T00:06:38+0200] [ALPM] upgraded libffi (3.4.2-4 -> 3.4.2-5)
[2022-04-15T00:06:38+0200] [ALPM] upgraded util-linux-libs (2.37.4-1 -> 2.38-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded zlib (1:1.2.11-5 -> 1:1.2.12-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded libsysprof-capture (3.42.1-3 -> 3.44.0-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded glib2 (2.70.4-2 -> 2.72.0-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded xz (5.2.5-2 -> 5.2.5-3)
[2022-04-15T00:06:38+0200] [ALPM] upgraded libtiff (4.3.0-1 -> 4.3.0-2)
[2022-04-15T00:06:38+0200] [ALPM] upgraded shared-mime-info (2.0+115+gd74a913-1 -> 2.0+144+g13695c7-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded gdk-pixbuf2 (2.42.6-2 -> 2.42.8-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded expat (2.4.7-1 -> 2.4.8-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded harfbuzz (4.0.1-1 -> 4.2.0-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded freetype2 (2.11.1-1 -> 2.12.0-1)
[2022-04-15T00:06:38+0200] [ALPM] upgraded fontconfig (2:2.13.96-1 -> 2:2.14.0-1)
[2022-04-15T00:06:38+0200] [ALPM-SCRIPTLET] Rebuilding fontconfig cache...
[2022-04-15T00:06:41+0200] [ALPM] upgraded libx11 (1.7.3.1-1 -> 1.7.5-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded cairo (1.17.4-5 -> 1.17.6-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded pango (1:1.50.5-1 -> 1:1.50.6-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded librsvg (2:2.52.7-1 -> 2:2.54.0-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded gtk-update-icon-cache (1:4.6.1-3 -> 1:4.6.2-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded adwaita-icon-theme (41.0-1 -> 42.0-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded alsa-card-profiles (1:0.3.48-1 -> 1:0.3.50-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded amd-ucode (20220309.cd01f85-1 -> 20220411.705f19a-1)
[2022-04-15T00:06:41+0200] [ALPM] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2022-04-15T00:06:41+0200] [ALPM] upgraded artix-mirrorlist (20220310-1 -> 20220325-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded libudev (250.3-1 -> 250.4-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded openssl (1.1.1.m-1 -> 1.1.1.n-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded krb5 (1.19.2-2 -> 1.19.3-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded at-spi2-core (2.42.0-1 -> 2.44.0-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded atk (2.36.0-1.1 -> 2.38.0-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded ca-certificates-mozilla (3.76-1 -> 3.77-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded curl (7.82.0-1 -> 7.82.0-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded binutils (2.38-3 -> 2.38-4)
[2022-04-15T00:06:41+0200] [ALPM] upgraded bluez-libs (5.63-2 -> 5.64-2)
[2022-04-15T00:06:41+0200] [ALPM] upgraded esysusers (250.3-1 -> 250.4-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded etmpfiles (250.3-1 -> 250.4-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded libusb (1.0.25-2 -> 1.0.26-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded hwdata (0.357-1 -> 0.358-1)
[2022-04-15T00:06:41+0200] [ALPM] upgraded kmod (29-2 -> 29-3)
[2022-04-15T00:06:41+0200] [ALPM] upgraded flashrom (1.2-2 -> 1.2-3)
[2022-04-15T00:06:41+0200] [ALPM] upgraded libstemmer (2.2.0-1 -> 2.2.0-2)
[2022-04-15T00:06:42+0200] [ALPM] upgraded libxmlb (0.3.7-1 -> 0.3.8-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded python (3.10.2-1 -> 3.10.4-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded libarchive (3.6.0-1 -> 3.6.1-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded json-glib (1.6.6-1 -> 1.6.6-2)
[2022-04-15T00:06:42+0200] [ALPM] upgraded util-linux (2.37.4-1 -> 2.38-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded udev (250.3-1 -> 250.4-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded gnutls (3.7.3-1 -> 3.7.4-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded gobject-introspection-runtime (1.70.0-5 -> 1.72.0-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded libgpg-error (1.44-1 -> 1.45-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded libgcrypt (1.9.4-1 -> 1.10.1-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded sqlite (3.38.0-1 -> 3.38.2-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded libsecret (0.20.5-1 -> 0.20.5-2)
[2022-04-15T00:06:42+0200] [ALPM] upgraded fwupd (1.7.6-1 -> 1.7.7-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded gc (8.2.0-2 -> 8.2.0-3)
[2022-04-15T00:06:42+0200] [ALPM] upgraded perl (5.34.0-3 -> 5.34.1-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded git (2.35.1-1 -> 2.35.2-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded gsettings-desktop-schemas (41.0-1 -> 42.0-1)
[2022-04-15T00:06:42+0200] [ALPM] upgraded glib-networking (1:2.70.1-1 -> 1:2.72.0-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded go (2:1.17.8-1 -> 2:1.18.1-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded groff (1.22.4-6 -> 1.22.4-7)
[2022-04-15T00:06:43+0200] [ALPM] upgraded grub (2:2.06-4 -> 2:2.06-5)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libxcursor (1.2.0-2.1 -> 1.2.1-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libepoxy (1.5.9-1 -> 1.5.10-1.1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded wayland (1.20.0-1 -> 1.20.0-2)
[2022-04-15T00:06:43+0200] [ALPM] upgraded vulkan-icd-loader (1.3.207-1 -> 1.3.208-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded mesa (21.3.7-2 -> 22.0.1-3)
[2022-04-15T00:06:43+0200] [ALPM] upgraded gtk3 (1:3.24.33-1 -> 1:3.24.33-2)
[2022-04-15T00:06:43+0200] [ALPM] upgraded gzip (1.11-1 -> 1.12-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded imlib2 (1.8.0-1.1 -> 1.8.1-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded inxi (3.3.12-1 -> 3.3.15-1)
[2022-04-15T00:06:43+0200] [ALPM] installed libbpf (0.7.0-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libnetfilter_conntrack (1.0.8-1.1 -> 1.0.9-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded iproute2 (5.16.0-1 -> 5.17.0-2)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libtool (2.4.6+59+gb55b1cc8-2 -> 2.4.7-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libsndfile (1.0.31-1 -> 1.1.0-2)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libcanberra (0.30+2+gc0620e4-5 -> 1:0.30+r2+gc0620e4-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libevdev (1.12.0-1 -> 1.12.1-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libical (3.0.14-1 -> 3.0.14-2)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libwacom (2.1.0-1 -> 2.2.0-1)
[2022-04-15T00:06:43+0200] [ALPM] upgraded libinput (1.20.0-1 -> 1.20.0-2)
[2022-04-15T00:06:44+0200] [ALPM] upgraded linux (5.16.14.artix1-1 -> 5.17.2.artix3-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded linux-firmware-whence (20220309.cd01f85-1 -> 20220411.705f19a-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded linux-firmware (20220309.cd01f85-1 -> 20220411.705f19a-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded man-db (2.10.1-1 -> 2.10.2-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded nspr (4.33-1 -> 4.33-2)
[2022-04-15T00:06:44+0200] [ALPM] upgraded nss (3.76-1 -> 3.77-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded openssh (8.9p1-1 -> 9.0p1-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded pavucontrol (1:5.0-1 -> 1:5.0+r35+g964f298-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded pipewire (1:0.3.48-1 -> 1:0.3.50-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded pipewire-alsa (1:0.3.48-1 -> 1:0.3.50-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded pipewire-pulse (1:0.3.48-1 -> 1:0.3.50-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded polybar (3.6.1-1 -> 3.6.2-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded python-cairo (1.20.1-3 -> 1.21.0-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded vim-runtime (8.2.4464-1 -> 8.2.4651-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded vim (8.2.4464-1 -> 8.2.4651-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded vte-common (0.66.2-1 -> 0.68.0-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded vte3 (0.66.2-1 -> 0.68.0-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded wpa_supplicant (2:2.10-3 -> 2:2.10-4)
[2022-04-15T00:06:44+0200] [ALPM] upgraded xorg-iceauth (1.0.8-2.1 -> 1.0.9-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded xorg-mkfontscale (1.2.1-2.1 -> 1.2.2-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded xorg-setxkbmap (1.3.2-2.1 -> 1.3.3-1)
[2022-04-15T00:06:44+0200] [ALPM] upgraded xorg-xdpyinfo (1.3.2-4 -> 1.3.3-4)
[2022-04-15T00:06:44+0200] [ALPM] upgraded xorg-xwayland (22.1.0-1 -> 22.1.1-1)
Found the culprit using xrestop, issue seems to lay on picom, will report this upstream.
As a temporary workaround I've stopped launching picom --experimental-backends
Possible cause and solution can be found here:
https://superuser.com/questions/1007807/xdg-open-hogging-the-cpu-by-forking-itself-endlessly
back in the day when i used openbox i ran into this same error. i used xdg-utils-mimeo to solve the issue. It's in the aur also mimeo may also resolve it. or maybe install them both? it's been a long time since i used openbox and had that issue but it solved it for me that way. If you got nothing resolved it could be worth the few minutes to build them
Thanks for your replies.
echo $BROWSER returns blank. Not sure that is related to my issue, will dig further, but for now just disabling the experimental backends from picom is back to normal performance.
Also see: https://forum.artixlinux.org/index.php/topic,3915.msg25424.html#msg25424
Same issue?
It may well be that your inconvenience is not
xdg-open infinity loop at all.
But instead of guessing, it would be much better to monitor the running processes.
If you haven't installed system monitoring software yet, now would be a good time to do it.