http://bugs.winehq.org/show_bug.cgi?id=10731
Marko Schulz harleen@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |harleen@gmx.de
--- Comment #11 from Marko Schulz harleen@gmx.de 2008-05-17 17:04:34 --- The problem seems to be related to DSound. With debug output for dsound (WINEDEBUG=trace+dsound) you can see where the memory goes:
trace:dsound:DirectSoundDevice_AddBuffer buffer count is now 802
When this count reaches around 4000, the game crashes on my computer, because 2GB RAM and the swap are full.
Below is a part of the wine log with dsound trace. This log was created with the Europa Universalis III Demo, which can be downloaded from http://www.europauniversalis3.com/
------------ [before this, there are only lots and lots repetitions of the following line] trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0x1b05f918, state=0 trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0x1b27f910, state=0 trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0x1b6bf578, state=0 trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0x1b5af5b8, state=0 trace:dsound:DSOUND_MixToPrimary Mixed at least 0 from all buffers trace:dsound:norm16 0x14e0028 - 0x7d10e000 0 trace:dsound:DSOUND_timer completed processing at 170649, duration = 41 trace:dsound:DSOUND_timer (1,0,0x1333ef8,0x0,0x0) trace:dsound:DSOUND_timer entering at 170649 trace:dsound:DirectSoundDevice_AddBuffer buffer count is now 802 trace:dsound:SecondaryBufferImpl_Create (0x1b49f750,0xeef098) trace:dsound:IDirectSoundBufferImpl_AddRef (0x1b49f750) ref was 0 trace:dsound:SecondaryBufferImpl_AddRef (0x1b5af708) ref was 0 trace:dsound:IDirectSound8_IDirectSound8_DuplicateSoundBuffer (0x12c5638,0x16886550,0xeef298) trace:dsound:DirectSoundDevice_DuplicateSoundBuffer (0x1333ef8,0x16886550,0xeef298) trace:dsound:IDirectSoundBufferImpl_Duplicate (0x1333ef8,0x168863c0,0x168863c0) trace:dsound:DSOUND_RecalcFormat (0x1b8df558) trace:dsound:DSOUND_MixToTemporary (0x1b8df558, 0xf41b070) trace:dsound:DSOUND_MixToTemporary (0x1b8df558) Same sample rate 44100 = primary 44100 trace:dsound:DSOUND_PerformMix (0x1333ef8) trace:dsound:DSOUND_PrimaryGetPosition (0x1333ef8,0x7ca069b8,0x7ca069b4) trace:dsound:DSOUND_PrimaryGetPosition playpos = 0, writepos = 0 (0x1333ef8, time=170654) trace:dsound:DSOUND_PerformMix primary playpos=0, writepos=0, clrpos=0, mixpos=0, buflen=65536 trace:dsound:DSOUND_PerformMix prebuff_left = 0, prebuff_max = 10x2048=20480, writelead=0 trace:dsound:DSOUND_PerformMix Buffer starting or buffer underrun trace:dsound:DSOUND_MixToPrimary (0,20480,1) trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0xaf08268, state=0 trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0xb1ee120, state=0 trace:dsound:DSOUND_MixToPrimary MixToPrimary for 0xb1ee270, state=0 [stopped program here wit CTRL+C]