https://bugs.winehq.org/show_bug.cgi?id=56117
Bug ID: 56117 Summary: Celtic Kings runs out of memory in mere seconds when music is enabled Product: Wine Version: 8.18 Hardware: x86-64 URL: https://archive.org/download/celtic-kings/Celtic%20Kin gs.zip OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: dmusic Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: rbernon@codeweavers.com Regression SHA1: 7a678903fbe9b384e97b23bc8cb73c9239616054 Distribution: ArchLinux
Created attachment 75783 --> https://bugs.winehq.org/attachment.cgi?id=75783 terminal output
Audio never worked in the game without native directmusic and this has not changed with the more complete directmusic implementation in recent Wine.
The problem is that the game runs out of memory in about 15 seconds just while idling in the main menu.
Some kind of memory leak first appeared in Wine-8.18 after commit 7a678903fbe9b384e97b23bc8cb73c9239616054 dmime: Implement IDirectMusicPerformance_GetNotificationPMsg.
It was less severe and allowed me to play the tutorial for a couple minutes then the game quit abruptly. For example I can see in htop that the memory consumption of Celtic Kings.exe grows steadily whenever I issue a move command for my character.
In Wine-8.19 the issue became more severe: the game runs out of memory in 10-15 seconds while idling in the main menu when music is enabled (no user interaction is needed). This is due to commit d5e156fa7fc9ff47c1c99af342047319f0f23bfa dmime: Rewrite message thread with a condition variable.
Can be reproduced with the demo version.
Tested with wine-9.0-rc3-6-g91a29134ff3.