Negligent D3D9 games may release their D3D9 device while also failing to properly release all their resources/surfaces/textures. This happens to Hard Truck 2 failing to release some of its system memory surfaces, before tearing down the D3D9 device and re-creating it shortly after on the same window.
With native D3D9, this works without observable issues. With DXVK, the second D3D9 device creation succeeds, but Present fails quietly (i.e. still returns S_OK to the game, but fails in practice) with a log spam of VK_ERROR_NATIVE_WINDOW_IN_USE_KHR swapchain creation failures.
Software information
Hard Truck 2: King of the Road, using a development version of D2GI that wraps the game from D3D7 to D3D9, with additional fixes.
System information
- GPU: NVIDIA GeForce RTX 5070 Ti
- Driver: 580.88
- Wine version: N/A, on Windows
- DXVK version: 2.7.1
Apitrace file(s)
N/A
Log files
When the issue happens, a spam of swapchain creation calls is logged:
info: Presenter: Actual swapchain properties:
info: Format: VK_FORMAT_B8G8R8A8_UNORM
info: Color space: VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR (dynamic: yes)
info: Buffer size: 1920x1080
info: Image count: 3
err: Presenter: Failed to create Vulkan swapchain: VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
Negligent D3D9 games may release their D3D9 device while also failing to properly release all their resources/surfaces/textures. This happens to Hard Truck 2 failing to release some of its system memory surfaces, before tearing down the D3D9 device and re-creating it shortly after on the same window.
With native D3D9, this works without observable issues. With DXVK, the second D3D9 device creation succeeds, but
Presentfails quietly (i.e. still returnsS_OKto the game, but fails in practice) with a log spam ofVK_ERROR_NATIVE_WINDOW_IN_USE_KHRswapchain creation failures.Software information
Hard Truck 2: King of the Road, using a development version of D2GI that wraps the game from D3D7 to D3D9, with additional fixes.
System information
Apitrace file(s)
N/A
Log files
When the issue happens, a spam of swapchain creation calls is logged: