Does X-Window have a maximum number limit on clients?
For example, can you create "unlimited" number of evince processes with windows? If not, what places the limit?
For another example (although I will use wine clients as examples below, I think the answer might or might not depend on whether X clients are wine-related or not), on Lubuntu 18.04
$ evince my.pdf
Maximum number of clients reachedUnable to init server: Could not connect: Connection refused
Cannot parse arguments: Cannot open display:
$ wine PDFXCview.exe my.pdf
047d:fixme:ver:GetCurrentPackageId (0x32fbc4 (nil)): stub
Maximum number of clients reached047d:err:winediag:x11drv_init_thread_data x11drv: Can't open display: :0. Please ensure that your X server is running and that $DISPLAY is set correctly.
After I close some windows (either .exe program's windows or evince windows), I can open new windows (for other pdf files).
I have used the .exe program to open 102 windows, and evince to open 5 windows. Are the windows too many for the X server? How can I solve the problem?
Can I raise the maximum number limit? Is there some configuration setting that limits the number of clients? How can I reconfigure it?
I read https://askubuntu.com/questions/4499/how-can-i-diagnose-debug-maximum-number-of-clients-reached-x-errors and What is the max number of x-clients?, but still can't figure out my problem.
Thanks.