http://bugs.winehq.org/show_bug.cgi?id=28291
Summary: Heroes III: sound stops and program hangs at exit Product: Wine Version: 1.3.27 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jobstz@yahoo.de
Created an attachment (id=36255) --> (http://bugs.winehq.org/attachment.cgi?id=36255) runtime log
This bug has been present since 1.3.25 and is probably due to the rewrite of the sound drivers.
When starting up the game one sees a short intro (which i click to skip) and then the default 'home' screen with options 'new game' etc. In the background music is playing but after a while it suddenly stops. This silence persists throughout the whole game. In pre-1.3.25 versions the game worked perfectly well. When trying to quit the game it hangs and does not respond.
AFAICT the important error messages are the 'err:ntdll:RtlpWaitForCriticalSection' messages that begin to appear after the sound stops and probably state that the sound thread is 'deadlocked' in a way. The hang upon shutdown is probably also just the same thread that simply doesn't want to exit. (The 'err:ntdll:RtlpWaitForCriticalSection' stuff still continues to show repeatedly when that point is reached)
For completeness I attach a full log up until the hang.
My guess would be that the very source is the 'err:dplay:DPLAYX_ConstructData' message which is followed by a buffer overflow or smth like that since the "static data couldn't be mapped to memory space". Data on the stack tends to overflow whenever a limit is reached.
http://bugs.winehq.org/show_bug.cgi?id=28291
bezdomny@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bezdomny@gmail.com
--- Comment #1 from bezdomny@gmail.com 2011-09-20 23:36:06 CDT --- Apologies if this isn't the exact same problem, however I am seeing very similar symptoms including the 'err:ntdll:RtlpWaitForCriticalSection' error reported by iolo.
I am seeing similar issues, initially noticed when trying to run Deus Ex (original) via wine on MacOS 1.6.8 (64 bit machine) but then confirmed using vlc.exe playing a simple mp3 file.
Sound starts, but stops and won't restart after a given period of time. This seems to vary from 1-2 seconds up to around 10-15 seconds, it varies.
I have tried both hardware/software audio in winecfg, as well as setting it to 44/22/11kHz using both 8 and 16bit. Changing these values doesn't seem to have a major effect on the duration before sound stops. At the time that sound does stop I see the first two lines of my log repeated constantly, faster than the terminal can effectively scroll them. Specifically:
*** set a breakpoint in malloc_error_break to debug wine(63899,0x4119ca00) malloc: *** error for object 0x41e6a070: pointer being freed was not allocated
The backtrace + library dump came up when I control C'd wine, as it wasn't responding.
Repeated hitting of the 'Test Audio' button in winecfg didn't seem to cause this, although sound queued up and continued playing after I had stopped pressing it.
bash-3.2$ wine --version wine-1.3.28-421-gb615335 #note: wine was compiled from git source just prior to the test.
bash-3.2$ X -version X.org Release 7.5 X.Org X Server 1.10.3 Build Date: 20110720
http://bugs.winehq.org/show_bug.cgi?id=28291
--- Comment #2 from iolo jobstz@yahoo.de 2011-09-27 03:52:30 CDT --- Just for status: the bug persists in 1.3.29
http://bugs.winehq.org/show_bug.cgi?id=28291
--- Comment #3 from iolo jobstz@yahoo.de 2011-10-11 10:15:48 CDT --- This bug appears to be fixed in 1.3.30. Finally I can play Heroes 3 again :-)
http://bugs.winehq.org/show_bug.cgi?id=28291
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com 2011-10-11 12:47:45 CDT --- (In reply to comment #3)
This bug appears to be fixed in 1.3.30. Finally I can play Heroes 3 again :-)
Fixed.
http://bugs.winehq.org/show_bug.cgi?id=28291
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2011-10-21 13:49:54 CDT --- Closing bugs fixed in 1.3.31.