[Bug 1199941] New: kmozillahelper uses up all X clients given enough logout/login cycles
http://bugzilla.opensuse.org/show_bug.cgi?id=1199941 Bug ID: 1199941 Summary: kmozillahelper uses up all X clients given enough logout/login cycles Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Firefox Assignee: factory-mozilla@lists.opensuse.org Reporter: marix@marix.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- A couple days ago I ran into the issue of applications no longer starting reliably on my openSUSE Leap 15.4 system. Launching applications like "glxinfo" or "xlsclients" would fail with the error message `Maximum number of clients reached: unable to open display ":0"`. In searching for the error message I came across https://unix.stackexchange.com/questions/250920/debugging-maximum-number-of-.... Using the method described there to get the application using up the most x client connections, I found that kmozillahelper was using up more than 170 of them. Closing Firefox and one `killall kmozillahelper` later I could reliably start applications again. While my immediate problem is gone, it seems that there seems to be a leak of kmozillahelper process instances when restoring a KDE session after having logged out with an open Firefox. I.e., on third login after the killall, a `ps aux | grep kmozillahelper` will produce the following: marix 5109 0.0 0.1 413872 44192 ? Sl 11:10 0:00 /usr/lib/mozilla/kmozillahelper -session 10ca646469000165348143300000027740024_1653489712_189016 marix 5144 0.0 0.1 413872 44184 ? Sl 11:10 0:00 /usr/lib/mozilla/kmozillahelper -session 10ca646469000165348930800000285810021_1653489712_189016 marix 6070 0.2 0.1 416140 46532 ? Sl 11:10 0:00 /usr/lib/mozilla/kmozillahelper Stopping Firefox will kill the process that does not have a -session argument. However, if I logout without closing Firefox first, the next login will show four kmozillahelper processes of which three have a with -session. The two already existing in the current session, and a third one with a new sessionid. As the session-id-less process instance is properly cleaned up if Firefox is closed during a session, the problem can be worked around by closing Firefox before logging out. However, this kind of contradicts the point of having resumable sessions. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199941 http://bugzilla.opensuse.org/show_bug.cgi?id=1199941#c1 --- Comment #1 from Matthias Bach <marix@marix.org> --- Note that while I only noticed the issue a couple days ago, the problem has probably been existing longer, as it takes a while to gather 170 logins. I'd suspect the issue has existed for at least two months, if not longer. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1199941 http://bugzilla.opensuse.org/show_bug.cgi?id=1199941#c2 Matthias Bach <marix@marix.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marix@marix.org --- Comment #2 from Matthias Bach <marix@marix.org> --- I finally had some time to look into this again and it seems like this was fixed a while back���in 2020���for Factory with release 5.0.6 of kmozillahelper via https://github.com/openSUSE/kmozillahelper/commit/7dd7f451d69374318162570821.... As Leap 15.4 is still shipping 5.0.5, I think it would be great if we could bump that to 5.0.6 for an easy fix for everyone that might not even be aware of why they suddenly can no longer start further apps. Looking at the fix there's also a simple workaround for anyone immediately affected: Add "/usr/lib/mozilla/kmozillahelper" to the list of applications to be ignored by KDE session management in the KDE System Settings / Startup and Shutdown / Desktop Session. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com