WineHQ
Bug Tracking Database – Bug 35280

 Bugzilla

 

Last modified: 2014-02-07 13:06:03 UTC  

Dracula 4 (The Shadow of the Dragon) freezes when starting a new game (using built-in msvcr100)

Bug 35280 - Dracula 4 (The Shadow of the Dragon) freezes when starting a new game (using built-in msvcr100)
Dracula 4 (The Shadow of the Dragon) freezes when starting a new game (using ...
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: msvcrt
1.7.9
x86 Linux
: P2 minor
: ---
Assigned To: Mr. Bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-12-31 14:40 UTC by Béla Gyebrószki
Modified: 2014-02-07 13:06 UTC (History)
1 user (show)

See Also:
Regression SHA1:
Fixed by SHA1: e16059113cf717a0422c4ff6e0d0d64e5a60355b
Distribution: ---
Staged patchset:


Attachments
winedbg backtrace (6.88 KB, text/plain)
2013-12-31 14:40 UTC, Béla Gyebrószki
Details
(partial) +relay,+msvcrt,+seh log (uncompressed 61 MB) (935.98 KB, application/x-7z-compressed)
2014-01-09 09:24 UTC, Béla Gyebrószki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Béla Gyebrószki 2013-12-31 14:40:33 UTC
Created attachment 47056 [details]
winedbg backtrace

This was tested with the GOG.com version of the game, no demo version has been released.
The game comes with the following native dlls placed in the game directory: msvcp100, msvcp100d, msvcr100, msvcr100d. The problem doesn't occur when using native msvcr100.dll.

If I use Wine's built-in msvcr100 the game freezes when I start a new game from the menu. The screen is not refreshing but menu music is still playing. The 'Dracula4.exe' process and wineserver consume only 1-2% CPU all the time. At this point in-game videos should be played. The same freezing occurs if I choose <Prologue> from the main menu.

Now comes the tricky part that makes debugging complicated (at least for me):
-if I run the game under winedbg (wine winedbg Dracula4.exe), then starting a new game is working, the videos are playing, but the game crashes as soon as the last video ends.
- the same scenario happens if I start the game normally, but redirect the output to a file: 'wine Dracula4.exe >dracula.log 2>&1). Just like when running under winedbg, the game gets past the videos and crashes when the videos end.
- if I start the game with debug channels enabled, e.g. 'WINEDEBUG=+msvcrt,+tid wine Dracula4.exe >>msvcrt.log 2>&1', then the game doesn't crash at all, it plays the videos and the game continues normally after the videos.
- if I start the game normally, let it freeze and attach winedbg to the already hung Dracula4.exe process, then I receive a backtrace as can be seen in the attached log file.

Plain terminal output doesn't show anything interesting except for a
>fixme:heap:HeapSetInformation (nil) 1 (nil) 0

Fedora 19 x86
wine-1.7.9-143-g33132ce
Comment 1 Piotr Caban 2014-01-08 09:20:42 UTC
The backtrace shows that game waits for console input. Wine, when run from console, has always attached input. On windows a call to scanf will fail for non-console application, on wine it will be waiting for console input.

This behavior will be the same with native and builtin msvcr100. So the bug must be somewhere else. Could you please attach a log with msvcrt,relay,seh channels. Probably you will be able to do it by redirecting only stderr to file (2>log).
Comment 2 Béla Gyebrószki 2014-01-09 09:24:29 UTC
Created attachment 47160 [details]
(partial) +relay,+msvcrt,+seh log (uncompressed 61 MB)

The last 1 million lines of a +relay,+msvcrt,+seh log.
The complete log is over 470 MB in uncompressed form, and is accessible here:
https://drive.google.com/file/d/0B-tTbLKBl-tOZVd4eXp2LWtvaGM/edit?usp=sharing

wine-1.7.10-112-g81c42ce
Comment 3 Piotr Caban 2014-01-29 03:17:39 UTC
It's probably fixed. Please retest.
Comment 4 Béla Gyebrószki 2014-01-29 20:02:00 UTC
Tested with wine-1.7.11-162-ga1b9634 and the problem is indeed fixed, thanks Piotr.
Comment 5 Alexandre Julliard 2014-02-07 13:06:03 UTC
Closing bugs fixed in 1.7.12.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers