[Bug 59811] New: RDR2 (Red Dead Redemption 2) fails to initialize graphics device (Error Code 18) since 11.10
http://bugs.winehq.org/show_bug.cgi?id=59811 Bug ID: 59811 Summary: RDR2 (Red Dead Redemption 2) fails to initialize graphics device (Error Code 18) since 11.10 Product: Wine Version: 11.10 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: d3d Assignee: wine-bugs@list.winehq.org Reporter: DANIELE.AMODEO@OUTLOOK.COM Distribution: --- Red Dead Redemption 2 fails to launch with "Error Code 18: failed to initialize graphics device" since upgrading Wine Staging from 11.9 to 11.10. Downgrading back to Wine Staging 11.9 immediately resolves the issue. System: - OS: Arch Linux - GPU: AMD Radeon RX 6950 XT - Driver: RADV Mesa 26.1.1 - Wine mode: wow64 (64-bit prefix) - DXVK and VKD3D installed via winetricks - Graphics API set to kSettingAPI_DX12 in system.xml Steps to reproduce: 1. Install Wine Staging 11.10 2. Launch Red Dead Redemption 2 via Wine 3. Error Code 18 appears immediately, game does not start Expected: game launches normally (as it did with 11.9) Actual: "Rockstar Games failed to initialize graphics device. Error Code: 18" Suspected cause: dcomp-DCompositionCreateDevice2 patches introduced in 11.10. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59811 Zeb Figura <z.figura12@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Product|Wine |Wine-staging Component|d3d |-unknown CC| |leslie_alistair@hotmail.com | |, z.figura12@gmail.com --- Comment #1 from Zeb Figura <z.figura12@gmail.com> --- DXVK and vkd3d-proton are not supported in this bug tracker; please test with unmodified wine or report bugs to DXVK and vkd3d-proton. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59811 Stian Low <wineryyyyy@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wineryyyyy@gmail.com --- Comment #2 from Stian Low <wineryyyyy@gmail.com> --- Regarding dcomp, 1 change was made to fix Battle.net flickering by making it compatible with changes to swapchain behavior to fix Vulkan rendering too dark for games that use SwapEffect 0x3 DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL: https://bugs.winehq.org/show_bug.cgi?id=59631 https://bugs.winehq.org/show_bug.cgi?id=45364 I think DXVK handles its own swapchain so my guess is that this dcomp commit broke dxvk's swapchain compatibility: https://gitlab.winehq.org/wine/wine-staging/-/commit/2e61863dccb60c5ded69185... Reverting that one change may fix for DXVK. Patches supporting DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL were staged for wine only so DXVK compatibility was considered out of scope as Zeb indicated. It's too early to confirm that my changes are actually valid until more time has past for more tests, but if they are valid then DXVK may need to reconcile with wine's latest swapchain adjustments. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59811 --- Comment #3 from Stian Low <wineryyyyy@gmail.com> --- (In reply to Stian Low from comment #2)
Regarding dcomp, 1 change was made to fix Battle.net flickering by making it compatible with changes to swapchain behavior to fix Vulkan rendering too dark for games that use SwapEffect 0x3 DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL:
Quick web search for RDR2 and DComposition returns barely any results so fail may not actually be caused by dcomp which seems more typical for menu based systems like Battle.net rather than in-game menus that seem to typically use d3d instead. Are any logs reported by console for failure? `WINEDEBUG=+dcomp,+d3d` may help further track the regression. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59811 --- Comment #4 from Stian Low <wineryyyyy@gmail.com> --- Created attachment 81091 --> http://bugs.winehq.org/attachment.cgi?id=81091 Screenshot RDR2 (build-1492.50) running for wine-11.10-4f131853af3 (plain vanilla) Unable to reproduce any error for brief test launching RDR2 without staging. MangoHUD shows VULKAN despite setting any D3D renderers (GDI/no3d, WINED3D/gl, DAMAVAND/vk) so if we're running the same version of RDR2 then DirectX is not used so DXVK, VKD3D, and Dcomp staging patches do not apply. Please post more info such logs running game with `WINEDEBUG=+d3d,+vulkan` to clarify which rendering pipeline may be failing. I'll also test for staging. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59811 --- Comment #5 from Stian Low <wineryyyyy@gmail.com> --- Created attachment 81095 --> http://bugs.winehq.org/attachment.cgi?id=81095 WINEDEBUG=+module,+vkd3d vkd3d-2.0-e02b9b10 for wine-11.10 (old-wow64) (In reply to Cleon from comment #0)
Red Dead Redemption 2 fails to launch with "Error Code 18: failed to - Graphics API set to kSettingAPI_DX12 in system.xml
Confirming RDR2 crashes at launch for renderer=vulkan after changing default kSettingAPI_Vulkan to kSettingAPI_DX12 to force d3d12 rendering (~/Documents/Rockstar Games/Red Dead Redemption 2/Settings/system.xml) Seems kSettingAPI_Vulkan to kSettingAPI_DX12 fix for Error Code 18 may not apply on wine: https://support.rockstargames.com/articles/6FcwRakW7gmXS7MS1jdeF9/rockstar-g... Crashes with backtrace without popup Error code 18 for wine-10 (debian 13 apt-pkg) and wine-11.10 with/without staging. <game_root_dir>/12on7/d3d12.dll shows loaded for WINEDEBUG=+modules logs `winecfg /v win7` popups warning about outdated Windows 7 version but same crash after clicking continue Red Dead 1 shows popup that prevents launch which may be similar to whatever causes RDR2 Error 18: Grahics card does not meet minimal VRAM requirements of at least 2GB Error Code: (25D11004) Workaround for RDR2 for vanilla wine may be <API>kSettingAPI_Vulkan</API> for settings.xml until DX12 issues are fixed. Continuing tests. Thanks for reports. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla