http://bugs.winehq.org/show_bug.cgi?id=27062
Summary: Simcity 3000: irrecoverable black screen, even with virtual desktop Product: Wine Version: 1.3.19 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: spoon0042@hotmail.com
Simcity 3000 causes an irrecoverable black screen, even when started with a virtual desktop the entire screen goes black and I haven't found a way to fix it short of killing the X server. The cursor still works however. It worked in 1.3.16; regression testing found the following:
fadfdf21c055caf833a137ffc269c2073dc87fd6 is the first bad commit commit fadfdf21c055caf833a137ffc269c2073dc87fd6 Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Apr 15 18:33:37 2011 +0200
wined3d: Forward surface refcounts to the container.
This will prevent textures from being released if one of its surfaces is still in use by the stateblock. We have similar constructions in d3d8 and d3d9, but those won't prevent the wined3d texture from being released.
:040000 040000 9524a301f942c04b1bd19f6ee763a8662a5afccd a0888eab4fd4a02d6d488071e7b4e84d62f671e0 M dlls
http://bugs.winehq.org/show_bug.cgi?id=27062
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |hverbeet@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=27062
Piotr Pawlow pp@siedziba.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pp@siedziba.pl
--- Comment #1 from Piotr Pawlow pp@siedziba.pl 2011-05-06 14:15:43 CDT --- I found the same commit bisecting regression with Painkiller. The game works fine on Wine 1.3.18, but on 1.3.19 the screen goes black, and at first sight it seems the only way to recover is to restart X server. Fortunately, on closer inspection the black screen effect is caused by gamma being set to 0, so something like this from the text mode makes everything visible again:
DISPLAY=:0 xgamma -gamma 1.0
I don't know if this will help with Simcity (I don't have this game), but it's worth a try.
http://bugs.winehq.org/show_bug.cgi?id=27062
--- Comment #2 from Piotr Pawlow pp@siedziba.pl 2011-05-06 16:12:28 CDT --- I downloaded demo version of Simcity 3000 (link in AppDB), and I can confirm the black screen issue. Restoring gamma works, and then I can play the demo without problems.
The issue with Painkiller, which I mentioned earlier, is that it also crashes, so I filled a separate bug report (bug #27079).
http://bugs.winehq.org/show_bug.cgi?id=27062
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr 2011-05-06 17:09:18 CDT --- Link for the simcity demo suffering of the bug http://www.shacknews.com/file/758/simcity-3000-playable-demo-windows
Pro evolution soccer 4 demo suffers of this bug too: http://www.jeuxvideopc.com/demo/7906-pro-evolution-soccer-4.php
http://bugs.winehq.org/show_bug.cgi?id=27062
--- Comment #4 from joaopa jeremielapuree@yahoo.fr 2011-05-06 17:10:58 CDT --- Many games suffer of this bug with lose of functionality (since the games can not start anymore). Following to the rates of importance ofbug reports, this bug can be marked as Major
http://bugs.winehq.org/show_bug.cgi?id=27062
--- Comment #5 from Piotr Pawlow pp@siedziba.pl 2011-05-06 17:44:35 CDT --- On the other hand, changes in reference counting improved Necrovision slightly (bug #25429). It reaches main menu now without crashing, unfortunately the screen is still black.
http://bugs.winehq.org/show_bug.cgi?id=27062
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.shacknews.com/fi | |le/758/simcity-3000-playabl | |e-demo-windows CC| |kennybobs@o2.co.uk
http://bugs.winehq.org/show_bug.cgi?id=27062
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #6 from Jörg Höhle hoehle@users.sourceforge.net 2011-05-10 09:37:54 CDT --- Piotr, thank you for finding out about the gamma! I confirm it with Simcity 3000 (not unlimited).
I feared an XOrg/kernel bug when I had to use Ctrl-Alt-Backspace, now it appears every user app can change the gamma and turn the whole screen black, incl. mouse.
Star Fury (demo) -- see bug #27087 -- is also affected by the gamma issue. It uses DirectX7 AFAICT. What's noteworthy about it is that with Wine-1.2.2, a sliding gamma appears to be used to produce a fade-in effect (3 times before it gets to the menu). With 1.3.16, it simply hangs.
That means the gamma functionality was lost even before the above regression introduced the black screen. Anybody with a fast machine to perform regression testing on the downloadable Star Fury demo? My hope is that fixing the gamma might eliminate both regressions.
Is Simcity a DirectX7 app too? Star Fury is incredibly slow (in the menu & credits, never got farther than that). So is SC3 -- bug #26932.
http://bugs.winehq.org/show_bug.cgi?id=27062
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #7 from Dan Kegel dank@kegel.com 2011-06-01 15:52:59 CDT --- Does Piotr's patch linked to from bug 27079 help?
http://bugs.winehq.org/show_bug.cgi?id=27062
--- Comment #8 from Michael McGuire spoon0042@hotmail.com 2011-06-01 17:07:33 CDT --- Works for me!
http://bugs.winehq.org/show_bug.cgi?id=27062
--- Comment #9 from Michael McGuire spoon0042@hotmail.com 2011-06-01 17:41:22 CDT --- Too bad I can't edit. It works for me, but: I still get a ton of: fixme:d3d_surface:surface_init Trying to create a render target that isn't in the default pool. Then I think on exit these show up: fixme:d3d:wined3d_device_decref Device released with resources still bound, acceptable but unexpected. and then a bunch of: fixme:d3d:wined3d_device_decref Leftover resource 0xwhatever with type WINED3DRTYPE_SURFACE (0x1). And finally this: err:d3d:wined3d_device_decref Context array not freed!
Not sure if any of that is relevant since it still does seem to work just fine.
http://bugs.winehq.org/show_bug.cgi?id=27062
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #10 from Austin English austinenglish@gmail.com 2011-06-01 18:09:14 CDT --- Marking as dupe then.
*** This bug has been marked as a duplicate of bug 27079 ***
http://bugs.winehq.org/show_bug.cgi?id=27062
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Henri Verbeet hverbeet@gmail.com 2011-06-09 13:44:43 CDT --- Closing.