http://bugs.winehq.org/show_bug.cgi?id=27835
Summary: Freespace 1 hangs on startup with a blank screen Product: Wine Version: 1.3.24 Platform: x86 OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jonas.bugzilla@gmail.com
This seems to be the same as bug 10979.
A git bisect pointed to this commit as the culprit:
7e3985e1fea60da73bae2b9465b94e5d110909fc is the first bad commit commit 7e3985e1fea60da73bae2b9465b94e5d110909fc Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Nov 8 11:50:33 2010 +0100
ddraw: Setup the device window in SetCooperativeLevel().
The problem can also be reproduced with the demo mentioned in that previous bug report (available from http://download.descent-network.com/shareware1/freespace1/playable/fsdemo10.... ). It happens both with and without enabling direct3d in the game (via the FreeSpace.exe launcher).
I've attached a full trace. The hang is indicated by the line
0020:err:ntdll:RtlpWaitForCriticalSection section 0x7cb318 "?" wait timed out in thread 0020, blocked by 0009, retrying (60 sec)
git head has the same behaviour as 1.3.25 (although during configure, I now get the message "configure: WARNING: No sound system was found. Windows applications will be silent.").
Interestingly, applying http://www.winehq.org/pipermail/wine-patches/2011-July/104505.html on top of git head makes things even worse: the game no longer even switches into full screen mode before it hangs when that patch is applied.
http://bugs.winehq.org/show_bug.cgi?id=27835
--- Comment #1 from Jonas Maebe jonas.bugzilla@gmail.com 2011-07-19 09:36:56 CDT --- The log is apparently too big to attach, so I've put it at http://users.elis.ugent.be/~jmaebe/tracelog.txt.bz2
http://bugs.winehq.org/show_bug.cgi?id=27835
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression URL| |http://download.descent-net | |work.com/shareware1/freespa | |ce1/playable/fsdemo10.exe CC| |hverbeet@gmail.com Component|-unknown |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=27835
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |wylda@volny.cz Version|1.3.24 |1.3.7 Ever Confirmed|0 |1
--- Comment #2 from Wylda wylda@volny.cz 2011-07-29 16:51:23 CDT ---
Confirming. I end up with the same commit wine-1.3.6-283-g7e3985e. Changing the version accordingly.
http://bugs.winehq.org/show_bug.cgi?id=27835
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.6 |Mac OS X
http://bugs.winehq.org/show_bug.cgi?id=27835
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |7e3985e1fea60da73bae2b9465b | |94e5d110909fc
http://bugs.winehq.org/show_bug.cgi?id=27835
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #3 from GyB gyebro69@gmail.com 2011-09-18 13:13:06 CDT --- This is still a problem as of wine-1.3.28-308-gae80430: Freespace hangs after starting.
I came across a similar problem when trying to start Master of Orion 3: after launching the game the screen stays black, only the mouse pointer is visible. Unlike Freespace, MoO 3 doesn't hang, it keeps running, but nothing can be seen except for the mouse cursor. Bisecting led me to the same commit [7e3985e1fea60da73bae2b9465b94e5d110909fc].
A workaround for MoO3 (which doesn't help in the case of Freespace): - use a virtual desktop, sized 800x600 (that's the game's own resolution). - in fullscreen mode the desktop must be set to 800x600 before starting the game, otherwise the black screen issue can be observed.
Fedora 15, Gnome 3, Nvidia 250 / driver 280.13
http://bugs.winehq.org/show_bug.cgi?id=27835
--- Comment #4 from Henri Verbeet hverbeet@gmail.com 2011-09-18 13:18:32 CDT --- (In reply to comment #3)
This is still a problem as of wine-1.3.28-308-gae80430: Freespace hangs after starting.
Yeah, still working on the fix for this. It depends on some fairly fundamental ddraw issues, but it's getting closer.
http://bugs.winehq.org/show_bug.cgi?id=27835
--- Comment #5 from Henri Verbeet hverbeet@gmail.com 2011-12-01 00:13:16 CST --- Should be fixed by 82dd612d50f8557714f204ca6fa90bee571ca9df.
http://bugs.winehq.org/show_bug.cgi?id=27835
GyB gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |82dd612d50f8557714f204ca6fa | |90bee571ca9df Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #6 from GyB gyebro69@gmail.com 2011-12-01 00:26:32 CST --- (In reply to comment #5)
Should be fixed by 82dd612d50f8557714f204ca6fa90bee571ca9df.
Indeed, Freespace 1 starts correctly in wine-1.3.33-310-gbf644e0. Unfortunately, Master of Orion 3 still behaves in the same way as described in comment #3. That's probably a slightly different issue, I guess.
Marking FIXED.
http://bugs.winehq.org/show_bug.cgi?id=27835
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2011-12-01 00:33:10 CST --- (In reply to comment #6)
Unfortunately, Master of Orion 3 still behaves in the same way as described in comment #3. That's probably a slightly different issue, I guess.
File a new regression, I guess.
http://bugs.winehq.org/show_bug.cgi?id=27835
--- Comment #8 from Jonas Maebe jonas.bugzilla@gmail.com 2011-12-02 13:28:34 CST --- Created attachment 37747 --> http://bugs.winehq.org/attachment.cgi?id=37747 +ddraw,+d3d,+graphics log
It doesn't work for me with git HEAD (63e6dbc139b88e42f8fb96bcb08b30eed3529028) on Mac OS X 10.6.8:
a) the game no longer detects any Direct3D adapter in the launcher (I have an NVidia 320m). Other Direct3D games (such as The Witcher and XIII) still work, so Direct3D support in general is not broken on my system. b) launching without Direct3D no longer results in a hang on a black screen, but in hang on a white screen. I no longer get the "err:ntdll:RtlpWaitForCriticalSection section" error anymore though, so it's probably something different. c) launching with WINEDEBUG=+all results in the game crashing (or at least in something crashing, because the wine message about a program unexpectedly terminating, I get another message about DirectSound being able to uninitialize and finally the switch the fullscreen and the white screen). I've put that full log at http://users.elis.ugent.be/~jmaebe/fs1demo-all.log.bz2 (2.5MB compressed, 41MB uncompressed) d) launching with WINEDEBUG=+ddraw,+d3d,+graphics results in the attached log (in which I don't see any errors at first sight)
http://bugs.winehq.org/show_bug.cgi?id=27835
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-12-02 13:34:13 CST --- Closing bugs fixed in 1.3.34.