Not sure what happened. I don't think it was due to the application
misbehaving because for example, I could only start a single instance of
glxgears. Starting a second produced the same errors. Also " xlsclients -d
:0 | wc -l" showed 0 clients connected, even with 1 glxgears window
running. After upgrading my video driver and restarting Xorg, it seems to
be fine. So I guess the problem was in the X server. The server had been
running for about 2 months, so maybe something got screwed up over time.
I've added '-terminate' to the server's init script hoping to prevent the
issue in the future.
This issue lead me to test exactly how many 3D windows I could open at
once. So I ran a script to see:
for i in `seq 1 24`; do
glxgears >& /dev/null &
sleep 1
done
Turns out that the max is 17 instances of glxgears. On starting the 18'th
instance, I get:
[VGL] ERROR: Could not send data to client. Client may have disconnected.
[VGL] ERROR: in send--
[VGL] 399: Broken pipe
So I guess the limit is in vglclient. However 17 should be more than
enough.
On Thu, Dec 5, 2013 at 5:28 PM, DRC <dcomman...@users.sourceforge.net>wrote:
> VirtualGL only opens one connection to :0 (or the specified 3D X server)
> the first time XOpenDisplay() is called, and it reuses that same
> connection for all subsequent 3D operations. Thus, VirtualGL is only 1
> "client" from the 3D X server's point of view. I think Xorg can have a
> max. of 256.
>
> Minimally, this appears to be due to an ill-behaved application,
> although it might be possible to work around it if I knew more about the
> underlying cause.
>
> Googling
> maximum number of clients reached x11
>
> reveals this page
>
> http://www.linuxquestions.org/questions/slackware-14/x11-maximum-number-of-clients-reached-864156/
> which has some potentially useful command lines that you might be able
> to use to further diagnose where all of the X11 connections are coming
> from.
>
>
> On 12/5/13 2:49 PM, Kevin Van Workum wrote:
> > I'm trying to run Visit (https://wci.llnl.gov/codes/visit/) and am
> > getting the following error:
> >
> > Maximum number of clients reached[VGL] ERROR: Could not open display :0.
> >
> > Visit tries to open several windows of which I guess at lease two are
> > trying to connect to :0. Is there a way around this?
> >
> > --
> > Kevin Van Workum, PhD
> > Sabalcore Computing Inc.
> > "Where Data Becomes Discovery"
> > http://www.sabalcore.com
> > 877-492-8027 ext. 11
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> VirtualGL-Users mailing list
> VirtualGL-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtualgl-users
>
--
Kevin Van Workum, PhD
Sabalcore Computing Inc.
"Where Data Becomes Discovery"
http://www.sabalcore.com
877-492-8027 ext. 11
--
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users