Re: Crash with DMX and Alpha

Brian Paul <[email protected]> Thu, 27 Mar 2008 18:23:46 -0600
Newsgroups gmane.comp.graphics.chromium.user
Message-ID <[email protected]>
Brian Thomas wrote:
> We are running chromium on a display wall using DMX.  It seems to be 
> working well except for when we try to get a display mode with an alpha 
> channel.  For example, using GLUT_ALPHA.  One example program crashes 
> with the following message:
> 
> X Error of failed request:  BadMatch (invalid parameter attributes)
>   Major opcode of failed request:  144 (GLX)
>   Minor opcode of failed request:  5 (X_GLXMakeCurrent)
>   Serial number of failed request:  19
>   Current serial number in output stream:  19
> 
> Removing GLUT_ALPHA causes it to run without error.  We have had this 
> problem for several months now and would appreciate any suggestions.

In your config file, try setting the 'default_visual' option for your 
render SPUs.  For example:

renderspu.Conf('default_visual', 'rgb, double, depth, stencil, alpha')


Otherwise, the problem is likely that the Cr version of 
glXChooseVisual() in opengl_stub/glx.c is returning a different GLX 
visual ID than what's being chosen in spu/render/renderspu_glx.c

You might try instrumenting the crChooseVisual() function in 
spu_loader/choosevisual.c to print the incoming attribute list and 
returned visual ID.  That might give a clue.

-Brian


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace