Bug 7622

Summary: BadLength X error when destroying Pbuffer
Product: Mesa Reporter: Clinton Stimpson <clinton>
Component: GLXAssignee: mesa-dev
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test.cxx

Description Clinton Stimpson 2006-07-24 22:12:53 UTC
I have two builds of Mesa to compare
make linux
make linux-dri  (the equivalent of the mesa GL libs that come with my x86_64 FC5
system -- which also demonstrate the problem).

I build my app as 
g++ test.cxx -lGL -lX11 -Wl,-rpath=/path/to/whichever/libGL.so/lib
with the different libGL.so's I have.  

Building mesa with "make linux" provides a libGL.so that doesn't have the
problem.  Building mesa with "make linux-dri" provides a libGL.so that does have
the problem.  Using NVidia's libGL.so doesn't have the problem.

I'm using NVidia glx X server extension with either a GeForce 7, or Quadro FX.
Even displaying remotely on another machine (NVidia glx again) has problems when
using Mesa w/ dri.

When I call glXDestroyPbuffer, I get the following error and the program aborts:
X Error of failed request:  BadLength (poly request too large or internal Xlib
length error)
  Major opcode of failed request:  145 (GLX)
  Minor opcode of failed request:  28 ()
  Serial number of failed request:  32
  Current serial number in output stream:  33
Comment 1 Clinton Stimpson 2006-07-24 22:14:34 UTC
Created attachment 6333 [details]
test.cxx

Attaching the test.cxx source file to demonstrate the problem.
Comment 2 Adam Jackson 2009-08-24 12:24:02 UTC
Mass version move, cvs -> git
Comment 3 Kristian Høgsberg 2010-05-12 12:11:43 UTC
I can't reproduce this here and it should work.  If it's still a problem, please reopen.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.