https://bugs.kde.org/show_bug.cgi?id=462776
Bug ID: 462776 Summary: [REGRESSION] X11 file descriptors leak upon showing a notification until maximum reached Classification: Plasma Product: plasmashell Version: 5.26.3 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Notifications Assignee: plasma-b...@kde.org Reporter: hi-an...@yandex.ru CC: k...@privat.broulik.de Target Milestone: 1.0 SUMMARY This bug appeared after some update. Basically, Xorg have a bunch of these "/memfd:xshmfence (deleted)" fds, and their number keeps increasing over time, until no more graphical apps are able to start (there's a limit of 1024 file descriptors per process AFAIK). Restarting `plasmashell` resets their number. I've also seen other glitches, such as plasmashell hanging completely, or picom suddenly not showing a surface — but now that I found the problem with FDs, I suspect that may cause other ones as well. It's hard to pinpoint the version where it's appeared, mainly because I only yesterday figured out the problem with descriptors, and then upgraded. I know for sure the problem is present since 5.26.3, so I set this version for now. STEPS TO REPRODUCE 1. Log into a Xorg plasma session 2. Execute `sudo ls /proc/$(pgrep Xorg)/fd | wc -l` 3. Execute `notify-send hello` and wait for notification to disappear 4. Execute `sudo ls /proc/$(pgrep Xorg)/fd | wc -l` OBSERVED RESULT The number in step 4 is larger than one in step 2 EXPECTED RESULT The numbers in step 4 and 2 are the same WORKAROUND: Restarting plasmashell resets the number of FDs back: killall plasmashell && kstart5 plasmashell &>/dev/null & SOFTWARE/OS VERSIONS Linux/KDE Plasma: Archlinux KDE Plasma Version: 5.26.4 KDE Frameworks Version: 5.100.0 Qt Version: 5.15.7 -- You are receiving this mail because: You are watching all bug changes.