dxvk: "Failed to query surface formats" followed by "Failed to create presenter or back buffer" errors on all games tested.

I feel like this issue is not dxvk’s fault, but after a day of installing additional packages, swapping between different version of wine, nvidia driver and dxvk, the only way I managed to launch a game was by turning off dxvk. And since google failed me on this one, posting the problem here seemed the best thing to do.

Also some context, I was able to run games throught DXVK on this very same hardware 6 monts ago. But since them I wiped the OS and bumped to the new version of Ubuntu, and that is only now that I tried to play some windows game again and hit this blocking point.

The issue

For every 3D game I tried with DXVK, I wasn’t able to launch the launcher / game. Deactivating DXVK make the game run but obviously the performance isn’t great. Going through the logs, I noticed every game had the same error in the dxgi.log file. Googling those error did turn up some advice from this repository but none worked (setting DXVK_FAKE_DX10_SUPPORT to 1 and VK_ICD_FILENAMES: to the vulkan file for the discrete card).

Also I can play some 2D games through proton on steam, mainly “Into the breach” and “Heat signature”, which I guess don’t use directX, so DXVK isn’t loaded.

Software information

Games (again, this is all the 3D games I tried to run on this computer):

  • Overwatch (lutris) : pass the login window, the main launcher window open but is black and crash shortly after.
  • Titanfall2 (lutris) : A virtual desktop open, a black windows the shape of the login form of Origin open but nothing more.
  • Warframe (lutris) : the script of GloriousEggroll runs and update the game, but once the game launch only a black window open and crash shortly after.
  • Warframe (steamplay) : the only visible activity come from steam saying that the game run during a split second, no window. I couldn’t locate the DXVK log files.
  • Prey (steamplay) : The game tried to open fullscreen but crash immediately. Again I couldn’t find the log files.

System information

  • OS: Ubuntu 18.04, fresh install.
  • GPU: GTX 1050 mobile, PRIME is activated
  • Driver: 410.*, 396.54, 396.54.09
  • Wine version: proton 3.16-4, wine 3.18 + esync, wine 3.16.
  • DXVK version: from 0.20 to 0.90

Apitrace file(s)

  • Put a link here

Log files (from warframe lutris, but the errors are the same on the others games)

  • d3d11.log:
info:  Enabled instance layers:
info:  Enabled instance extensions:
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 1050:
info:    Driver: 396.54.9
info:    Vulkan: 1.1.85
info:    Memory Heap[0]: 
info:      Size: 4096 MiB
info:      Flags: 0x1
info:      Memory Type[7]: Property Flags = 0x1
info:      Memory Type[8]: Property Flags = 0x1
info:    Memory Heap[1]: 
info:      Size: 11919 MiB
info:      Flags: 0x0
info:      Memory Type[0]: Property Flags = 0x0
info:      Memory Type[1]: Property Flags = 0x0
info:      Memory Type[2]: Property Flags = 0x0
info:      Memory Type[3]: Property Flags = 0x0
info:      Memory Type[4]: Property Flags = 0x0
info:      Memory Type[5]: Property Flags = 0x0
info:      Memory Type[6]: Property Flags = 0x0
info:      Memory Type[9]: Property Flags = 0x6
info:      Memory Type[10]: Property Flags = 0xe
info:  Enabled device extensions:
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
err:   DxvkSurface::getSurfaceFormats: Failed to query surface formats
err:   DXGI: DxgiSwapChain: Failed to create presenter or back buffer
  • dxgi.log:
info:  D3D11CreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0

If you need additional information I’ll be happy to oblige.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 21 (9 by maintainers)

Most upvoted comments

Found it. The vulkan-tools package is marked as a replacement for vulkan-utils, explaining why apt won’t let me install vulkan-utils, since it depends on vulkan-tools so there is a conflict.

So vulkan-tools is apparently the way to go when using the graphics-drivers/ppa ppa.

And your workaround seem to work !!! running vulkaninfo as a normal user fail (core dumped) when the program start to probe the nvidia card. Running as root work, and then running as a normal user then work too !!

And low and behold, games work too 🎉 ! It only seem like the rest of the windows can’t be focused without causing long and repeated freezes for the whole system (even with the simplest app such as vulkan-cube) but I’ll take it.

Thank everyone for your patience and dedication. And @doitsujin, you may ear this regularly, but without what you do, AAA gaming on linux would be a joke right now. Your work give more freedom of choice to millions of gamers and you should be proud of that. Keep it up 👍.

@VincentGuinaudeau There’s currently a bug on Ubuntu where Vulkan cannot grab the device with nvidia-drm.modeset=1 activated (which is the default on Ubuntu)

Usually running a Vulkan utility (such as vulkaninfo) as sudo solves this issue during the current session.

I’m on Mint 18.3 with Gtx 1050 and Intel HD combo. DXVK and other Vulkan games ( RoTR , DOOM etc ) works for me.

Testing with Dota2 is a good start but i think you might be missing some Vulkan libs on your setup.

Try that ;

sudo apt-get install libvulkan1 sudo apt-get install libvulkan1:i386 sudo apt-get install vulkan-utils