https://bugs.winehq.org/show_bug.cgi?id=48763
Bug ID: 48763 Summary: X2: The Threat crashes after opening Product: Wine Version: 5.3 Hardware: x86 URL: http://www.egosoft.com/download/x2/demos_en.php?downlo ad=21 OS: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: quartz Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: baskanov@gmail.com Regression SHA1: 1ae8e519f4d8f28962f9ff1a3b7310d94e0ec908 Distribution: ---
Created attachment 66668 --> https://bugs.winehq.org/attachment.cgi?id=66668 terminal output
X2: The Threat as well as the sequel X3: Reunion crash shortly after starting.
Regression testing resulted in
commit 1ae8e519f4d8f28962f9ff1a3b7310d94e0ec908 Date: Tue Feb 25 23:59:27 2020 -0600 amstream: Implement AMAudioStream::GetFormat.
as the first bad commit.
I verified that the game loads to the menu with the previous commit.
The problem can be reproduced either with the demo or the Steam or GOG version.
X2_DemoWorldwide.exe (133 MB) md5sum: bc22b59df47cf042f97b6d77206626eb
wine-5.4-36-gc2ee20c95b
https://bugs.winehq.org/show_bug.cgi?id=48763
--- Comment #1 from Anton Baskanov baskanov@gmail.com --- I've done some debugging, and it looks that the regression is not caused directly by the specified commit. This commit is what allows the app to proceed further and trigger an unrelated issue.
The crash is actually caused by a NULL pointer dereference in dmo_wrapper_cleanup_stream, where IUnknown::QueryInterface is called on filter->dmo. filter->dmo is in turn NULL because dmo_wrapper_filter_Init is called with an unregistered CLSID (CLSID_CWMSPDecMediaObject).
There are amstream patches that were committed recently that affect this crash. As of Wine 5.5, the crash happens when exiting the game, not on the start.
https://bugs.winehq.org/show_bug.cgi?id=48763
--- Comment #2 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 66790 --> https://bugs.winehq.org/attachment.cgi?id=66790 terminal output (full version crashes on skipping the intro)
(In reply to Anton Baskanov from comment #1)
There are amstream patches that were committed recently that affect this crash. As of Wine 5.5, the crash happens when exiting the game, not on the start.
Yes, something has changed since my original report. The demo version and the GOG.com version behave differently now. Both the demo and full version are playing some intro videos after start. The screen is black during video playback. When I skip those videos by pressing <Esc> or the left mouse button, the full version crashes as can be seen in the current attachment. The demo version doesn't crash, it displays the main menu, but the game is not responding either to mouse or keyboard input.
https://bugs.winehq.org/show_bug.cgi?id=48763
--- Comment #3 from Anton Baskanov baskanov@gmail.com --- Should be fixed by commit e92c851d95497fbb36000be17f78b70ee3b2bf09.
https://bugs.winehq.org/show_bug.cgi?id=48763
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Anton Baskanov from comment #3)
Should be fixed by commit e92c851d95497fbb36000be17f78b70ee3b2bf09.
Dear Anton,
the demo version indeed works, tried in wine-5.10-162-g22970932d0, but the full version still crashes for me when I skip the intro video (judging by sound it is the Nvidia logo, but the screen is black during video playback). If I let all the intro videos play without interrupting, then the game finally loads to the main menu properly in the full version. This could be a different issue, though, I don't know.
https://bugs.winehq.org/show_bug.cgi?id=48763
--- Comment #5 from Anton Baskanov baskanov@gmail.com --- (In reply to Béla Gyebrószki from comment #4)
(In reply to Anton Baskanov from comment #3)
Should be fixed by commit e92c851d95497fbb36000be17f78b70ee3b2bf09.
Dear Anton,
the demo version indeed works, tried in wine-5.10-162-g22970932d0, but the full version still crashes for me when I skip the intro video (judging by sound it is the Nvidia logo, but the screen is black during video playback). If I let all the intro videos play without interrupting, then the game finally loads to the main menu properly in the full version. This could be a different issue, though, I don't know.
The full version should be fixed by commit 3667754aa2a5fb42ac01aa3820436a2d04e6089f.
https://bugs.winehq.org/show_bug.cgi?id=48763
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |3667754aa2a5fb42ac01aa38204 | |36a2d04e6089f Status|NEW |RESOLVED
--- Comment #6 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Anton Baskanov from comment #5)
The full version should be fixed by commit 3667754aa2a5fb42ac01aa3820436a2d04e6089f.
The problem is fixed in wine-5.11-149-gfe4379eb19 for both X2: Threat and X3:Reunion, thanks a lot.
https://bugs.winehq.org/show_bug.cgi?id=48763
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.12.