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@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86