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: