Maximum number of clients reached for Display :0

Questions about Wine on Linux
Locked
broadstairs
Level 2
Level 2
Posts: 10
Joined: Sat Oct 24, 2009 7:39 am

Maximum number of clients reached for Display :0

Post by broadstairs »

I have a Linux box which had been running with no issues for several months but when I started to run Wine for some Windows programs it would crash with

Code: Select all

Maximum number of clients reached
Maximum number of clients reached0024:err:winediag:x11drv_init_thread_data x11drv: Can't open display: :0.
and the only way our of this is to reboot. I believe this openSUSE Leap 15.4 system has a default number of clients for the X server set as 512 (there is no setting in the X config files so it will be default). I have been running xrestop on display :0 periodically now since the last reboot and each time the windows programs run it increases the number of clients so it started around 80 after boot up and is now at 123.

The only new thing added to this system is the Wine setup which uses a Virtual Desktop to run a number of windows programs one or two at a time. The strange thing about the xrestop output is that the increase seems to be shown by entries like

Code: Select all

122 - <unknown> ( PID:  ?   ):
        res_base      : ox400000
        res_mask      : ox1fffff
        windows       : 0
        GCs           : 0
        fonts         : 0
        pixmaps       : 0
        pictures      : 0
        glyphsets     : 0
        colormaps     : 0
        passive grabs : 0
        cursors       : 0
        unknowns      : 0
        pixmap bytes  : 0
        other bytes   : ~0
        total bytes   : ~0
123 - <unknown> ( PID:  ?   ):
        res_base      : ox200000
        res_mask      : ox1fffff
        windows       : 0
        GCs           : 0
        fonts         : 0
        pixmaps       : 0
        pictures      : 0
        glyphsets     : 0
        colormaps     : 0
        passive grabs : 0
        cursors       : 0
        unknowns      : 0
        pixmap bytes  : 0
        other bytes   : ~0
        total bytes   : ~0
Does anyone have any ideas please as to why this might be happening?

Stuart
Locked