http://bugs.winehq.org/show_bug.cgi?id=25324
Summary: GL_INVALID_OPERATION (0x502) on x86_64 installations. Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: robertogoberto@gmail.com
Hello, I've tried playing several different games using Wine, all get the same error. I'll stick to "Sins of a Solar Empire" for this description.
The problem is when trying to load I get this error in the mentioned game:
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1 fixme:win:EnumDisplayDevicesW ((null),0,0x32f664,0x00000000), stub! fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats fixme:win:EnumDisplayDevicesW ((null),0,0x32f674,0x00000000), stub! fixme:d3d:swapchain_init The application requested more than one back buffer, this is not properly supported. Please configure the application to use double buffering (1 back buffer) if possible. fixme:d3d:swapchain_init Add OpenGL context recreation support to context_validate_onscreen_formats err:d3d:context_release Failed to restore GL context 0x13f278 on device context 0x674, last error 0x7d0. err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit) @ swapchain.c / 136 err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded fixme:mixer:ALSA_MixerInit No master control found on HDA NVidia, disabling mixer err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded fixme:d3d:query_init Unhandled query type 0x4. fixme:d3d9:Direct3DShaderValidatorCreate9 stub fixme:font:WineEngAddFontResourceEx Ignoring flags 10 ... fixme:font:WineEngAddFontResourceEx Ignoring flags 10 fixme:font:WineEngAddFontResourceEx Ignoring flags 10 fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0x8af0180) : pBox=(nil) stub ... fixme:d3d_surface:IWineD3DVolumeImpl_LockBox (0x8b73a38) : pBox=(nil) stub err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit) @ swapchain.c / 136 err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit) ... err:d3d:context_set_draw_buffer >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glDrawBuffer() @ context.c / 1939
The screen is black save cursor, and it just sits there. I'm using a 9800GT w/ 260.19.06 drivers. It is configured correctly, other games run, and 3d acceleration works.
I was using Arch x86_64 and Ubuntu 10.10, the WINE versions I believe were 1.2.1 and 1.3.7. Both received the same error. I'm using no DLL overrides.
I remember these games running perfectly fine my older OS installations, the only thing that changed was I switched to x86_64 when I got 4GB of RAM. So for experimentations sake I installed Ubuntu 10.10 32bit.
Everything worked perfectly. I know I'm not the only one experiencing this problem, that error I posted was actually grabbed from the AppDB, it was posted by someone else.
http://bugs.winehq.org/show_bug.cgi?id=25324
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.3.7
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-11-29 03:59:45 CST --- What video card and drivers do you have installed?
Also http://wiki.winehq.org/3DDriverIssues is worth reading.
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #2 from Jaimos jaimos@math.boisestate.edu 2010-12-01 20:07:39 CST --- Created an attachment (id=32294) --> (http://bugs.winehq.org/attachment.cgi?id=32294) wine log - gziped
http://bugs.winehq.org/show_bug.cgi?id=25324
Jaimos jaimos@math.boisestate.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jaimos@math.boisestate.edu
--- Comment #3 from Jaimos jaimos@math.boisestate.edu 2010-12-01 20:08:42 CST --- I too have run across an issue very similar to this but it only occurs with a particular graphical settings on eve-online.
With the recent update to eve online they added antialiasing to the client and I have been attempting to enable it. First I have modified the registry entry to enable multisampling. The full key is
[Software\Wine\Direct3D] "DirectDrawRenderer"="opengl" "MaxFragmentUniforms"="1024" "MaxVaryings"="52" "MaxVertexUniforms"="1024" "Multisampling"="enabled" "OffscreenRenderingMode"="fbo" "PixelShaderMode"="enabled" "VertexShaderMode"="hardware" "VideoMemorySize"="512"
After which I can enable antialiasing in eve-online to either 2x or 4x (Note that you have to disable the hdr option in eve to use antialiasing). After I restarting I see a splash screen and then get a black screen with only my cursor. When I kill wine I see the following error repeating in stderr.
err:d3d_surface:surface_blt_fbo >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) f rom glBlitFramebuffer() @ surface.c / 3322
After a bit of investigation I have found the following. The game is running just fine, there is just a graphical glitch. I am able to quit the game and even log into eve, I just don't see anything.
The issue is not just tied to antialiasing. The issue occurs when both antialiasing and the bloom option are enabled. I was able to get the game to run just fine with antialiasing on and bloom off. Also if I ran eve online with antialiasing on and bloom off and then turned bloom on all the 2D aspects of eve would work just fine (menus, side panels, info windows) but the 3D space world underneath would be black and I could turn it on and off with turning bloom on and off.
In research of this issue I have found this bug and various other google hits. It appears that there are a few reported occurrence of a very similar issue in which the error message GL_INVALID_OPERATION (0x502) appears and the result is a black 3D screen with only cursor viable.
This issue appears to be restricted to x86_64 as there is a report of the issue going away when switching to a 32 bit system -- http://www.spinics.net/lists/wine/msg83981.html
I also noticed that many of the reports I found the graphics card was a 9800GT and maybe this is a nvidia driver issue for this operation and card.
My system is Debian sid on amd64.
graphics card: Nvidia 9800GT driver version: 195.36.31
I have tested this on wine-1.3.6 and wine-1.3.8 and have attached the wine.log file with the debug option WINEDEBUG=+wgl
http://bugs.winehq.org/show_bug.cgi?id=25324
Stefan Reimer it@stefanreimer.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |it@stefanreimer.de
--- Comment #4 from Stefan Reimer it@stefanreimer.de 2010-12-02 01:28:50 CST --- I experience the same problem trying to get EVE working with AA and bloom. The moment bloom is enabled the 3D parts turn black. Games itself runs fine incl. UI
Gentoo x86_64 Wine-1.3.7 GeForce GTX 275
http://bugs.winehq.org/show_bug.cgi?id=25324
Andrew andrewwest@techie.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrewwest@techie.com
--- Comment #5 from Andrew andrewwest@techie.com 2010-12-12 22:14:05 CST --- I can confirm this on Sins of a Solar Empire. Within the game's graphics options, the only anti-aliasing option is 'none'. The game runs fine as it is, but when I force application override anti-aliasing of any level within nvidia-settings, I get the above mentioned black screen with only the cursor. When this happens, the main menu does indeed audibly respond to random mouse clicks.
Gentoo x86_64 Nvidia 9600GT Sins of a Solar Empire w/ Entrenchment & Diplomacy, latest updates wine-1.3.8 nvidia-drivers-260.19.21
http://bugs.winehq.org/show_bug.cgi?id=25324
Andrew andrewwest@techie.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #6 from Andrew andrewwest@techie.com 2010-12-14 15:15:51 CST --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #7 from robertogoberto@gmail.com 2010-12-15 00:49:22 CST --- Created an attachment (id=32497) --> (http://bugs.winehq.org/attachment.cgi?id=32497) Package installation log
Packages seem to resolve bug.
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #8 from robertogoberto@gmail.com 2010-12-15 00:54:18 CST --- Well, this has got even stranger for me. After Wine w/ Ubuntu failed to work I drifted back to Arch ... and everything worked ... Tried Windows 7 for a few days and went back to a new install of Arch (backup failed) ... and it wasn't working again.
After installing a few packages, everything seems to work now. The weird part is none of these packages seems to have anything to do with OpenGL/rendering yet it seems to solve the problem. Damned if I know. I attached the package installation log.
http://bugs.winehq.org/show_bug.cgi?id=25324
robertogoberto@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #32497|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=25324
Steven vornne@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vornne@gmail.com
--- Comment #9 from Steven vornne@gmail.com 2010-12-16 04:41:29 CST --- I've been playing Mount&Blade Warband with wine for over a year now; at first I could use the latest version of wine without many problems, but beginning with the 1.1.42 release the game wouldn't run, with various errors, so I've kept using 1.1.41. I finally got around to doing more testing the other day - after patching a few other issues with version 1.3.9, this bug showed up: the game starts as a black window, with only the game cursor visible, and these lines are repeatedly output to the console:
err:d3d:swapchain_blit >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from Swapchain present blit(EXT_framebuffer_blit) @ ../../../dlls/wined3d/swapchain.c / 134
I then verified again (using git) that this problem existed in version 1.1.42 but not in 1.1.41, and then ran a bisect between those versions, which resulted in this commit:
dc918d43946462ad4c04ed373cda72d1ebe9b6d3 is the first bad commit commit dc918d43946462ad4c04ed373cda72d1ebe9b6d3 Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Mar 28 16:42:32 2010 +0200
wined3d: Use FBOs when the onscreen depth stencil format isn't suitable.
This allows proper support of float depth buffers when rendering to onscreen surfaces.
:040000 040000 44d70c59cce2f82aa3f2d8b6e19679588f81e1b8 15635de2c11dfbeb36cc3542bbaa6bc3f840468f M dlls
I then reverified that the game worked at the commit before, and then tested with various display resolutions and depths, windowed and fullscreen, selecting the game's DirectX7 and DirectX9 modes; all still failed. I'm running 64 bit gentoo linux with a 7900GS and the binary nvidia-drivers-260.19.21; I can successfully run warband and quite a few other windows games with this system, at least when using version 1.1.41.
After looking at the commit and finding that the swapchain.c file mentioned in the error is barely modified, it seemed that the main change in the patch was to add context_validate_onscreen_formats to dlls/wined3d/context.c and call it: after checking out 1.3.9 again and commenting out all the calls of that function, the game worked. I narrowed it down a bit more to the two lines in that function "swapchain->render_to_fbo = TRUE; context_set_render_offscreen(context, device->StateTable, TRUE);" both of which need to be commented out for the game to work; since these seem to be the main point of the function, I guess just removing all calls to context_validate_onscreen_formats might be a temporary workaround. Only the calls from _draw_state and _clear_state needed to be disabled for warband to work, not the _blit_state one.
Patch to wine-1.3.9 attached in case anybody wants a quick (probably incorrect) fix.
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #10 from Steven vornne@gmail.com 2010-12-16 04:42:36 CST --- Created an attachment (id=32509) --> (http://bugs.winehq.org/attachment.cgi?id=32509) disable context_validate_onscreen_formats
http://bugs.winehq.org/show_bug.cgi?id=25324
gpiez@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gpiez@web.de
--- Comment #11 from gpiez@web.de 2011-01-06 17:30:20 CST --- I get this bug when running World of Warcraft in direct3d mode.
err:d3d_surface:surface_blt_fbo >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glBlitFramebuffer() @ wine-1.3.10/dlls/wined3d/surface.c / 3325
If I enable both multisampling (2x or 4x) and fullscreen glow (which is default, can be turned of manually with "/console ffxGlow 0" ingame, the screen gets black, only the foreground elements of the user inteface are visible. As soon as I disable either one, the screen becomes visible again.
I think there may be a relation to the abysmal performance of the d3d mode, usually the load on the graphics card (a gtx 460 oc) is so low, it doesn't even switch to the highest performance mode. If I force maximum performance, the fps increases from 19 to 20 or similar.
The patch didn't do anything for me.
http://bugs.winehq.org/show_bug.cgi?id=25324
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #12 from joaopa jeremielapuree@yahoo.fr 2011-07-09 23:24:27 CDT --- still a bug in current wine?
http://bugs.winehq.org/show_bug.cgi?id=25324
J.Nicolaisen J.Nicolaisen@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |J.Nicolaisen@gmx.net
--- Comment #13 from J.Nicolaisen J.Nicolaisen@gmx.net 2011-07-26 21:47:24 CDT --- Same error for me when activating full screen AA in Tomb Raider: Anniversary.
err:d3d_surface:surface_blt_fbo >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glBlitFramebuffer() @ surface.c / 5121
Game still runs, but blocky artifacts appear on textures. Goes away as soon as I disable antialiasing.
Changing Fullscreen Effects or Depth of Field makes no difference.
Wine 1.3.24, Geforce 6200, Ubuntu Lucid, driver 275.21.
I'm on 32 bit though, not 64. !!
http://bugs.winehq.org/show_bug.cgi?id=25324
bojan@antonovic.ch bojan@antonovic.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bojan@antonovic.ch
--- Comment #14 from bojan@antonovic.ch bojan@antonovic.ch 2011-07-29 17:32:39 CDT --- Have the same problem with Wine 1.3.25 and Star Trek Armada II v. 1.1:
err:d3d_surface:surface_bind >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glBindTexture @ surface.c / 1979
http://bugs.winehq.org/show_bug.cgi?id=25324
Manuel Soukup linuxuser-sky@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |linuxuser-sky@gmx.de
--- Comment #15 from Manuel Soukup linuxuser-sky@gmx.de 2012-01-11 12:54:33 CST --- This is still a problem in 1.3.36. It crashes GTA iv. see:
http://bugs.winehq.org/show_bug.cgi?id=29559
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #16 from Stefan Reimer it@stefanreimer.de 2012-01-18 11:19:27 CST --- It seems fixed for EVE online since the Crucible expansion and I think wine >= 1.3.30... not sure what fixed it though.
Running EVE Online with all effects incl. FSAA enabled. Flawless !
http://bugs.winehq.org/show_bug.cgi?id=25324
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #17 from Jerome Leclanche adys.wh@gmail.com 2012-02-26 13:11:07 CST --- Reported fixed. Please reopen if you are able to reproduce in wine-1.4-rc5.
http://bugs.winehq.org/show_bug.cgi?id=25324
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #18 from Dmitry Timoshkov dmitry@baikal.ru 2012-02-26 21:21:48 CST --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=25324
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #19 from Alexandre Julliard julliard@winehq.org 2012-03-02 13:02:02 CST --- Closing bugs fixed in 1.4-rc6.
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #20 from x.solarwind.x@gmail.com 2012-10-22 07:28:35 CDT --- Created attachment 42218 --> http://bugs.winehq.org/attachment.cgi?id=42218 Wine debug log for Starcraft 2 2012-10-22
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #21 from x.solarwind.x@gmail.com 2012-10-22 07:35:22 CDT --- Created attachment 42219 --> http://bugs.winehq.org/attachment.cgi?id=42219 Wine debug log 2 for Starcraft 2 2012-10-22
http://bugs.winehq.org/show_bug.cgi?id=25324
x.solarwind.x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |x.solarwind.x@gmail.com
--- Comment #22 from x.solarwind.x@gmail.com 2012-10-22 07:36:55 CDT --- It is most certainly not fixed as of 2012-10-22.
I am trying to run Starcraft 2 but get various errors similar to those described above.
OS: Arch Linux 64 bit (kernel 3.6.1) Wine version: wine-1.5.15 Video card: AMD HD6950 Driver: catalyst 12.9-0.1
I have attached two debug logs containing the errors. The first one is the first 15000 debug message lines after starting the game. The second one is the last 6500 lines before I killed the process.
first log: http://bugs.winehq.org/attachment.cgi?id=42218 second log: http://bugs.winehq.org/attachment.cgi?id=42218
Both logs contain unique errors. The second log contains the majority of what you see over and over again continuously after you start the game and see a black screen.
The problem: after wine 'Starcraft II.exe' is executed, the updater starts, allowing me to click play, then the game "starts", but all you see is a black screen and the mouse cursor, and audio is working. Moving the mouse over the screen randomly, the cursor reacts to moving over the login text box, etc. So I'm guessing it's some sort of OpenGL rendering error.
http://bugs.winehq.org/show_bug.cgi?id=25324
pwthomas95@satx.rr.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pwthomas95@satx.rr.com
--- Comment #23 from pwthomas95@satx.rr.com 2013-01-21 19:13:01 CST --- I am using wine 1.5.22 and AA does not work. I am using Kubuntu 12.10 64Bit and the latest EVE client. Please reopen.
http://bugs.winehq.org/show_bug.cgi?id=25324
--- Comment #24 from Austin English austinenglish@gmail.com 2013-01-21 20:14:39 CST --- (In reply to comment #23)
I am using wine 1.5.22 and AA does not work. I am using Kubuntu 12.10 64Bit and the latest EVE client. Please reopen.
File a new bug please.