http://bugs.winehq.org/show_bug.cgi?id=19715
Summary: SWAT 4 Freezes, loses mouse focus, crashes. Product: Wine Version: unspecified Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: webmaster@geekstreak.com
Created an attachment (id=23035) --> (http://bugs.winehq.org/attachment.cgi?id=23035) Wine Console output.
While playing SWAT 4, in various sections the game will temporarily freeze with a Critical Section wait timeout. After several seconds the game will unfreeze but loses all mouse input (and sometimes loses keyboard input). The mouse will be able to leave the screen, even if it's warped.
Attached is the wine terminal output.
Reproducing this problem:
In the first level - "Food Wall Restaurant" - you can walk into the front door of the restaurant. After you and your men are inside the dining area, the game should freeze. Sometimes nobody is in the dining area. Simply restarting the level should fix this, as the game randomizes the positions of enemies and civilians.
Note 1:
The game is unplayable due to the well known mouse capture problem that requires an xorg API fix. To get around this problem, a simple mouse hack was written using the middle click to switch between warped and non-warped mouse modes. Without this, menu navigation is impossible, or looking around in the game is impossible.
I can confirm that this minor hack does not affect this bug - a version of wine without the hack was used to confirm the loss of mouse input.
Note 2:
dlls/ntdll/critsection.c, line 436, wait_semaphore - changing the 5 second delay to 300 seconds temporarily alleviates the problem, allowing the player to usually get through several levels; however, other problems occur that may or may not be related to this bug (freezes at random intervals, textures load as garbage in random levels, the error message is slightly different, etc...)