protonscr

Failed to create Vulkan swapchain: VK_ERROR_NATIVE_WINDOW_IN_USE_KHR

dxvkclosed windows
doitsujin/dxvk#5265 · opened 2025-10-12 by AN3Orik · updated 2025-10-14 · 8 comments · github
AAN3Orik 2025-10-12 github

Open map for editing in UT2004, minimize app, maximize - after that DXVK seems lie unloaded (FPS HUD is disappeared) and application stop to receive mouse input.

Software information

UT2004 Editor

System information

  • GPU: NVIDIA GeForce RTX 2080 Ti (Vendor: 0x10DE, Device: 0x1E07)
  • Driver: 572.83.0
  • Wine version: Windows 10
  • DXVK version: 2.7.1 (tested also build from last sources - same)

Apitrace file(s)

Log files

UnrealEd_d3d9.log

BBlisto91 2025-10-12 github

Try with d3d9.deferSurfaceCreation = True in a dxvk.conf file next to the exe

AAN3Orik 2025-10-12 github

Thank for answer, but same. Log with d3d9.deferSurfaceCreation = True

UnrealEd_d3d9.log

KK0bin maintainer 2025-10-12 github

That's unfortunately a normal problem with DXVK in GUI applications on Windows. Not much we can do about it.

AAN3Orik 2025-10-12 github

That's unfortunately a normal problem with DXVK in GUI applications on Windows. Not much we can do about it.

Did you know details about what happening? Maybe i'll try to modify UT2004 to avoid this problem.

WWinterSnowfall 2025-10-12 github

If this is about UnrealEd, it seems fine here in Wine. I can minimize it, then maximize it back without issues.

Image

The "FPS HUD" disappearing can simply be a symptom of partial presentation, but the input should return once the window is back in focus.

What about d3d9.deviceLossOnFocusLoss = True? Does that do anything for you?

AAN3Orik 2025-10-12 github

If this is about UnrealEd, it seems fine here in Wine. I can minimize it, then maximize it back without issues.

Image The "FPS HUD" disappearing can simply be a symptom of partial presentation, but the input should return once the window is back in focus.

What about d3d9.deviceLossOnFocusLoss = True? Does that do anything for you?

With d3d9.deviceLossOnFocusLoss = True same. I find out it's happening when the TextureBrowser window opens additionally to the editor main window with viewports. When minimize-maximize to taskbar only with editor window - all ok.

Edit: not ok, when something selected in 3D view (brush or volume for example) - minimize and maximize again: 3D viewport became black and when trying to select something in top-view - selection work with huge XY offset

Ddoitsujin maintainer 2025-10-13 github

And again, desktop apps are not expected to work since we currently only support presenting via Vulkan swapchains rather than being fully GDI-compatible. Especially if your driver is set to present via DXGI then this kind of breakage isn't entirely unexpected and it's not a priority to change that.

(The only real way to fix this is to present from the CPU, which is obviously slow and accidentally hitting that path in a game would be catastrophic, so not entirely keen on ever doing this).

AAN3Orik 2025-10-13 github

And again, desktop apps are not expected to work since we currently only support presenting via Vulkan swapchains rather than being fully GDI-compatible. Especially if your driver is set to present via DXGI then this kind of breakage isn't entirely unexpected and it's not a priority to change that.

(The only real way to fix this is to present from the CPU, which is obviously slow and accidentally hitting that path in a game would be catastrophic, so not entirely keen on ever doing this).

Thanks for clarify and your time. I will try to rewrite to D3D9Drv to Vulkan then. I think you can close this issue

Nothing extracted yet.