[Bug 28644] New: Regression: Uru launcher using up CPU and RAM on startup
http://bugs.winehq.org/show_bug.cgi?id=28644 Bug #: 28644 Summary: Regression: Uru launcher using up CPU and RAM on startup Product: Wine Version: 1.3.30 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winealsa.drv AssignedTo: wine-bugs(a)winehq.org ReportedBy: diafero(a)arcor.de CC: aeikum(a)codeweavers.com Classification: Unclassified Regression SHA1: b1fdaa81b05dcf5931e5ab58f3ec640eac60e636 Created attachment 36813 --> http://bugs.winehq.org/attachment.cgi?id=36813 Terminal output if the failing app After upgrading to wine 1.3.30 (I am compiling wine myself, on Debian testing 64bit, but wine is built as 32bit), launcher of Uru [1] stopped working. It starts up, and after clicking the first button ("login"), it is supposed to show an avatar selection and configuration dialogue. Instead, it hangs, using 50% CPU (one of my two cores), and filling up my RAM. I killed the process after using 1.5GB, or it would have swapped the rest of my system out and made it unusable. Before the upgrade, Uru worked fine. I made a bisect, with the following result: b1fdaa81b05dcf5931e5ab58f3ec640eac60e636 is the first bad commit commit b1fdaa81b05dcf5931e5ab58f3ec640eac60e636 Author: Andrew Eikum <aeikum(a)codeweavers.com> Date: Sat Sep 24 09:02:52 2011 -0500 dsound: Remove hardware acceleration support. :040000 040000 bbf821842a3091bac6a301d3957dfe64afababe5 a049ad0be952ad1e2246460bc37577aa27642813 M dlls :040000 040000 1fdbfe7cab24039e2f96ee15b04ef76a089c2c3f 903753276d176547cbde56a720434b9208f20671 M include The configuration dialogue is also about audio, so this looks plausible. You can find the terminal output (WINEDEBUG left empty) attached. Please let me know if I should repeat the test with some debug channels enabled. [1] AppDB: http://appdb.winehq.org/objectManager.php?sClass=application&iId=10836 Demo download: http://download.cnet.com/Uru-Ages-Beyond-Myst-demo/3000-2097_4-10245688.html (Ages Beyond Myst is Complete Chronicles without extension packs) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 Dmitry Timoshkov <dmitry(a)baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Summary|Regression: Uru launcher |Uru launcher using up CPU |using up CPU and RAM on |and RAM on startup |startup | -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Component|winealsa.drv |directx-dsound Target Milestone|--- |1.4.0 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 --- Comment #1 from Andrew Eikum <aeikum(a)codeweavers.com> 2011-10-11 09:57:52 CDT --- Created attachment 36814 --> http://bugs.winehq.org/attachment.cgi?id=36814 (NEEDS WORK) dsound: Don't claim to support hardware buffers Thanks for the very nice bug report. This also happens on my system. For some reason, the app is continually creating new buffers with IDirectSound8::CreateSoundBuffer(). The buffers are requested with DSBCAPS_LOCHARDWARE. If I detect that flag and return an error code, then the app releases all buffers and quits out of dsound entirely. Maybe they're trying to probe exactly how many hardware buffers can be created? The reason this didn't fail with the ALSA dsound driver is because that driver just returned E_NOTIMPL for hardware buffers, which triggered the quit from dsound as I described. Unfortunately, I can't get the actual game to launch ("Failed to launch client program"), so I can't see how it behaves when actually playing audio. I've attached a rough patch here which restores the ALSA dsound driver behavior (returning E_NOTIMPL), which also matches the behavior of my Windows 7 VM after a brief test. This should stop the CPU & RAM hogging. If you're capable of testing the actual application, can you tell me if this seems to fix sound entirely? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 --- Comment #2 from diafero(a)arcor.de 2011-10-11 11:09:59 CDT --- Yes, it seems that this simple check really does it... the game starts up fine, and sound in the game works as expected. Thanks a lot! Now, checking my other wine apps ;-)
Unfortunately, I can't get the actual game to launch ("Failed to launch client program"), so I can't see how it behaves when actually playing audio. I just downloaded the demo from [1] and launching the actual game worked - it is normal however for sound not to work in there as the sound decompression fails (bug 17403).
[1] http://www.fileplanet.com/133011/download/Uru:-Ages-Beyond-MYST-Demo -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 --- Comment #3 from Andrew Eikum <aeikum(a)codeweavers.com> 2011-10-11 11:18:12 CDT --- (In reply to comment #2)
Yes, it seems that this simple check really does it... the game starts up fine, and sound in the game works as expected. Thanks a lot! Now, checking my other wine apps ;-)
I'm glad to hear it :) I will put together some tests and get it into Wine shortly.
Unfortunately, I can't get the actual game to launch ("Failed to launch client program"), so I can't see how it behaves when actually playing audio. I just downloaded the demo from [1] and launching the actual game worked - it is normal however for sound not to work in there as the sound decompression fails (bug 17403).
I'm a little confused. Does sound work perfectly now with just the patch from Comment 1 applied? Or are we back to the broken state that Bug 17403 reports? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 --- Comment #4 from diafero(a)arcor.de 2011-10-11 11:29:58 CDT --- Sorry, I should have been more clear: For my installation of the full game, I worked around bug 17403 by using a Python script [1] that does the sound decompression, instead of letting the game do it itself. So, the other bug is still open, but if one can get the fixed files (an alternative would be to copy them from a Windows installation), sound works as expected. Which is the same as with wine 1.3.29. Btw, that patch also fixes Audiosurf [2] :D [1] https://github.com/H-uru/libhsplasma/blob/master/Python/scripts/sounddecompr... [2] http://appdb.winehq.org/objectManager.php?sClass=application&iId=6710 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 Andrew Eikum <aeikum(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9b15c17376a6943af05f8d11838 | |6d87c6ac3829b Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #5 from Andrew Eikum <aeikum(a)codeweavers.com> 2011-10-20 14:47:13 CDT --- Fixed by 9b15c17376a6943af05f8d118386d87c6ac3829b. Thank you for reporting & testing, diafero. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #6 from Alexandre Julliard <julliard(a)winehq.org> 2011-10-21 13:50:50 CDT --- Closing bugs fixed in 1.3.31. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28644 --- Comment #7 from diafero(a)arcor.de 2011-10-22 04:55:33 CDT --- I can confirm that both Uru and Audiosurf work fine with wine 1.3.31 :) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org