Over the past few weeks (months maybe?) I keep running into this.
If I try and open something new, the window will flash up in the task bar and then never actually open.
If I try and edit an image in GIMP, it'll either fail to open, or report a plugin failure when trying to save.
Running manually from a shell results in
Maximum number of clients reachedCannot open display:
Activity
04-Dec-22 09:09
assigned to @btasker
04-Dec-22 09:09
moved from LAN#84
04-Dec-22 09:09
assigned to @btasker
04-Dec-22 09:10
I had initially thought it might have been an issue with
xdg-desktop-portal
- my1Password
browser extension was configured to try and communicate with the local app (which isn't installed/running). I thought perhaps it was stuck in a loop trying to connect.But, having found the option, I turned it off, and have run into the same issue today.
04-Dec-22 09:25
Running
gives quite a lot: lsof.txt
Grepping that for connections
There's a very nice little snippet here to identify the source applications
There was a bug logged for
kded5
leaking X-Window connections earlier this year: https://bugs.kde.org/show_bug.cgi?id=453280, although the issue is apparently actually in kscreenIt sounds like the leak happens when monitors go into powersaving mode, or otherwise change
Restarting
kded5
withsystemctl
failsstatus
shows that it's hit the issue we're trying to fixKilling outright then
We're back to where we should be then
04-Dec-22 09:29
changed title from {-Optimus: -}Maximum number of clients reached Cannot open display: to Maximum number of clients reached Cannot open display:
04-Dec-22 09:33
The commit that fixes this is here.
That went into version
5.24.6
.Looks like Ubuntu has it