Xgl/Xglx: initialize_visual_and_buffer: Assertion `v->BitsPerPixel > 0' failed.

Ben Skeggs darktama at iinet.net.au
Fri Jan 6 19:15:21 PST 2006


Am Freitag, den 06.01.2006, 11:12 -0700 schrieb Brian Paul:
> Christopher Bayliss wrote:
> > Christian Parpart wrote:
> > 
> >>Hi all,
> >>
> >>after having finally(!) compiled and installed the xserver from very recent 
> >>CVS state, I were curious on Xgl/Xglx but when invoking them I get the 
> >>following:
> >>
> >>trapni at battousai /opt/sandbox/fdo/bin $ ./Xgl :1
> >>Xgl: /home/trapni/src/Xorg/xserver/../Mesa//src/mesa/drivers/x11/xm_api.c:1223: 
> >>initialize_visual_and_buffer: Assertion `v->BitsPerPixel > 0' failed.
> >>Aborted
> >>
> >>trapni at battousai /opt/sandbox/fdo/bin $ ./Xglx :1 -ac -screen 800x600
> >>Xglx: /home/trapni/src/Xorg/xserver/../Mesa//src/mesa/drivers/x11/xm_api.c:1223: 
> >>initialize_visual_and_buffer: Assertion `v->BitsPerPixel > 0' failed.
> >>Aborted
> >>
> >>I ran this within my current X session.
> >>Any idea on why this is happening?
> > 
> > 
> > I don't know what's happening but I had the same problem. Xgl appears to
> > work just fine if you comment the line out and recompile. It appears to
> > be a check on the requested colour depth of the output screen.
> > Alternatively, could try defining a colour depth when calling Xgl.
> 
> Could someone provide a stack trace?

I see the same problem here. AMD64, Xgl build from xserver cvs. 

Program received signal SIGABRT, Aborted.
[Switching to Thread 46912520712784 (LWP 16526)]
0x00002aaaac02126a in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00002aaaac02126a in raise () from /lib/libc.so.6
#1  0x00002aaaac0225d0 in abort () from /lib/libc.so.6
#2  0x00002aaaac01a9bb in __assert_fail () from /lib/libc.so.6
#3  0x00002aaaac53145f in initialize_visual_and_buffer (client=0,
v=0x7af8a0, b=0x0,
    rgb_flag=<value optimized out>, window=0x0, cmap=0x0)
    at /home/darktama/Trees/Mesa/src/mesa/drivers/x11/xm_api.c:1223
#4  0x00002aaaac5319ef in XMesaCreateVisual (display=0x665c80,
visinfo=0x7ab7e0,
    rgb_flag=1 '\001', alpha_flag=1 '\001', db_flag=1 '\001',
stereo_flag=0 '\0',
    ximage_flag=1 '\001', depth_size=24, stencil_size=8,
accum_red_size=0, accum_green_size=0,
    accum_blue_size=0, accum_alpha_size=0, num_samples=0, level=0,
visualCaveat=32768)
    at /home/darktama/Trees/Mesa/src/mesa/drivers/x11/xm_api.c:1590
#5  0x00002aaaac3d4880 in __MESA_screenProbe (screen=0) at xf86glx.c:985
#6  0x00002aaaac723708 in xglScreenProbe (screen=16526) at
xglglxext.c:5032
#7  0x00002aaaac267982 in __glXScreenInit (numscreens=1) at
glxscreens.c:357
#8  0x00000000004a273d in InitExtensions (argc=<value optimized out>,
argv=<value optimized out>)
    at miinitext.c:346
#9  0x000000000043c37e in main (argc=3, argv=0x7fffffc60eb8, envp=<value
optimized out>)
    at main.c:364


Ben.
> 
> -Brian
> 
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.x.org/archives/xorg/attachments/20060107/d7a898f9/attachment-0001.pgp>


More information about the xorg mailing list