http://bugs.winehq.org/show_bug.cgi?id=31747
Bug #: 31747 Summary: Colobot demo crashes when changing rendering settings Product: Wine Version: 1.4-rc1 Platform: x86 URL: http://www.ceebot.com/download/demo/colobotdemo17e.exe OS/Version: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: hverbeet@gmail.com Classification: Unclassified Regression SHA1: 992dbc10786b79959d8b0a790974f6630aa81e3b
Created attachment 41747 --> http://bugs.winehq.org/attachment.cgi?id=41747 terminal output
The game crashes when I change any of the available settings (screen resolution, graphical driver, full-screen/windowed mode) on the Options -> Device screen. The game displays the following error message before crashing: "A DDraw object has a non-zero reference count (meaning it was not properly cleaned up). COLOBOT will now exit."
Steps to reproduce the problem: 1. Install, then start the demo with colobot.exe 2. Create a new player and go to <Options> in the main menu 3. Select the <Device> page and remove the checkmark from the 'Full screen' checkbox. Click on <Apply changes>...the game crashes at this point. Changing anything on this page results in the same crash.
According to my testing, the problem appeared in Wine 1.4-rc1 and is still present in wine-1.5.13-144-ge3a2e3a. The result of the regression test:
992dbc10786b79959d8b0a790974f6630aa81e3b is the first bad commit commit 992dbc10786b79959d8b0a790974f6630aa81e3b Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Jan 17 21:13:35 2012 +0100
ddraw: Maintain D3D state across cooperative level changes.
:040000 040000 9b0a142ccad4726276441d6b1f07d1576b0a9f5d 1cdfa767f8258ffb112b4441d09b0d602f8db3a0 M dlls
Fedora 17 x86 X.Org X Server 1.12.3 Nvidia 250 / driver 304.37
http://bugs.winehq.org/show_bug.cgi?id=31747
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2012-09-28 13:19:19 CDT --- Created attachment 41868 --> http://bugs.winehq.org/attachment.cgi?id=41868 patch
I still need to write a couple of tests, but I think the attached patch is the correct fix.
http://bugs.winehq.org/show_bug.cgi?id=31747
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |82282db65e674c7a45b89b9198c | |ab60a5d0b8cff Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #2 from GyB gyebro69@gmail.com 2012-10-01 14:14:58 CDT --- Fixed by http://source.winehq.org/git/wine.git/commitdiff/82282db65e674c7a45b89b9198c...
http://bugs.winehq.org/show_bug.cgi?id=31747
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2012-10-12 13:34:48 CDT --- Closing bugs fixed in 1.5.15.