protonscr

Cannot run Battle.net or World of Warcraft on Ubuntu 19.04

dxvkclosed
doitsujin/dxvk#1021 · opened 2019-04-20 by dylanparry · updated 2019-05-22 · 14 comments · github
2 matching comments, n / p to jump
Ddylanparry 2019-04-20 github

First off, thank you for this project! It's awesome, and has allowed me to play WoW with great frame rates on my previous Ubuntu installation :)

I'm having trouble getting Battle.net and World of Warcraft to work. Without DXVK installed, both run just fine (albeit poor FPS), but as soon as I add DXVK to the Wine prefix I can't get either to load correctly.

Battle.net will show the login screen, and then the frame for the main application appears, but it's transparent. A few seconds later I get an error (with no helpful text, just the option to send to Blizzard) and the application quits.

image

If I run wow.exe instead, it appears to start loading, but then I get the generic error dialog that states it couldn't start 3D acceleration.

image

This is a completely fresh installation of Ubuntu 19.04, so I suspect I'm missing something that needs to be installed, but I haven't got a clue what. Any ideas?

Software information

World of Warcraft (also Battle.net)

System information

  • GPU: Nvidia GeForce GTX 1050
  • Driver: 418.56.0
  • Wine version: 4.6 Staging
  • DXVK version: 1.0.3

Log files

  • d3d11.log:
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_1
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
err:   Failed to create swap chain
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
err:   Failed to create swap chain
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info:  Enabled device extensions:
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 0 valid state cache entries
info:  DXVK: Using 4 compiler threads
err:   Failed to create swap chain
  • dxgi.log:
info:  Game: Wow.exe
info:  DXVK: v1.0.3
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 1050:
info:    Driver: 418.56.0
info:    Vulkan: 1.1.95
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: 23945 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:  Intel(R) HD Graphics 630 (Kaby Lake GT2):
info:    Driver: 19.0.2
info:    Vulkan: 1.1.96
info:    Memory Heap[0]: 
info:      Size: 22921 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:    Memory Heap[1]: 
info:      Size: 1024 MiB
info:      Flags: 0x1
info:      Memory Type[1]: Property Flags = 0xf
warn:  DxgiFactory::QueryInterface: Unknown interface query
warn:  7632e1f5-ee65-4dca-87fd-84cd75f8838d
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  Game: Wow.exe
info:  DXVK: v1.0.3
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 1050:
info:    Driver: 418.56.0
info:    Vulkan: 1.1.95
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: 23945 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:  Intel(R) HD Graphics 630 (Kaby Lake GT2):
info:    Driver: 19.0.2
info:    Vulkan: 1.1.96
info:    Memory Heap[0]: 
info:      Size: 22921 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:    Memory Heap[1]: 
info:      Size: 1024 MiB
info:      Flags: 0x1
info:      Memory Type[1]: Property Flags = 0xf
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  Game: Wow.exe
info:  DXVK: v1.0.3
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 1050:
info:    Driver: 418.56.0
info:    Vulkan: 1.1.95
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: 23945 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:  Intel(R) HD Graphics 630 (Kaby Lake GT2):
info:    Driver: 19.0.2
info:    Vulkan: 1.1.96
info:    Memory Heap[0]: 
info:      Size: 22921 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:    Memory Heap[1]: 
info:      Size: 1024 MiB
info:      Flags: 0x1
info:      Memory Type[1]: Property Flags = 0xf
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  Game: Wow.exe
info:  DXVK: v1.0.3
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
info:  GeForce GTX 1050:
info:    Driver: 418.56.0
info:    Vulkan: 1.1.95
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: 23945 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:  Intel(R) HD Graphics 630 (Kaby Lake GT2):
info:    Driver: 19.0.2
info:    Vulkan: 1.1.96
info:    Memory Heap[0]: 
info:      Size: 22921 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:    Memory Heap[1]: 
info:      Size: 1024 MiB
info:      Flags: 0x1
info:      Memory Type[1]: Property Flags = 0xf
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
Ddoitsujin maintainer 2019-04-20 github

err: Failed to create swap chain

Looks like you're on a laptop and are trying to run the game on your Nvidia GPU, which requires additional configuration. No idea how to do that though.

Ddylanparry 2019-04-20 github

I tried to run vulkaninfo, and then remembered that nothing Vulkan-based seems to run unless I've ran vulkaninfo as root first. I have no idea why that might be the case, but I had it set up to run as part of the boot sequence on Ubuntu 18.10 and forgot to add it on my new installation.

After running vulkaninfo as root, all appears to be working fine. Again, no idea why this is the case, but it works.

Thanks for your help :)

Yyuiiio 2019-04-20 github

sudo cat /sys/module/nvidia_drm/parameters/modeset
Y or N ?

Ddylanparry 2019-04-20 github

It shows a Y. The link describes my setup perfectly too, thanks.

Vv21cesc 2019-04-22 github

Are you sure that you've switched to the dGPU correctly via nvidia-prime?

Ddylanparry 2019-04-22 github

Yeah, definitely running on the discrete card. Gnome shows the correct info when looking at the "about" section in the settings app.

As per the link above, it looks like it's a bug in Ubuntu. The temporary fix described there works for me too.

AAskannz 2019-04-23 github

You probably need to force the Vulkan ICD to Nvidia, Overwatch has the same issue with multi-GPUs setups. Try launching the game with the environment variable VK_ICD_FILENAMES set to /usr/share/vulkan/icd.d/nvidia_icd.json.

AAlexandarY 2019-04-27 github

Had the same issue as the one reported above. Running sudo vulkaninfo does resolve it, but the game is not starting due to the following error:

warn:  DXGI: MakeWindowAssociation: Ignoring flags
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
info:  DXGI: NvAPI workaround enabled, reporting AMD GPU
002a:err:seh:setup_exception stack overflow 1760 bytes in thread 002a eip 000000007bc9ccd9 esp 0000000000130f30 stack 0x130000-0x131000-0x230000

Here are my logs:
d3d11.log - Wow_d3d11.log
dxgi.log - Wow_dxgi.log

The error above is not showing in both logs, but in the console after I have started Wow.exe.
I'm using the following command to run the .exe:
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json WINEPREFIX=~/.wowwine wine Wow.exe

GPU: GeForce GTX 1050 Ti
Driver: 418.56
Wine version: 4.2-2 (Ubuntu disco shipped)
DXVK version: 1.0.3

Edit#1: Fixed typo.
Edit#2: Remove 'development' as it's not winehq-devel but ubuntu's wine-development.

AAlexandarY 2019-04-27 github

After disabling WINEESYNC=0 it still gives the same error.

Bbobwya 2019-04-27 github

See the comments:

wine-staging/wine-staging@d8568c9#commitcomment-33332730

This only affects the (recently released) Wine Staging 4.7 ...
As the comment clearly states. The commit was only made 2 days ago, after all.

AAlexandarY 2019-04-30 github

I was able to resolve my issue above after installing wine-staging_4.7. It was working fine without WINEESYNC=0. Cannot confirm why it wasn't working with 4.2 or wine-devel-4.7.

Either way, it seems i'll wait a few weeks before distro upgrading again :)

Yyuiiio 2019-05-22 github

sorry this is not nvidia-drm bug linux mint cinnamon is works.
may be it's gdm bug (mint is lightdm).

Launch options

Upstream links