Possibly OpenGL related error messages

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Possibly OpenGL related error messages

Post by ischou »

I've been having getting the following errors:

Code: Select all

<Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
<Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: unknown error code: invalid drawable
Running Anarchy Online in Wine 1.3.29 Mac OS X 10.6. The game is running in windowed mode and is completely black.

The problem seems to go away when I run the program in a virtual desktop or when I plug an external monitor.

Any ideas?
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Possibly OpenGL related error messages

Post by ischou »

ischou wrote:I've been having getting the following errors:

Code: Select all

<Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
<Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: unknown error code: invalid drawable
Running Anarchy Online in Wine 1.3.29 Mac OS X 10.6. The game is running in windowed mode and is completely black.

The problem seems to go away when I run the program in a virtual desktop or when I plug an external monitor.

Any ideas?
Game also works in full-screen mode. Any ideas why I only get this error in windowed mode without virtual desktop or how I can try to identify whether wine or the game is at fault?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

looks like a problem between Wine's X11 driver and XQuartz...

have you tried the latest builds of XQuartz? You may want to try XQuartz 2.7.0beta2 as its built off xorg 1.11.1
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Post by ischou »

doh123 wrote:looks like a problem between Wine's X11 driver and XQuartz...

have you tried the latest builds of XQuartz? You may want to try XQuartz 2.7.0beta2 as its built off xorg 1.11.1
I have not. Does XQuartz have beta releases? I browsed around their web site and only saw official releases. Would I have to check out the latest version from their repo and build it myself?
Charles Davis

Possibly OpenGL related error messages

Post by Charles Davis »

On Oct 9, 2011, at 8:32 AM, ischou wrote:
doh123 wrote:
looks like a problem between Wine's X11 driver and XQuartz...

have you tried the latest builds of XQuartz? You may want to try XQuartz 2.7.0beta2 as its built off xorg 1.11.1
I have not. Does XQuartz have beta releases? I browsed around their web site and only saw official releases. Would I have to check out the latest version from their repo and build it myself?
No. If you want a beta release, go to http://static.macosforge.org/xquartz/downloads/SL (assuming you're on Snow Leopard or Lion, of course). Scroll all the way to the bottom, and you'll see it.

Chip
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Possibly OpenGL related error messages

Post by ischou »

Charles Davis wrote:On Oct 9, 2011, at 8:32 AM, ischou wrote:
doh123 wrote:
looks like a problem between Wine's X11 driver and XQuartz...

have you tried the latest builds of XQuartz? You may want to try XQuartz 2.7.0beta2 as its built off xorg 1.11.1
I have not. Does XQuartz have beta releases? I browsed around their web site and only saw official releases. Would I have to check out the latest version from their repo and build it myself?
No. If you want a beta release, go to http://static.macosforge.org/xquartz/downloads/SL (assuming you're on Snow Leopard or Lion, of course). Scroll all the way to the bottom, and you'll see it.

Chip
I'm assuming that it installs over the X11 in /opt/X11? I don't want to mess with a currently working X11, so I guess I'll hold off. It's interesting that it works correct when run in a virtual desktop. What's the difference to the Wine X11 driver when running in a virtual desktop?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Possibly OpenGL related error messages

Post by doh123 »

ischou wrote: I'm assuming that it installs over the X11 in /opt/X11? I don't want to mess with a currently working X11, so I guess I'll hold off. It's interesting that it works correct when run in a virtual desktop. What's the difference to the Wine X11 driver when running in a virtual desktop?
XQuartz you get here is the only thing that installs to /opt/X11 ... so yes it'll replace what you have there. Apple's version is installed to /usr/X11 and if you install off Macports it'll be in /opt/local

If you want to keep your /opt/X11 install just to do a test, rename the folder to something like /opt/X11Backup, rename XQuartz.app to something else too and then install, and if it doesn't work for ya, and you don't want it, just delete /opt/X11 and the new XQuartz.app and rename your old ones back.

Many many games work correctly with a Virtual Desktop and not otherwise, so its not that uncommon... If you use Wineskin to port, it has an option to override and set manually graphics options and you can run a fullscreen thats faked to look fullscreen but is really a virtual desktop in Wine, you just cannot tell. You can try to do this manually, but you'd need to launch XQuartz non-standard so there was no quartz-wm (or it'll mess up the placement) and try to xrandr in an xterm to the right resolution. Another benefit of Wineskin is that it has its own version of X11 built in, so the system version doesn't matter. It of course is a 3rd party app and not supported here.
ischou
Level 4
Level 4
Posts: 109
Joined: Sun Nov 28, 2010 7:22 pm

Re: Possibly OpenGL related error messages

Post by ischou »

ischou wrote:I've been having getting the following errors:

Code: Select all

<Error>: kCGErrorIllegalArgument: CGSGetWindowBounds
<Error>: kCGErrorIllegalArgument: CGSGetSurfaceBounds
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: kCGErrorIllegalArgument: CGSBindSurface: Invalid window 0x1854
<Error>: unknown error code: invalid drawable
Running Anarchy Online in Wine 1.3.29 Mac OS X 10.6. The game is running in windowed mode and is completely black.

The problem seems to go away when I run the program in a virtual desktop or when I plug an external monitor.

Any ideas?
Just a follow up on this. XQuartz 2.7.0 released today. Magically everything is working once again even though I'm still getting the above error messages.
Locked