https://bugs.winehq.org/show_bug.cgi?id=52774
Bug ID: 52774 Summary: Martha is Dead crashes on launch with a black screen Product: Wine Version: 7.5 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: directx-d3d Assignee: [email protected] Reporter: [email protected] Distribution: ---
Created attachment 72151 --> https://bugs.winehq.org/attachment.cgi?id=72151 output
=== Critical error: === Assertion failed: CanFormatBeDisplayed(this, CandidateFormat) [File:C:/Users/LKA/Desktop/UnrealEngine-release/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Device.cpp] [Line: 677]
wine-7.5-200-g1765c4594f6
https://bugs.winehq.org/show_bug.cgi?id=52774
--- Comment #1 from Henri Verbeet [email protected] --- Created attachment 72152 --> https://bugs.winehq.org/attachment.cgi?id=72152 patch
As a guess, does the attached patch make any difference?
https://bugs.winehq.org/show_bug.cgi?id=52774
--- Comment #2 from Andrey Gusev [email protected] --- With the patch
Error: D3DRHI->GetDevice()->CreateRenderTargetView(BackBufferResource, &RTVDesc, BackBufferRenderTargetView.GetInitReference()) failed at C:/Users/LKA/Desktop/UnrealEngine-release/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Viewport.cpp:165 with error E_INVALIDARG
https://bugs.winehq.org/show_bug.cgi?id=52774
--- Comment #3 from Andrey Gusev [email protected] --- Right, it also needs DXGI_FORMAT_R10G10B10A2_UNORM
https://bugs.winehq.org/show_bug.cgi?id=52774
kolAflash [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #4 from kolAflash [email protected] --- Looks like Elite Dangerous might have a similar issue:
01b8:fixme:dxgi:dxgi_output_GetDisplayModeList iface 0000000000A1BEF0, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 000000006275FAC8, modes 0000000000000000 partial stub! 01b8:fixme:dxgi:dxgi_output_GetDisplayModeList iface 0000000000A1BEF0, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 000000006275FAC8, modes 0000000003F7DD10 partial stub! 01b8:fixme:d3d11:d3d11_device_CheckFormatSupport iface 00000000009F98C0, format 0, format_support 000000006275F588 partial-stub! 01b8:fixme:d3d11:d3d11_device_CheckFeatureSupport Unhandled feature 0xe.
Same when running with WINE_D3D_CONFIG='renderer=vulkan':
01b4:fixme:d3d:get_vulkan_physical_device Multiple physical devices available. 01b8:fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot 01b8:fixme:toolhelp:Heap32ListFirst : stub 01c4:fixme:d3d:get_vulkan_physical_device Multiple physical devices available. 01c4:fixme:dxgi:dxgi_output_GetDisplayModeList iface 0000000000A1BFC0, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 000000006275FAC8, modes 0000000000000000 partial stub! 01c4:fixme:dxgi:dxgi_output_GetDisplayModeList iface 0000000000A1BFC0, format DXGI_FORMAT_R8G8B8A8_UNORM, flags 0, mode_count 000000006275FAC8, modes 0000000003F7DD10 partial stub! 01c4:fixme:d3d:get_vulkan_physical_device Multiple physical devices available. 01c4:fixme:d3d11:d3d11_device_CheckFormatSupport iface 00000000009F9990, format 0, format_support 000000006275F588 partial-stub! 01c4:fixme:d3d11:d3d11_device_CheckFeatureSupport Unhandled feature 0xe.
Workaround for Elite Dangerous: Use DXVK See also: https://appdb.winehq.org/objectManager.php?sClass=version&iId=37490&...
QUESTION: Should I open a separate bug for Elite Dangerous?
This seems to be related too: Company of Heroes 2 crashes on launch (needs DXGI_FORMAT_R8G8B8A8_UNORM and DXGI_FORMAT_R8G8B8A8_UNORM_SRGB) https://bugs.winehq.org/show_bug.cgi?id=47398
https://bugs.winehq.org/show_bug.cgi?id=52774
--- Comment #5 from Andrey Gusev [email protected] --- Output fits for bug 47398.
https://bugs.winehq.org/show_bug.cgi?id=52774
Brendan McGrath [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #6 from Brendan McGrath [email protected] --- @kolAflash - I've raised a separate bug for Elite Dangerous: https://bugs.winehq.org/show_bug.cgi?id=56250
I've also attached a patch that fixes the issue for me if you want to try it.
I raised a separate issue because the Elite log has: fixme:d3d11:d3d11_device_CheckFeatureSupport Unhandled feature 0xe.
where as the original bug has: fixme:d3d11:d3d11_device_CheckFeatureSupport Unhandled feature 0x3.
So 0x3 (D3D11_FEATURE_FORMAT_SUPPORT2) vs. 0xe (D3D11_FEATURE_D3D11_OPTIONS2). My patch only addresses D3D11_FEATURE_D3D11_OPTIONS2, so it probably won't help with this bug.
https://bugs.winehq.org/show_bug.cgi?id=52774
Henry Wertz [email protected] changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected]
--- Comment #7 from Henry Wertz [email protected] --- If you want a free game that exibits this issue, Indigo Park shows the same error (the assertion is at line 764 instead but still in D3D11Device.cpp). I was running it with -d3d12 flag (and using vkd3d built into Proton) by default, but I wondered "Hmm, I wonder what happens if I run it with PROTON_USE_WINED3D=1" and I get a splash screen then crash box with the Assertion failed: CanFormatBeDisplayed(this, CandidateFormat) in it.
For that matter with it's default use of dx11 (using dxvk) you get to the main menu but when it goes to play the intro video it just shows a white screen and no audio (it shows the video with -d3d12 flag), so it could be doing questionable things with texture formats or whatever in general.