http://bugs.winehq.org/show_bug.cgi?id=31829
Bug #: 31829 Summary: Ad Astra fails to start when music enabled Product: Wine Version: 1.5.1 Platform: x86 URL: http://www.gamedev.net/page/community/gds/view/_/actio n/ad-astra-r174 OS/Version: Linux Status: NEW Keywords: download, regression Severity: minor Priority: P2 Component: directx-dmusic AssignedTo: wine-bugs@winehq.org ReportedBy: gyebro69@gmail.com CC: aeikum@codeweavers.com Classification: Unclassified Regression SHA1: 5e522a1d1c7c84a4c89f67770ff391f05662d35b
Created attachment 41888 --> http://bugs.winehq.org/attachment.cgi?id=41888 terminal output
Ad Astra is a freeware space exploration game. On startup the game shows a black screen for a moment, then it quits (without a crash dialog/backtrace).
Steps to reproduce the problem: 1. unpack the archive and start the game with AdAstraDX9.exe.
According to my testing, the problem appeared in Wine 1.5.1, and is still present in 1.5.14. The result of the regression test:
5e522a1d1c7c84a4c89f67770ff391f05662d35b is the first bad commit commit 5e522a1d1c7c84a4c89f67770ff391f05662d35b Author: Andrew Eikum aeikum@codeweavers.com Date: Mon Mar 19 07:35:17 2012 -0500
dmloader: Don't claim partial success when loading fails.
:040000 040000 29041b7005a7e7e930ca59d3ca0383b696182b6a 0e98b8be7dce48a9b624f758fc36a6e401e335c5 M dlls
Reverting the patch on 1.5.14 fixes the startup problem.
The game uses midi files for background music, some midi files are located in the /midi directory. Running Timidity before starting the game doesn't help. As a workaround for the startup problem, either remove those midi files or install native directmusic via winetricks. Let me know if you need a debug log (+dmloader,...)
http://bugs.winehq.org/show_bug.cgi?id=31829
--- Comment #1 from Andrew Eikum aeikum@codeweavers.com 2012-10-01 07:32:02 CDT --- That commit fixed something in dmusic that allowed the game to go further in its audio initialization, but then run into a different dmusic bug that causes it to quit instead of just disabling audio. Wine's dmusic is largely unimplemented, so I wouldn't expect this to work any time soon (though Christian Costa is doing active work on dmusic, so maybe someday).
In the meantime, workaround with native directmusic, as you said.
http://bugs.winehq.org/show_bug.cgi?id=31829
Christian Costa titan.costa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |titan.costa@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=31829
--- Comment #2 from Austin English austinenglish@gmail.com --- Still in 1.7.30.
https://bugs.winehq.org/show_bug.cgi?id=31829
Teras teras@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |teras@luukku.com
--- Comment #3 from Teras teras@luukku.com --- wine AdAstraDX9
fixme:dmime:IDirectMusicPerformance8Impl_Init (iface = 0x8e7c408, dmusic = (nil), dsound = 0x8e18ce4, hwnd = 0x20054) fixme:dmime:IDirectMusicPerformance8Impl_AddPort (0x8e7c408, (nil)): stub fixme:dmsynth:IDirectMusicSynth8Impl_SetMasterClock (0x8e7d668)->(0x8e7d530): stub fixme:dmsynth:IDirectMusicSynthSinkImpl_SetMasterClock (0x8e7cc58)->(0x8e7d530): stub fixme:dmsynth:IDirectMusicSynth8Impl_Open (0x8e7d668)->(0x33fc98): stub err:dmloader:IDirectMusicLoaderImpl_SetObject : could not attach stream to file fixme:dmloader:IDirectMusicLoaderImpl_SetSearchDirectory : fClear ignored
All audio related lines that I could find from default output run.
Doesnt work without overrides.
wine-1.7.37-143-g3b2cf06
https://bugs.winehq.org/show_bug.cgi?id=31829
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- The problem has evolved to a different situation, reverting the patch no longer helps. Renaming the midi folder to something else does not help for me in 1.7.49, it does in 1.6.
https://bugs.winehq.org/show_bug.cgi?id=31829
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #5 from super_man@post.com --- Fails with both wine-git and staging 1.9.10.
https://bugs.winehq.org/show_bug.cgi?id=31829
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #6 from winetest@luukku.com --- The problem has evolved something new.
err:dmloader:IDirectMusicLoaderImpl_SetObject : could not attach stream to file L"C:\windows\system32\drivers\gm.dls", make sure it exists
wine 2.0rc6.
https://bugs.winehq.org/show_bug.cgi?id=31829
--- Comment #7 from Andrew Eikum aeikum@codeweavers.com --- Wine's dmusic is totally broken. Please use winetricks to install native directmusic.
https://bugs.winehq.org/show_bug.cgi?id=31829
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@winehq.org Summary|Ad Astra fails to start |Ad Astra fails to start |when music enabled |when music enabled (MThd | |chunk support missing)
--- Comment #8 from Michael Stefaniuc mstefani@winehq.org --- The gm.dls FIXME is harmless and not the cause of the crash.
The game crashes because the MThd chunk is not supported: 0009:trace:dmfileraw:IDirectMusicLoaderFileStream_IStream_Read : data (size = 0x00000008): "MThd\x00\x00\x00\x06" 0009:trace:dmfile:IPersistStreamImpl_Load : 'MThd' chunk (size = 100663296): unexpected chunk; loading failed) 0009:warn:dmloader:IDirectMusicLoaderImpl_GetObject : failed to (completely) load object (DMUS_E_UNSUPPORTED_STREAM) 0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x56f6f8 ip=0056f6f8 tid=0009
I'll implement that once I clean up IPersistStream_Load().
https://bugs.winehq.org/show_bug.cgi?id=31829
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian_grunwald@web.de
--- Comment #9 from Michael Stefaniuc mstefani@winehq.org --- *** Bug 43687 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=31829
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |45471
https://bugs.winehq.org/show_bug.cgi?id=31829
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c8e493cb0c16ef28d9109e3b14f | |63d9587a8f013 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #10 from Michael Stefaniuc mstefani@winehq.org --- The crash is now fixed by https://source.winehq.org/git/wine.git/?a=commit;h=c8e493cb0c16ef28d9109e3b1...
As this regression is now fixed I have created the follow up bug #45471 to track the lack of background music in AdAstra.
https://bugs.winehq.org/show_bug.cgi?id=31829
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |19777
https://bugs.winehq.org/show_bug.cgi?id=31829
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.13.