http://bugs.winehq.org/show_bug.cgi?id=21154
Summary: Overlord 2 Demo crashes during the start up Product: Wine Version: 1.1.35 Platform: x86 URL: http://www.filefront.com/13887123/Overlord-2-Playable- Demo/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: wylda@volny.cz
Created an attachment (id=25396) --> (http://bugs.winehq.org/attachment.cgi?id=25396) console log from wine-1.1.35-180-g20a50f3
Overlord 2 Demo crashes during the start up. After starting up, it looks frozen, but when you press enter, you get attached crash.
1. On nvidia cards, Overlord 2 requires PhysiX (which is installed together with the game), but when trying to run the game, it complains about missing nvidia's nvcuda.dll. I took that file from WinXP and put it into windows/system32. Then the demo runs fine on wine-1.1.34.
2. Did a regression test between 1.1.34 and 1.1.35:
commit 817714912b59be49ea06251f2b91b959f07c1133 Author: Stefan Dösinger stefan@codeweavers.com Date: Sun Dec 6 17:39:47 2009 +0100
wined3d: Infrastructure to render swapchains to a FBO.
3. No other bug report suffers from this commit.
4. Revert of this patch after git checkout makes that problem go away.
5. Adding author of this patch to CC.
--private keyword: bisected
PS: This is my 2nd time, when i'm not able to find such regression by git bisect. My first suspect on wrong build process was closed as invalid (bug 20792). Bisecting most of the time ends up in non-working 1.1.34 (aka ALL BAD bisect).
http://bugs.winehq.org/show_bug.cgi?id=21154
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression CC| |stefan@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #1 from Wylda wylda@volny.cz 2010-01-05 16:14:26 ---
Still not fixed in wine-1.1.35-439-g2f529c3.
http://bugs.winehq.org/show_bug.cgi?id=21154
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefandoesinger@gmx.at
--- Comment #2 from Stefan Dösinger stefandoesinger@gmx.at 2010-01-07 04:25:34 --- Is it possible that the surface has SFLAG_SWAPCHAIN set, but container is NULL? ie, there is no swapchain?
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #3 from Wylda wylda@volny.cz 2010-01-07 04:57:49 --- (In reply to comment #2)
Is it possible that the surface has SFLAG_SWAPCHAIN set, but container is NULL? ie, there is no swapchain?
That question is supposed to belong to me? If yes, how can i find that out?
BTW: It crashes much sooner than it needs PhysiX (nvcuda.dll), so it's not needed. In other words it is enough to download that demo and simply run. (you will need that dll when fixed).
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #4 from Stefan Dösinger stefandoesinger@gmx.at 2010-01-07 06:22:43 --- Downloading the demo right now.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #5 from Wylda wylda@volny.cz 2010-03-06 08:22:06 --- (In reply to comment #4)
Downloading the demo right now.
Hi Stefan, how was your download?
BTW: This bisected regression is still not fixed in wine-1.1.40.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #6 from Wylda wylda@volny.cz 2010-03-19 15:02:01 ---
This bisected regression is still not fixed in wine-1.1.41.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #7 from Wylda wylda@volny.cz 2010-03-30 17:31:09 ---
This bisected regression is still not fixed in wine-1.1.41-339-gc38d565.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #8 from Wylda wylda@volny.cz 2010-04-09 05:29:27 ---
This bisected regression is still not fixed in wine-1.1.42-146-g1c02a90.
Nothing has changed... surface_is_offscreen thing is still there, i.e. trace from comment #0 is valid.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #9 from Stefan Dösinger stefandoesinger@gmx.at 2010-04-09 16:18:28 --- This seems like some refcounting problem to me:
0026:warn:d3d:IWineD3DSwapChainImpl_Destroy (0x7339528) Something's still holding back buffer 0 (0x733b050).
The swapchain this buffer belongs to is not the implicit swapchain. The game creates it's own, sets the backbuffer as render target and releases the swapchain. That leaves the surface without a container, and 817714912b59be49ea06251f2b91b959f07c1133 just tripped on the existing error and shows the crash.
I am sure(although this needs a test) that we're supposed to keep the swapchain alive if one of it's surfaces is in use, just like we keep textures and buffers alive that are bound to a stateblock. d3d9 unfortunately doesn't hold a reference to bound resources, so this is a more complicated mechanism than simply calling AddRef. I suspect a similar problem arises if we set a texture's surface as render target and release the texture.
http://bugs.winehq.org/show_bug.cgi?id=21154
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
--- Comment #10 from Wylda wylda@volny.cz 2010-04-18 06:10:03 ---
Component set to Direct3D.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #11 from Wylda wylda@volny.cz 2010-04-21 14:11:29 ---
This regression (bisected) is still present in wine-1.1.43-191-g7614656.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #12 from Wylda wylda@volny.cz 2010-05-10 14:25:46 ---
This regression (bisected) is still present in wine-1.1.44-72-g658209b (still the "surface_is_offscreen" thing).
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #13 from Wylda wylda@volny.cz 2010-06-20 07:31:09 ---
This regression (bisected) is still present in wine-1.2-rc4.
http://bugs.winehq.org/show_bug.cgi?id=21154
--- Comment #14 from Wylda wylda@volny.cz 2010-08-21 01:11:47 ---
FIXED in wine-1.3.0-276-g0b24db5.
Particular commit (wine-1.3.0-276-g0b24db5): http://source.winehq.org/git/wine.git/?a=commit;h=0b24db5db5468808d29b69036d...
Thank you Henri!
PS: Now the games run, no more "surface_is_offscreen" thing, but some characters are semi-transparent and shadows do not lay on the ground, but over my character etc. I will probably open a new bug report soon.
http://bugs.winehq.org/show_bug.cgi?id=21154
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #15 from Wylda wylda@volny.cz 2010-08-21 01:13:23 ---
Marking fixed.
http://bugs.winehq.org/show_bug.cgi?id=21154
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2010-09-03 14:05:22 CDT --- Closing bugs fixed in 1.3.2.
http://bugs.winehq.org/show_bug.cgi?id=21154
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0b24db5db5468808d29b69036dc | |09492b86e1b9b Regression SHA1| |817714912b59be49ea06251f2b9 | |1b959f07c1133