Re: [AD] SF.net SVN: alleg:[13182] allegro/branches/4.9/src/x/xglx_config.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, 2010-04-03 at 10:06 +0200, Milan Mimica wrote:
> elias@xxxxxxxxxx wrote:
> > Revision: 13182
> >           http://alleg.svn.sourceforge.net/alleg/?rev=13182&view=rev
> > Author:   elias
> > Date:     2010-04-02 19:56:49 +0000 (Fri, 02 Apr 2010)
> > 
> > Log Message:
> > -----------
> > Change default X11 visual selection because the GLXFB stuff seems to crash sometimes. Need to wait until one the devs can reproduce to fix I guess.
> > 
> 
> Who has got it crashing?
> 

Apr 02 20:42:25 <Pho75>	Hi All. I'm tring to play with Allegro 4.9.18 on linux. I've built the library and the examples but whenever I try any example it fails with error below.
Apr 02 20:42:27 <Pho75>	I don't have any problems with glxinfo. direct_rendering=y, composite and all 3d apps run fine.
Apr 02 20:42:29 <Pho75>	failed to create drawable
Apr 02 20:42:30 <Pho75>	X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
Apr 02 20:42:31 <Pho75>	  Major opcode of failed request:  55 (X_CreateGC)
Apr 02 20:42:33 <Pho75>	  Resource id in failed request:  0x2400002
Apr 02 20:42:34 <Pho75>	  Serial number of failed request:  28
Apr 02 20:47:44 <Pho75>	I'm running debian unstable Xorg 7.6 with Mesa 7.7 libs if it matters.
Apr 02 20:47:45 <Pho75>	graphics card Radeon X800XL (R430)
Apr 02 20:47:47 <Pho75>	OpenGL version string: 2.1 Mesa 7.7.1-DEVEL
Apr 02 20:49:51 <Redundant>	Pho75 has pasted <http://p.baf.cc/3378>
Apr 02 21:07:35 <Redundant>	Pho75 has pasted <http://p.baf.cc/3379>
Apr 02 21:13:13 <Pho75>	budha:~/src/allegro-4.9.19/build/examples$ grep "X11 visual" allegro.log
Apr 02 21:13:15 <Pho75>	display  I        xglx_config.c:411  select_best_visual               [   0.10779] Corresponding X11 visual id: 239
Apr 02 21:13:16 <Pho75>	display  I           xdisplay.c:261  xdpy_create_display              [   0.10783] Selected X11 visual 239.

All examples calling al_create_display() would crash with the X11
BadDrawable. Using the GLX 1.2 way them work. So my guess is we are
doing something wrong with the visual selection... what I found
suspicious is that we select visual 239 for him... in my case it's
usually something much lower like 0x22. Still, I remember a case on
allegro.cc where someone also had A5 mysteriously crash in
al_create_display so this might be not a single incident.


-- 
Elias Pschernig <elias.pschernig@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/