http://bugs.winehq.org/show_bug.cgi?id=30364
Bug #: 30364 Summary: X3 Reunion hangs at start Product: Wine Version: 1.5.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: amstream AssignedTo: wine-bugs@winehq.org ReportedBy: pavel.ondracka@gmail.com Classification: Unclassified Regression SHA1: 27c4ad3bec1229020ab38ab5b45f0969204192ef
Created attachment 39694 --> http://bugs.winehq.org/attachment.cgi?id=39694 terminal output with wine-1.5.1-169-g1c62c9f
This is with X3 Reunion, game of the year edition patched to 2.5 to get rid of CD protection. The game used to start fine, but there were some other troubles with IAMMultiMediaStreamImpl_SetState being stub later on (bug 14398), now it just hangs with black screen after start with terminal being flooded with fixmes and errors until killed. (full log attached)
27c4ad3bec1229020ab38ab5b45f0969204192ef is the first bad commit commit 27c4ad3bec1229020ab38ab5b45f0969204192ef Author: Christian Costa titan.costa@gmail.com Date: Tue Apr 3 07:53:50 2012 +0200
amstream: Implement IAMMultiMediaStreamImpl_SetState.
http://bugs.winehq.org/show_bug.cgi?id=30364
Pavel Ondračka pavel.ondracka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=30364
Christian Costa titan.costa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |titan.costa@gmail.com
--- Comment #1 from Christian Costa titan.costa@gmail.com 2012-04-10 04:36:31 CDT --- Where was a bug in this patch fixed by http://source.winehq.org/git/wine.git/commitdiff/ee0bfd36ed9b60ed20af3178f0f.... Please retry with latest git.
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #2 from Pavel Ondračka pavel.ondracka@gmail.com 2012-04-10 05:54:39 CDT --- (In reply to comment #1)
Where was a bug in this patch fixed by http://source.winehq.org/git/wine.git/commitdiff/ee0bfd36ed9b60ed20af3178f0f.... Please retry with latest git.
I'm pretty sure that tested wine version (wine-1.5.1-169-g1c62c9f) already had the commit you mentioned.
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #3 from Christian Costa titan.costa@gmail.com 2012-04-10 13:55:15 CDT --- Ok. I think the problem happens because things go further. It's not really a regression. There are some patches submitted but not in yet that could help and other in my tree. I can run the demo from bug 14398 without crash.
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #4 from Pavel Ondračka pavel.ondracka@gmail.com 2012-04-10 14:02:34 CDT --- (In reply to comment #3)
Ok. I think the problem happens because things go further. It's not really a regression. There are some patches submitted but not in yet that could help and other in my tree. I can run the demo from bug 14398 without crash.
If you send me link to those patches I can test. I'll also try the demo to see if I can reproduce the bug with it.
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #5 from Christian Costa titan.costa@gmail.com 2012-04-10 15:50:12 CDT --- You can see them at http://source.winehq.org/patches/ Patches 85179 at 85182.
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #6 from Pavel Ondračka pavel.ondracka@gmail.com 2012-04-11 06:41:19 CDT --- I did test the demo and it is not affected by this bug. I also did tested the full version with your patches and it still hang. I can make it to the menu only if I rename the folder with movies, so the game cannot find them.
http://bugs.winehq.org/show_bug.cgi?id=30364
Pavel Ondračka pavel.ondracka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |14398
http://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #7 from GyB gyebro69@gmail.com 2012-08-12 00:28:33 CDT --- Created attachment 41344 --> http://bugs.winehq.org/attachment.cgi?id=41344 terminal output, Wine 1.5.10
I have the same problem with X3:Reunion (Steam version) in Wine 1.5.10. Using only built-in dlls the game hangs during (after?) the intro videos, so it never reaches the main menu. After installing native amstream.dll and disabling winegstreamer (because of bug #30557) I can get in the game, but videos still not working. These messages filling the console endlessly when the game hangs with a black screen after starting:
err:ole:CoGetClassObject class {94297043-bd82-4dfd-b0de-8177739c6d20} not registered err:ole:CoGetClassObject no class object {94297043-bd82-4dfd-b0de-8177739c6d20} could be created for context 0x3 fixme:amstream:IAudioMediaStreamImpl_GetFormat (0x140fa580/0x140fa580)->(0x33f75c) stub!
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #8 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for two years. Is this still an issue in current (1.7.25 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=30364
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #9 from Béla Gyebrószki gyebro69@gmail.com --- Still present in Wine 1.7.25
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #10 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=30364
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #11 from winetest@luukku.com --- I cant test this particular game.
But the default hr value is a bit odd (change that Costa made)
HRESULT hr = E_INVALIDARG;
But since I don't have this game I cant test exactly what point the game freezes.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #12 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 55148 --> https://bugs.winehq.org/attachment.cgi?id=55148 terminal output (Wine 1.9.14)
Still a bug in wine-1.9.14-216-ga615647.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #13 from winetest@luukku.com --- At the patches list there are now multiple amstream related patches. I don't know if he picked this bug or is it just a general improvement on his behalf, but at least it contains a patch for getformat that your log spams. Maybe the other patches help this bug?
https://bugs.winehq.org/show_bug.cgi?id=30364
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |baskanov@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #14 from winetest@luukku.com --- (In reply to winetest from comment #13)
At the patches list there are now multiple amstream related patches. I don't know if he picked this bug or is it just a general improvement on his behalf, but at least it contains a patch for getformat that your log spams. Maybe the other patches help this bug?
Is this bug fixed or working better with this addition?
http://source.winehq.org/git/wine.git/commit/fa542355e97b943f6d58faf68e78c9b...
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #15 from Béla Gyebrószki gyebro69@gmail.com --- Still present in wine-2.11-150-g287be7c5ee.
https://bugs.winehq.org/show_bug.cgi?id=30364
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #16 from joaopa jeremielapuree@yahoo.fr --- Is still a bug in current wine(3.20)?
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #17 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-4.5?
https://bugs.winehq.org/show_bug.cgi?id=30364
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|amstream |quartz
https://bugs.winehq.org/show_bug.cgi?id=30364
rs rachus@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rachus@web.de
--- Comment #18 from rs rachus@web.de --- Tried the game last weekend with wine 4.7 and had a black screen with no change until I killed it after a couple of minutes.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #19 from Gijs Vermeulen gijsvrm@gmail.com --- It was mentioned in https://bugs.winehq.org/show_bug.cgi?id=48763#c6 that this game should work now, can anyone retest?
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #20 from Christian Costa titan.costa@gmail.com --- Created attachment 67744 --> https://bugs.winehq.org/attachment.cgi?id=67744 terminal output with wine 5.13
Tested gog version with wine 5.13. Videos are played in a separate decorated "ActiveMovie Window" window instead of fullscreen. To go further each window needs to be closed.
Here are the first videos played by amstream before the menu: - 00144.dat -> seems like in-game audio sequences played later - 00001.dat -> seems like in-game video sequences played later - 00010.dat -> not played ie black window - 00006.dat -> played - 08030.dat -> played The files only contain voices audio or no audio. Music and background sound are apparently played separately (not with amstream) but they are played after the video and truncated while that should be during the video.
Find attached are the default terminal output.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #21 from Christian Costa titan.costa@gmail.com --- Coorection: 00010.dat is played correctly. The black window is probably for the in-game video 00001.dat.
https://bugs.winehq.org/show_bug.cgi?id=30364
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #22 from Zebediah Figura z.figura12@gmail.com --- This game still needs the ddraw stream to work.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #23 from Anton Baskanov baskanov@gmail.com --- (In reply to Christian Costa from comment #20)
Created attachment 67744 [details] terminal output with wine 5.13
Tested gog version with wine 5.13. Videos are played in a separate decorated "ActiveMovie Window" window instead of fullscreen. To go further each window needs to be closed.
Here are the first videos played by amstream before the menu:
- 00144.dat -> seems like in-game audio sequences played later
- 00001.dat -> seems like in-game video sequences played later
- 00010.dat -> not played ie black window
- 00006.dat -> played
- 08030.dat -> played
The files only contain voices audio or no audio. Music and background sound are apparently played separately (not with amstream) but they are played after the video and truncated while that should be during the video.
Find attached are the default terminal output.
The music and audio sequences are actually played using amstream and should work fine. The "ActiveMovie Window" thing is probably due to recent changes to AMDirectDrawStream which cause the input pin connection to fail and FilterGraph to add a new renderer.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #24 from Christian Costa titan.costa@gmail.com --- Yeah indeed. Bad grep.
0024:trace:amstream:multimedia_stream_OpenFile (01DA4FC0/01DA4FC0)->(L"mov\00144.dat",0) 0024:trace:amstream:multimedia_stream_OpenFile (01E12788/01E12788)->(L"mov\00001.dat",0) 0024:trace:amstream:multimedia_stream_OpenFile (01E6AD18/01E6AD18)->(L"mov\00010.dat",0) 0024:trace:amstream:multimedia_stream_OpenFile (01EA39C8/01EA39C8)->(L"soundtrack\00011.mp3",0) 0024:trace:amstream:multimedia_stream_OpenFile (01E6ADA8/01E6ADA8)->(L"mov\00006.dat",0) 0024:trace:amstream:multimedia_stream_OpenFile (01D95AD8/01D95AD8)->(L"soundtrack\00007.mp3",0) 0024:trace:amstream:multimedia_stream_OpenFile (01E6AD78/01E6AD78)->(L"mov\08030.dat",0) 0024:trace:amstream:multimedia_stream_OpenFile (01EC35B0/01EC35B0)->(L"soundtrack\08100.mp3",0)
Music and audio work but not at the right time. Audio stops when the main window looses focus. When I reselect the main window (instead of closing the AM window) they are played so I guess once the fullscreen is fixed everything should work as expected.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #25 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 67781 --> https://bugs.winehq.org/attachment.cgi?id=67781 test patch
Could you try this patch? It should get rid of the regression where a "ActiveMovie Window" is opened.
If this doesn't fix it, could anyone shoot me a +amstream log with the patch applied?
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #26 from Christian Costa titan.costa@gmail.com --- Created attachment 67797 --> https://bugs.winehq.org/attachment.cgi?id=67797 debug output +amstream with 5.13 and patch applied
No more active movie window created but screen is black. None of the videos (00010.dat, 00006.dat & 08030.dat) are played. Even the audio track of 08030.dat cannot be heared. The mp3 files that play during videos are truncated except for the last video (the one which has an audio track).
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #27 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Christian Costa from comment #26)
Created attachment 67797 [details] debug output +amstream with 5.13 and patch applied
No more active movie window created but screen is black. None of the videos (00010.dat, 00006.dat & 08030.dat) are played. Even the audio track of 08030.dat cannot be heared. The mp3 files that play during videos are truncated except for the last video (the one which has an audio track).
Could you try and retest with latest -git? Anton's patches may have improved things.
Do note that it seems to use IDirectDrawStreamSample::Update() to play videos, which isn't currently implemented. However, most of the games that are only choking on Update() are able to have their videos skipped.
If the game no longer hangs/is able to have its videos skipped, this would become a dupe of Bug 29926.
https://bugs.winehq.org/show_bug.cgi?id=30364
--- Comment #28 from Christian Costa titan.costa@gmail.com --- Retried with wine 5.19 and videos play in fullscreen now. No need to do anything to get to the menu. Videos are not synced. I'll file another bug for that. This bug can be marked as fixed. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=30364
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #29 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Christian Costa from comment #28)
Retried with wine 5.19 and videos play in fullscreen now. No need to do anything to get to the menu. Videos are not synced. I'll file another bug for that. This bug can be marked as fixed. Thanks!
Thanks for retesting! Marking FIXED.
https://bugs.winehq.org/show_bug.cgi?id=30364
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #30 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.20.