On Jun 30, 5:19 pm, "jbwest" <jbw...@[EMAIL PROTECTED]
> wrote:
> "mathieu" <mathieu.malate...@[EMAIL PROTECTED]
> wrote in message
>
>
news:6ed1cefc-393a-4846-8217-0632f447ed34@[EMAIL PROTECTED]
>
>
>
> > Hi there,
>
> > I have a program that open *one* X11 'Display' and then within a
> > loop I create a X11 'Window' & an associated GLXContext.
> > It works fine for the first ~450 windows but simply seg fault on the
> > glXMakeCurrent call with:
>
> > ...
> > The error was 'GLXBadDrawable'.
> > (Details: serial 36264 error_code 158 request_code 143 minor_code
> > 26)
> > ...
>
> > Is there some kind of maximum number of glx context I can open
> > within the same Display ? If so how can I request this max number ?
>
> > Thanks
> > -Mathieu
>
> There's always some maximum limit of windows imposed by your windowing
> system.
> Nope, can't ask fer it. A windowing system limit depends (in x11) on the
> x-server's limits,
> and your app isn't the only user of X11, so theres no one per-app limit.
X
> server probably out of memory.
>
> It's like asking if there's a limit on how much memory you can allocate.
> There is, but the only way to know is
> to get memory until it fails...
Ok I was not clear let me rephrase that.
Using nvidia opengl implementation the call to glXMakeCurrent fails at
around ~450 windows. While if I LD_PRELOAD the Mesa3D implementation
then I have virtually not limit (I stopped testing at ~2500 window).
And just to avoid any further misundertanding I am not talking about
the 'Xlib: maximum number of clients reached' issue (when you are
calling too many time XOpenDisplay). I only have one instance of a
Display*.
Thanks again
-Mathieu


|