[XFree86] Debugging Xvfb

2007-09-25 Thread Duncan Murdoch
I am writing some code using OpenGL, and when run under Xvfb on MacOS it 
dies, with the error message



X Error of failed request:  BadMatch (invalid parameter attributes)
   Major opcode of failed request:  1 (X_CreateWindow)
   Serial number of failed request:  17
   Current serial number in output stream:  19


I think MacOS uses the XFree86 version of Xvfb, but my first question is how 
can I tell for sure, and how do I determine which version I've got?

Xvfb on other platforms (including Cygwin, I normally work in Windows) is fine, 
but I've no idea how to tell version numbers.

Duncan Murdoch


___
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86


Re: [XFree86] Debugging Xvfb

2007-10-14 Thread Duncan Murdoch

On 27/09/2007 10:03 AM, Marc Aurele La France wrote:

On Thu, 27 Sep 2007, Duncan Murdoch wrote:

Marc Aurele La France wrote:

On Tue, 25 Sep 2007, Duncan Murdoch wrote:
I am writing some code using OpenGL, and when run under Xvfb on MacOS it 
dies, with the error message



X Error of failed request:  BadMatch (invalid parameter attributes)
   Major opcode of failed request:  1 (X_CreateWindow)
   Serial number of failed request:  17
   Current serial number in output stream:  19


There are a number of different reasons for which XCreateWindow() would 
return BadMatch.  Check the man page.


I have rebuilt X from XFree86 version 4.7.0 and the error has gone away. 
Originally the last line of man Xvfb was


X Version 11  Release 6.6 
XVFB(1)



but now it says


XFree86  Version 4.7.0 
XVFB(1)


So this looks like it's probably a bug in the Xvfb that Apple distributes, 
and the bug isn't present in XFree86 4.7.0.  Still, if I could I'd like to 
try to work around the bug:  any idea where I'd find the source for

the original Xvfb, so I could try to determine what it's complaining about?


Quite a bit of Apple's sources can be found at ...

http://www.opensource.apple.com/darwinsource


A followup on this, in case it ever bites anyone else.

Source that behaves like the OSX 10.4 release of X11 is at

http://www.opensource.apple.com/darwinsource/tarballs/other/X11-0.46.4.tar.gz

(I'm not completely sure that's exactly what is on the CD, but it was 
close enough to solve my problem.)


And the solution to my problem was to specify CWBorderPixel when I 
called XCreateWindow. Without that my call failed in the CreateWindow 
function in xc/programs/Xserver/dix/window.c.


I don't know why no other X server cares about this.

Duncan Murdoch
___
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86