| Summary: | Screen locking failed because of too many open files, but rest of system works fine | ||
|---|---|---|---|
| Product: | [Unmaintained] kscreenlocker | Reporter: | Thomas Murach <asiasuppenesser> |
| Component: | general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | grave | CC: | grahamperrin, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.27.4 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/-/commit/318e8b123954792886a1133396d014d59930dc4d | Version Fixed/Implemented In: | 6.0 |
| Sentry Crash Report: | |||
|
Description
Thomas Murach
2023-10-12 09:08:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/3413 Git commit 5df2fe17c80eff6fdfcbd8385954e5b88a0f30c5 by Harald Sitter. Committed on 03/11/2023 at 12:47. Pushed by sitter into branch 'master'. ksmserver: cap the amount of app restorations when we restore more than ΒΌ of RLIMIT_NOFILE (default 1024) of a single application it is incredibly likely that this application is being defective (e.g. GUIless apps participating in session management but also in autostarting -- resulting in ever multiplying instances). when in excess, refuse to start **all** restorations of the application (NOTE: this is why we loop everything twice) M +89 -15 ksmserver/server.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/5df2fe17c80eff6fdfcbd8385954e5b88a0f30c5 Git commit 318e8b123954792886a1133396d014d59930dc4d by Harald Sitter. Committed on 03/11/2023 at 12:47. Pushed by sitter into branch 'master'. ksmserver: never allow ICE connections to exhaust RLIMIT_NOFILE At most use `RLIMIT_NOFILE - 128`; the remainder is reserved for other uses like invoking the lock screen, other sockets etc. to implement this there's a trivial ref count on KSMConnection. When too many references are active we'll force close connections again right after creation M +21 -0 ksmserver/server.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/318e8b123954792886a1133396d014d59930dc4d |