https://bugs.winehq.org/show_bug.cgi?id=41972
Bug ID: 41972 Summary: "Elite: Dangerous" client crashes when starting Product: Wine Version: 1.9.23 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx11 Assignee: wine-bugs@winehq.org Reporter: pecisk@gmail.com Distribution: ---
Created attachment 56374 --> https://bugs.winehq.org/attachment.cgi?id=56374 Wine debug log of launching ED client
Setup: Fedora 25, Nvidia binary drivers 375.20, Wine 32-bit prefix, winetricks installed net40, Wine 1.9.23
Note: "Elite: Dangerous" is DirectX 11 game. It doesn't have free trial, but I can arrange copy if there's interest.
Steps: #1 Installing ED Launcher #2 Login using ED Launcher, installing regular ED client #3 After installation launching ED client #4 Screen turns black, changes resolution #5 Crashes back to desktop, offers to report issue to Frontier Developments with crash dump upload
Note: this most likely happens in a step where ED client tries to compile shaders prior launch of main menu.
Log with ED client launch part attached.
https://bugs.winehq.org/show_bug.cgi?id=41972
Peteris Krisjanis pecisk@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=41972
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #1 from winetest@luukku.com --- Your game needs at least bug 40046. Please mark it as :depends on bug 40046.
https://bugs.winehq.org/show_bug.cgi?id=41972
Peteris Krisjanis pecisk@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |40046
https://bugs.winehq.org/show_bug.cgi?id=41972
Kimmo Myllyvirta kimmo.myllyvirta@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kimmo.myllyvirta@gmail.com
--- Comment #2 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 56405 --> https://bugs.winehq.org/attachment.cgi?id=56405 backtrace with short tid,d3d,d3d11 debug log
Backtrace could be a nice addition. Open the .dmp file that the game generated with winedbg to get it, if possible. See the location of the dmp file from the terminal output, "Exception occurred, dump found at : <path_to_dump>", and run; $ winedbg "<path_to_dump>"
I'm not quite sure if you hit the same crash as I do. There is d3d related crash at startup, which has been there for a long time (with staging and vanilla). It crashes with npe after trying to map unmappable 3D texture. Very short debug log, and the backtrace attached.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #3 from Peteris Krisjanis pecisk@gmail.com --- Created attachment 56406 --> https://bugs.winehq.org/attachment.cgi?id=56406 winedbg on generated mini dump from crashing ED
Well, this is mine and it looks different.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #4 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 56410 --> https://bugs.winehq.org/attachment.cgi?id=56410 quartz backtrace
(In reply to Peteris Krisjanis from comment #3)
Created attachment 56406 [details] winedbg on generated mini dump from crashing ED
Well, this is mine and it looks different.
That looks familiar, it crashes to; =>0 0xe0a520fe ExploreGraph+0x4e(pGraph=0x516b7618, pOutputPin=<is not available>, FoundFilter=0xe0a4f800, data=0) [/home/des/wine/dlls/quartz/../../include/strmif.h:1065] in quartz (0x05bce5f8)
Backtrace attached.
You can get past that crash with "winetricks quartz", then you should get to the same d3d related crash. Your terminal output did not contain any lines from quartz, so I assumed you have some different issue there.
But yes, the quartz crash is the first one here. I couldn't find a similar bug with a quick search.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #5 from winetest@luukku.com --- This is what wine code says about that quartz crash location.
http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=grep&s...
It shouldnt be too hard to figure out why it crashes. With some debugging and adding some fixmes into wine source.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #6 from Peteris Krisjanis pecisk@gmail.com --- A bit of shot in the dark while I am at work - could be quartz/FilterGraph issue related with ED trying to play startup video and having codecs to do that? It has been issue for Windows in several cases (it needs WMA codec if I remember correctly).
https://bugs.winehq.org/show_bug.cgi?id=41972
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #7 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- (In reply to Peteris Krisjanis from comment #6)
A bit of shot in the dark while I am at work - could be quartz/FilterGraph issue related with ED trying to play startup video and having codecs to do that? It has been issue for Windows in several cases (it needs WMA codec if I remember correctly).
Yes, it is related to the startup/logo clip, it tries to play "Movies/Ident_Frontier_Elite.webm", I'm not quite sure what is going on with the audio, since that clip has only a VP8 video stream, no audio (as reported by mplayer, mediainfo and vlc). There's webmsplit.dll, and vp8decoder.dll in the game folder root (where the EliteDangerous32.exe is). I'll try to find some time to debug it this weekend.
This is the startup clip; https://www.youtube.com/watch?v=LKVO43EWGLg
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #8 from Peteris Krisjanis pecisk@gmail.com --- Music isn't in video clip, it is clearly launched separately and just goes into loop in background while:
* video is shown * progress circles of generating regular shaders and compute shaders for planetary surfaces are run (for regular ED client only first one is done though); * main menu is shown
https://bugs.winehq.org/show_bug.cgi?id=41972
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3dx11 |quartz Depends on|40046 |
--- Comment #9 from Matteo Bruni matteo.mystral@gmail.com --- Let's target the quartz crash first and open a separate bug for the d3d crash eventually.
FWIW, I think you can recover some more information from the exception in the minidump with winedbg. I don't quite recall at the moment but maybe try with "info except". Even better, you could run the game again with +tid,quartz,strmbase and attach the new trace.
(In reply to winetest from comment #5)
It shouldnt be too hard to figure out why it crashes. With some debugging and adding some fixmes into wine source.
Sure. Go ahead.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #10 from Peteris Krisjanis pecisk@gmail.com --- This is what I get from
Wine-dbg>info except Unhandled exception: page fault on read access to 0x838bc689 in 32-bit code (0xde130d58)
I will try to get extensive backtrace with new flags.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #11 from Peteris Krisjanis pecisk@gmail.com --- Created attachment 56450 --> https://bugs.winehq.org/attachment.cgi?id=56450 WINEDEBUG=+tid,quartz,strmbase wine EDLaunch.exe
Here's WINEDEBUG=+tid,quartz,strmbase wine EDLaunch.exe as requested. Funny thing is it has two scenarios playing out - it seems at one point it gets D3D crash and at some point it gets crash sooner from Quartz. This one is when Quartz crash ED first.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #12 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 56456 --> https://bugs.winehq.org/attachment.cgi?id=56456 quartz crash fix
It is not obvious from the debug log, but in filtergraph.c; GetInternalConnections returns S_OK, number of pins = 1, but it doesn't allocate and query the pppins at all. ExploreGraph assumes everything is ok, it is not a renderer (nb != 0), loops through the pins and calls IPin_ConnectedTo with foobar pin -> page fault.
I don't know why GetInternalConnections is implemented as it is, but how it currently uses IPin_QueryInternalConnections is not what MSDN says about it, and how the pins are implemented in webmsplit/vp8decoder (https://github.com/webmproject/webmdshow). Only the most common E_NOTIMPL path seems to be correct.
Quick fix for the crash attached.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #13 from Peteris Krisjanis pecisk@gmail.com --- Build newest git master with quartz patch applied, ran on same wine prefix, got this:
fixme:shell:URL_ParseUrl failed to parse L"WindowsBase.resources" fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000401,(nil),0x0001,0x00000000,0x33b71c,(nil)): stub err:eventlog:ReportEventW L"Application: EDLaunch.exe\nFramework Version: v4.0.30319\nDescription: The application requested process termination through System.Environment.FailFast(string message).\nMessage: Unrecoverable system error.\nStack:\n at System.Environment.FailFast(System.String)\n at MS.Internal.Invariant.FailFa"...
I will try to rebuild prefix with ED download again.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #14 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Install corefonts with winetricks. You don't need it with staging, as the missing fonts are there. See; https://appdb.winehq.org/objectManager.php?sClass=version&iId=17886
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #15 from Peteris Krisjanis pecisk@gmail.com --- Created attachment 56547 --> https://bugs.winehq.org/attachment.cgi?id=56547 WINEDEBUG=+tid,quartz,strmbase /dati/edwine/bin/wine ~/.wine/drive_c/Program\ Files/Frontier/EDLaunch/EDLaunch.exe > ~/ed-patched-crash.log 2>&1
1. Rebuilt wine from git, tag wine-1.9.23, applied wine-staging, tag v1.9.23 Things not built - mono, mpeg123, small things really 2. Applied patch for quartz/DisplayGraph https://bugs.winehq.org/attachment.cgi?id=56456&action=diff 3. Installed dotnet40 with WINE=/prefix/for/built/wine winetricks 4. Installed ED Launcher 5. Ran WINEDEBUG=+tid,quartz,strmbase /dati/edwine/bin/wine ~/.wine/drive_c/Program\ Files/Frontier/EDLaunch/EDLaunch.exe > ~/ed-patched-crash.log 2>&1
What I can see from grepping that fixme issues for quartz are gone, I am getting D3D crash now all the time.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #16 from winetest@luukku.com --- It could make a difference that wine is already 2.0.rc+.
You are not far away from master but sometimes it makes a difference.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #17 from Peteris Krisjanis pecisk@gmail.com --- Sure, I will try 2.0rc builds over the weekend, that's just matter of recompiling wine.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #18 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 56552 --> https://bugs.winehq.org/attachment.cgi?id=56552 D3D11_USAGE_STAGING hack
This bug is about the quartz crash, but it is pretty impossible to test that intro video without actually seeing it. So, here's a hack for the d3d related crash (resources with D3D11_USAGE_STAGING should be mappable).
I'm running it with wine-2.0-rc2 (winetricks dotnet40 corefonts), with the quartz patch and the attached hack now. At least the intro video works now (and it may go far beyond that), so the quartz patch seems to work ok.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #19 from Peteris Krisjanis pecisk@gmail.com --- Built wine 2.0rc2 with staging rc2
Applied both patches
Confirmed, I get playing video, and music. Video plays and last frame stays, music continues to play. But then two scenarios accur - last frame stays and doesn't move forwards, OR shader compilation starts, finishes, main menu appears and complain about non-compilant version is shown (but actual cursor and background animation is there).
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #20 from Peteris Krisjanis pecisk@gmail.com --- With both patches applied to Wine + Staging 2.0rc2 I get to this point
https://www.youtube.com/watch?v=kvrc7qigY-I
It hangs sometimes before 'Preparing Shaders' moment, but so far it has been 50/50, or even more it mostly gets to main menu. I will investigate why main menu gets 'not compatible version'. Any ideas how to approach this?
At least quartz issue seems to be fixed nice and tidily.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #21 from Peteris Krisjanis pecisk@gmail.com --- Just a quick note - found corresponding lines about this login failure in trace
fixme:winsock:NtStatusToWSAError Status code 8000000a converted to DOS error code 2a4 err:ole:CoUninitialize Mismatched CoUninitialize fixme:msvcrt:__clean_type_info_names_internal (0x3fbdf8) stub err:seh:setup_exception_record stack overflow 944 bytes in thread 0091 eip 7bc46146 esp 03c10f80 stack 0x3c10000-0x3c11000-0x3d10000 fixme:secur32:schan_QueryContextAttributesW Unhandled attribute 0x1a fixme:secur32:schan_QueryContextAttributesW Unhandled attribute 0x1a
https://bugs.winehq.org/show_bug.cgi?id=41972
Martin martin@budsjo.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |martin@budsjo.se
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #22 from Peteris Krisjanis pecisk@gmail.com --- Just for FYI - according to FD support error visible in error while accessing main menu appears when launching ED32.exe directly - thus without authentication information. Some information doesn't get passed along then.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #23 from Peteris Krisjanis pecisk@gmail.com --- For reference: * Launcher launches WatchDog.exe with several group of parameters, one of them who are then * passed to EliteDangerous32/64.exe * However some of them are left for WatchDog.exe, thus leaving me to speculate that there are some RPC process between apps * ED32.exe is launched successfully, but it complains about game not being launched from launcher; * There are some interesting messages in wine stack/debug log;
https://bugs.winehq.org/show_bug.cgi?id=41972
Kim Malmo berencamlost@msn.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |berencamlost@msn.com
https://bugs.winehq.org/show_bug.cgi?id=41972
Kimmo Myllyvirta kimmo.myllyvirta@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #56552|0 |1 is obsolete| |
--- Comment #24 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Comment on attachment 56552 --> https://bugs.winehq.org/attachment.cgi?id=56552 D3D11_USAGE_STAGING hack
Marking this hack obsolete, proper fix is already in wine (since 2.1), http://source.winehq.org/git/wine.git/commit/8e4b3c0b0234ed74ffe7470e2d2e350...
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #25 from winetest@luukku.com --- https://www.youtube.com/watch?v=kvrc7qigY-I
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #26 from winetest@luukku.com --- Does this work any better with more recent wine? I quess the quartz patch is still needed.
https://bugs.winehq.org/show_bug.cgi?id=41972
Bernie Innocenti bernie@codewiz.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernie@codewiz.org
https://bugs.winehq.org/show_bug.cgi?id=41972
Kimmo Myllyvirta kimmo.myllyvirta@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |43162
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #27 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- (In reply to winetest from comment #26)
Does this work any better with more recent wine? I quess the quartz patch is still needed.
Some progress. With wine-2.10-dev I can login and "play" it with these steps; - make a clean 32-bit prefix - winetricks dotnet452 corefonts quartz vcrun2012 - set windows version to "Windows 7" from winecfg - Install Steam and the game, press play
The login failure -error seems to be related to msvcr110. Works with native version, always fails with builtin.
The game can hang at any time, if that happens, then try; $ taskset -c 0 wine EDLaunch.exe
There's not much to see in-game yet, see bug 43162.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #28 from Peteris Krisjanis pecisk@gmail.com --- (In reply to winetest from comment #26)
Does this work any better with more recent wine? I quess the quartz patch is still needed.
It seems patches aren't required anymore (with 2.10), at least none of these. There are other issues there, but playback of intro video and launch of the game works.
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #29 from Austin English austinenglish@gmail.com --- A stub for RoGetParameterizedTypeInstanceIID was made in https://source.winehq.org/git/wine.git/commitdiff/bd70d8c951422e32f247b268cd..., see also bug 42701.
https://bugs.winehq.org/show_bug.cgi?id=41972
Dmitry dz64@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dz64@protonmail.com
--- Comment #30 from Dmitry dz64@protonmail.com --- The game still crashes with builtin quartz in wine 3.13. Using native quartz dll from winetricks solves the issue.
https://bugs.winehq.org/show_bug.cgi?id=41972
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=41972
Brendan McGrath brendan@redmandi.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |brendan@redmandi.com
--- Comment #31 from Brendan McGrath brendan@redmandi.com --- (In reply to Dmitry from comment #30)
The game still crashes with builtin quartz in wine 3.13. Using native quartz dll from winetricks solves the issue.
You should find this is now fixed with commit 9f0534301321c9192c9e3a705b2bae84a2081745 (which should make wine 3.18).
https://bugs.winehq.org/show_bug.cgi?id=41972
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #32 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-5.10?
https://bugs.winehq.org/show_bug.cgi?id=41972
--- Comment #33 from Brendan McGrath brendan@redmandi.com --- (In reply to joaopa from comment #32)
Does the bug still occur with wine-5.10?
It works for me. I just tried with wine-5.10 and did not encounter this bug (the games loads fine with builtin quartz).
https://bugs.winehq.org/show_bug.cgi?id=41972
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |9f0534301321c9192c9e3a705b2 | |bae84a2081745 Resolution|--- |FIXED
--- Comment #34 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Brendan McGrath from comment #33)
(In reply to joaopa from comment #32)
Does the bug still occur with wine-5.10?
It works for me. I just tried with wine-5.10 and did not encounter this bug (the games loads fine with builtin quartz).
Since there haven't been any other replies since your last comment, let's resolve this one.
If anyone can still reproduce, feel free to reopen.
https://bugs.winehq.org/show_bug.cgi?id=41972
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #35 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.11.