z0rc / debumblebee

DEPRECATED. Don't use it anymore — Optimus graphics support for Debian through VirtualGL
http://suwako.nomanga.net/
GNU General Public License v3.0
26 stars 2 forks source link

X Error of failed request: BadDrawable #55

Closed aspic closed 12 years ago

aspic commented 12 years ago

Hi! I am trying to launch Counter Strike 1.6 (oldschool, yeah!). But do have some problems to get the game started.

optirun wine cstrike.exe

Gives:

fixme:win:EnumDisplayDevicesW ((null),0,0x33f4c8,0x00000000), stub! fixme:ddraw:ddraw7_FlipToGDISurface iface 0x172320 stub! X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 132 (XVideo) Minor opcode of failed request: 18 () Resource id in failed request: 0x1200007 Serial number of failed request: 19 Current serial number in output stream: 20 err:seh:raise_exception Exception frame is not in stack limits => unable to dispatch exception.

I am trying with wine-1.3.34 and built/re-installed debumblebee a couple of hours ago. Running with -v option renders the following trace: http://pastie.org/3114091

Please ask if you need any more information. :-)

z0rc commented 12 years ago

Do other wine applications runable with optirun? Does optirun glxgears works? If everything is fine, then try to play with optirun -r and -c options: optirun -r sync -c proxy -v wine cstrike.exe.

aspic commented 12 years ago

Yes, for instance Heroes of Newerth, Supermeat Boy and glxgears works just fine with optirun. Playing around with those options resulted in more or less the same stack trace as earlier.

I have not tried any other wine applications, but will do that as soon as I get my hand on something that I know should work :-)

aspic commented 12 years ago

Exactly same behaviour with another game, namely GTA Vice City =)

z0rc commented 12 years ago

Hmm, do you have Direct X libs installed in wine? winetricks d3dx9.

ejstacey commented 12 years ago

I'm on Arch. I was able to fix (work around?) this by uninstalling virtualgl-bin and virtualgl32-bin, then installing virtualgl from AUR. Installing directx via winetricks had no effect.

ejstacey commented 12 years ago

I may have spoken too soon. I had one game mode (Guild Wars, Gw.exe -Image) run with that (was previously failing). When I tried to run the full game, I got GLXUnsupportedPrivateRequest. I installed lib32-virtualgl from AUR and am again at the point of:

X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 140 (MIT-SHM) Minor opcode of failed request: 3 (X_ShmPutImage) Resource id in failed request: 0x2000008 Serial number of failed request: 20 Current serial number in output stream: 21

So I guess it has something to do with the 32-bit VirtualGL libraries.

aspic commented 12 years ago

z0rc: sorry for the late reply. But yes, the same behavior whether I had d3dx9 installed or not.

ejstacey: I'm kinda glad to see that other got the same error, and that this is not some weird corner case on my system. :-)

joidegn commented 12 years ago

Im having the same behaviour with Star Craft 2. d3dx9 is installed and glxgears runs with optirun

z0rc commented 12 years ago

Well, I don't have any solution right now. Does this happen with all applications launched through wine or just some? Also maybe you can trace where exactly (wine, xorg, vgl) error happens with strace or gdb. I haven't seen this error yet, though I don't have pointed games.

z0rc commented 12 years ago

Closing this ticket as project is deprecated. Move to bumblebee. Details are at http://suwako.nomanga.net/

Apparently this issue might be fixed with fresh VirtualGL version, which is also packaged there.

ArchUser commented 12 years ago

This issue isn't fixed even with the new virtualGL package.

aspic commented 12 years ago

Moving to bumblebee fixed this issue for me.