https://bugs.winehq.org/show_bug.cgi?id=41403
Bug ID: 41403 Summary: Ri-li 2.0.1: No window shown (just title bar) Product: Wine Version: 1.9.19 Hardware: x86-64 URL: http://prdownloads.sourceforge.net/ri-li/Ri-li_2.0.1.e xe?download OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs@winehq.org Reporter: tobbi.bugs@googlemail.com
When trying to run Ri-Li, I don't see any window, just its title bar.
Console output is the following over and over again: err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_FRAMEBUFFER_OPERATION (0x506) from glBindTexture @ context.c / 2397. fixme:d3d:context_check_fbo_status FBO status GL_FRAMEBUFFER_UNDEFINED (0x8219) err:d3d:context_check_fbo_status FBO 0 is incomplete, driver bug?
$ openssl sha1 Ri-li_2.0.1.exe SHA1(Ri-li_2.0.1.exe)= ed9a3f423205369e08492c68a21525ba2f3fb776
https://bugs.winehq.org/show_bug.cgi?id=41403
Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Ri-li 2.0.1: No window |Ri-li 2.0.1: No window |shown (just title bar) |content shown (just title | |bar)
https://bugs.winehq.org/show_bug.cgi?id=41403
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #1 from winetest@luukku.com --- Works at least wine-staging 1.9.20.
I dont see anything wrong with it.
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #2 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- Did you test on OS X? This *could* be an OS X specific problem.
https://bugs.winehq.org/show_bug.cgi?id=41403
Ken Thomases ken@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ken@codeweavers.com
--- Comment #3 from Ken Thomases ken@codeweavers.com --- (In reply to Tobias (:Tobbi) Markus from comment #0)
When trying to run Ri-Li, I don't see any window, just its title bar.
I'm testing on an iMac running 10.10.5 using wine-1.9.21-143-gb22aa57 (current git). I see a window, but its content is just black. You're not seeing any part of the window at all, other than the title bar?
Are you testing with a fresh prefix?
Console output is the following over and over again: err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_FRAMEBUFFER_OPERATION (0x506) from glBindTexture @ context.c / 2397. fixme:d3d:context_check_fbo_status FBO status GL_FRAMEBUFFER_UNDEFINED (0x8219) err:d3d:context_check_fbo_status FBO 0 is incomplete, driver bug?
I see the fixme and second err logged one time (and they are due to a known but not serious problem), but I'm not seeing the first err and the messages are not repeating.
What model Mac do you have and what GPU does it have?
Anyway, the problem seems to be that WineD3D is using a double-buffered pixel format when it's only rendering to the front buffer and, maybe, never flushing. And/or it's falling afoul of a bug in macOS's OpenGL implementation. If I apply the hack in attachment 55968 from bug 34166, the game renders properly.
Alternatively, a workaround that doesn't require building a patched Wine is to set this registry key:
[HKCU\Software\Wine\Direct3D] "DirectDrawRenderer"="gdi"
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #4 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- (In reply to Ken Thomases from comment #3)
(In reply to Tobias (:Tobbi) Markus from comment #0)
When trying to run Ri-Li, I don't see any window, just its title bar.
I'm testing on an iMac running 10.10.5 using wine-1.9.21-143-gb22aa57 (current git). I see a window, but its content is just black. You're not seeing any part of the window at all, other than the title bar?
Testing with a fresh wine prefix, I saw the same thing as you did: Just a black window.
Are you testing with a fresh prefix?
I did now. See above.
Console output is the following over and over again: err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_FRAMEBUFFER_OPERATION (0x506) from glBindTexture @ context.c / 2397. fixme:d3d:context_check_fbo_status FBO status GL_FRAMEBUFFER_UNDEFINED (0x8219) err:d3d:context_check_fbo_status FBO 0 is incomplete, driver bug?
I see the fixme and second err logged one time (and they are due to a known but not serious problem), but I'm not seeing the first err and the messages are not repeating.
What model Mac do you have and what GPU does it have?
MacBook Pro, Early 2011.
Anyway, the problem seems to be that WineD3D is using a double-buffered pixel format when it's only rendering to the front buffer and, maybe, never flushing. And/or it's falling afoul of a bug in macOS's OpenGL implementation. If I apply the hack in attachment 55968 [details] from bug 34166, the game renders properly.
Alternatively, a workaround that doesn't require building a patched Wine is to set this registry key:
[HKCU\Software\Wine\Direct3D] "DirectDrawRenderer"="gdi"
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #5 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- Just forgot my GPU. Here it goes: Intel HD Graphics 3000 512 MB
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #6 from winetest@luukku.com --- I am currently deleting exes I have download since they consume so much space. And I found this application.
Installs, runs just fine.
wine 2.0rc4.
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #7 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- (In reply to winetest from comment #6)
I am currently deleting exes I have download since they consume so much space. And I found this application.
Installs, runs just fine.
wine 2.0rc4.
I assume this wasn't on a Mac? This appears to be a Mac-only problem, very likely.
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #8 from winetest@luukku.com --- (In reply to Tobias (:Tobbi) Markus from comment #7)
(In reply to winetest from comment #6)
I am currently deleting exes I have download since they consume so much space. And I found this application.
Installs, runs just fine.
wine 2.0rc4.
I assume this wasn't on a Mac? This appears to be a Mac-only problem, very likely.
Yes, Linux.
https://bugs.winehq.org/show_bug.cgi?id=41403
Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #9 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- I just re-tested with wine 2.5 and this issue appears to have been fixed.
https://bugs.winehq.org/show_bug.cgi?id=41403
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.6.
https://bugs.winehq.org/show_bug.cgi?id=41403
Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|FIXED |---
--- Comment #11 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- I'm sorry for reporting that I was wrong: The bug is not fixed. It just worked for a couple times and now it's back to showing only the title bar again.
If there are any logs you need, I can provide them.
I change this back to UNCONFIRMED. Can someone please set it to NEW again?
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #12 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- I just investigated more:
It works again now, though nothing changed about my wine prefix.
However: When I switch the App to Fullscreen and back to windowed mode again, the same thing is happening, which (uneducated guess) could have something to do with OpenGL contexts that get invalidated incorrectly or so.
If you want some logs, I can certainly provide them.
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #13 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- Just a small update on this: I get a black background with Ri-li. In the console, I get this:
008e:err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_ENUM (0x500) from extension detection @ ../../../wine/dlls/wined3d/directx.c / 4291. 008e:fixme:win:EnumDisplayDevicesW ((null),0,0x6ff578,0x00000000), stub! 008e:err:d3d:wined3d_check_gl_call >>>>>>> GL_INVALID_ENUM (0x500) from extension detection @ ../../../wine/dlls/wined3d/directx.c / 4291. 008e:fixme:win:EnumDisplayDevicesW ((null),0,0x6ff5d8,0x00000000), stub!
https://bugs.winehq.org/show_bug.cgi?id=41403
Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Ri-li 2.0.1: No window |Ri-li 2.0.1 shows black |content shown (just title |screen instead of actual |bar) |game content
https://bugs.winehq.org/show_bug.cgi?id=41403
--- Comment #14 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- Created attachment 68366 --> https://bugs.winehq.org/attachment.cgi?id=68366 WINEDEBUG=+d3d log
https://bugs.winehq.org/show_bug.cgi?id=41403
Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #15 from Tobias (:Tobbi) Markus tobbi.bugs@googlemail.com --- This works in WIne 6.10.
https://bugs.winehq.org/show_bug.cgi?id=41403
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.11.