http://bugs.winehq.org/show_bug.cgi?id=32882
Bug #: 32882 Summary: Grand Theft Auto IV doesn't start, aborts with a GLX error. Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: gyurco@freemail.hu Classification: Unclassified
GTA IV doesn't start anymore, giving X Error of failed request: GLXBadDrawable Major opcode of failed request: 152 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 7545 Current serial number in output stream: 7545
Using an nvidia graphic card, with any driver from 295 to 310. Regression tests pointed out the following commit as the source of the problem:
f12c1c6630f0bf842dde9af10da4ab188ff16e94 is the first bad commit commit f12c1c6630f0bf842dde9af10da4ab188ff16e94 Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 26 13:12:17 2012 +0200
winex11: Switch to an ARGB visual for layered windows with per-pixel alpha.
http://bugs.winehq.org/show_bug.cgi?id=32882
gyurco@freemail.hu changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |f12c1c6630f0bf842dde9af10da | |4ab188ff16e94
http://bugs.winehq.org/show_bug.cgi?id=32882
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #1 from gyurco@freemail.hu 2013-02-04 15:22:37 CST --- Created attachment 43446 --> http://bugs.winehq.org/attachment.cgi?id=43446 WINEDEBUG=trace+wgl
Attached a trace run. Probably a check before calling glxMakeCurrent in glxdrv_wglMakeCurrent would be nice?
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #2 from Alexandre Julliard julliard@winehq.org 2013-02-12 06:10:02 CST --- Please get a +relay,+x11drv,+win,+wgl,+synchronous trace.
http://bugs.winehq.org/show_bug.cgi?id=32882
Rico kgbricola@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fenixk19@mail.ru
--- Comment #3 from Rico kgbricola@web.de 2013-02-12 09:12:20 CST --- *** Bug 32828 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #4 from Alexander Varnin fenixk19@mail.ru 2013-02-12 10:05:30 CST --- That means, GTA should work on wine 1.5.14 release. I'll check it, when possible.
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #5 from gyurco@freemail.hu 2013-02-12 12:40:38 CST --- Created attachment 43531 --> http://bugs.winehq.org/attachment.cgi?id=43531 WINEDEBUG=+relay,+x11drv,+win,+wgl,+synchronous
with +synchonous wine aborts with: err:x11drv:error_handler X protocol error: serial=3034, request_code=152 - breaking into debugger The full trace is 110MB, so it is bzip2 compressed.
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2013-02-13 07:50:20 CST --- Created attachment 43539 --> http://bugs.winehq.org/attachment.cgi?id=43539 Don't make GL windows layered
Please give this a try.
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #7 from gyurco@freemail.hu 2013-02-13 10:01:58 CST --- This patch works! Just the transparency around the "Razor 1911" window has gone. So now it's like before the "winex11: Switch to an ARGB visual for layered windows with per-pixel alpha." patch. But most importantly, the game starts and playable now, thanks a lot!
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2013-02-13 10:21:58 CST --- Created attachment 43541 --> http://bugs.winehq.org/attachment.cgi?id=43541 Reparent client when changing visual
Here's one that should preserve the transparency. Does it work for you?
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #9 from Bruno Jesus 00cpxxx@gmail.com 2013-02-13 11:05:26 CST --- (In reply to comment #7)
Just the transparency around the "Razor 1911" window has gone.
Are you talking about the GTA 4 version pirated by the group Razor 1911?
http://bugs.winehq.org/show_bug.cgi?id=32882
--- Comment #10 from gyurco@freemail.hu 2013-02-13 11:59:40 CST --- (In reply to comment #8)
Created attachment 43541 [details] Reparent client when changing visual
Here's one that should preserve the transparency. Does it work for you?
Yes! This one preserves transparency, and doesn't abort with the GLX error.
http://bugs.winehq.org/show_bug.cgi?id=32882
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |76b8612c3e5879f396756d9be9f | |3efb3964e1d5d Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2013-02-13 14:03:11 CST --- Fixed by 76b8612c3e5879f396756d9be9f3efb3964e1d5d. Thanks for your help!
http://bugs.winehq.org/show_bug.cgi?id=32882
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2013-02-15 14:31:19 CST --- Closing bugs fixed in 1.5.24.