ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
472 stars 38 forks source link

[Linux] not started Dota2 when used "-vulkan" on start #1215

Open pisionik opened 7 years ago

pisionik commented 7 years ago

hi the game wont started. when i run dota2 nothing happn. but steam client is fine ubuntu 16.04 lts AMD FX(tm)-8350 Eight-Core Processor × 8 AMD Radeon R7 200 Series

it seems i use "-vulkan" on start. if i deleted this options than game is started i find this problem today. After previouse weekend im not played all week.

ps. sry it my 1st post here

kisak-valve commented 7 years ago

Hello @pisionik, please copy your system information from steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report. Additionally, can you include the console spew from either closing steam, then running steam in a terminal and running the game from steam, or from /tmp/dumps/<username>_stdout.txt after trying to run Dota 2 with vulkan.

pisionik commented 7 years ago

oh, hello @kisak-valve :) https://gist.github.com/pisionik/c5fa9decc3a7872cb0dad9ccf1ed1605

when i start without -vulkan, terminal says psionik@terminator:~$ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically [2017-04-23 01:38:13] Startup - updater built Apr 20 2017 21:58:34 [2017-04-23 01:38:13] Opted in to client beta 'publicbeta' via beta file You are in the 'publicbeta' client beta. [2017-04-23 01:38:13] Verifying installation... [2017-04-23 01:38:13] Verification complete Attempting to create OpenGL context: v3.3 (Core profile)...success. Attempting to create OpenGL context: v3.3 (Core profile)...success. DumpContextInfo: OpenGL vendor ATI Technologies Inc. DumpContextInfo: OpenGL renderer AMD Radeon R7 200 Series DumpContextInfo: Using OpenGL context version 3.3 DumpContextInfo: Context supports GLSL version 4.50

when i start with -vulkan, terminal says psionik@terminator:~$ steam Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically [2017-04-23 01:33:56] Startup - updater built Apr 20 2017 21:58:34 [2017-04-23 01:33:56] Opted in to client beta 'publicbeta' via beta file You are in the 'publicbeta' client beta. [2017-04-23 01:33:56] Verifying installation... [2017-04-23 01:33:56] Verification complete & silence & nothing

gdrewb-valve commented 7 years ago

Have you looked at the Dota-2-Vulkan tracker? It might have info on your issue.

pisionik commented 7 years ago

hello @gdrewb-valve ) no, sry, i dont looked it. Can u throw at me link where is that tracker ty

kisak-valve commented 7 years ago

The requested issue tracker can be found at https://github.com/ValveSoftware/Dota-2-Vulkan/issues.

pisionik commented 7 years ago

must i create issue in Vulkan tree?

gdrewb-valve commented 7 years ago

You should in the future but you can leave this one here.

pisionik commented 7 years ago

excuse me, & what do we do?)) i go away read some books, mb take some cleaver & don't disturb u?) & w8 good news averyone(c)

gdrewb-valve commented 7 years ago

Besides reading through the Dota-2-Vulkan tracker to see if your issue is already covered there you just have to wait for updates to this issue.

danginsburg commented 7 years ago

I'm not sure if your GPU is supported by the AMD GPUPRO Linux driver. According to this (http://support.amd.com/en-us/kb-articles/Pages/AMD-Radeon-GPU-PRO-Linux-Beta-Driver%E2%80%93Release-Notes.aspx) it is only R7 260 and R7 260X. Yours is R700 200 Series...I'm not sure if it is supported. If you run with -con_logfile and post steamdir/steamapps/common/dota 2 beta/game/dota/console.log we might be able to give more info on why it is failing.

You can also try running vulkaninfo from the command-line and seeing if it reports any working Vulkan devices (might be useful also to post those results here).

kisak-valve commented 7 years ago

For reference, 4.5.13474 points to AMDGPU-PRO 17.10.2, which in turn points to http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx, which lists almost all R7 2xx cards. All of them are expected to be GCN cards (either GCN1 or GCN2).

pisionik commented 7 years ago

psionik@terminator:~$ vulkaninfo

VULKAN INFO

Vulkan API Version: 1.0.21

INFO: [loader] Code 0 : Found manifest file /home/psionik/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /home/psionik/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/radeon_icd.x86_64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/amd_icd32.json, version "1.0.0" WARNING: [loader] Code 0 : /opt/amdgpu-pro/lib/i386-linux-gnu/amdvlk32.so: wrong ELF class: ELFCLASS32 INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/intel_icd.x86_64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/radeon_icd.i686.json, version "1.0.0" WARNING: [loader] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32 INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/radeon_icd.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/intel_icd.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/amd_icd64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file //etc/vulkan/icd.d/intel_icd.i686.json, version "1.0.0" WARNING: [loader] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32

Instance Extensions:

Instance Extensions count = 5 VK_KHR_surface : extension revision 25 VK_KHR_xcb_surface : extension revision 6 VK_KHR_xlib_surface : extension revision 6 VK_KHR_get_physical_device_properties2: extension revision 1 VK_EXT_debug_report : extension revision 3 vulkaninfo: symbol lookup error: /usr/lib/x86_64-linux-gnu/libvulkan_intel.so: undefined symbol: drmGetDevices2

mastercoms commented 7 years ago

Try removing the Intel Vulkan driver.

mateusvahl commented 7 years ago

Same problem here, It was running fine, but then I update to this new compendiun patch and vulkan stop to work. Remove "-vulkan" from launcher resolves the problem, but the game seems to have a low perform. System information: https://gist.github.com/mateuspv/ed064a44bcc09833794a09f74ac0b31b

kisak-valve commented 7 years ago

Hello @mateuspv, your issue is unrelated to this one and is being tracked at https://github.com/ValveSoftware/Dota-2-Vulkan/issues/204. Your issue is limited to nvidia 375.39 and updating your video driver should work around the issue.

hbriese commented 7 years ago

@kisak-valve the next stable driver release is v375.66, this is likely to be the next version on debian at least until v381 leaves beta. Would this release solve the issue?

feratechinc commented 7 years ago

Same problem with -vulkan not starting up.

Using AMD A10-8700 on Ubuntu 16.04.2 with latest 17.10 drivers. Was working before until the last few updates. crash_20170527001048_16.txt

feratechinc commented 7 years ago

System Info: https://gist.github.com/feratechinc/a9e07fee078d7b05a4c8671729a52b94

kisak-valve commented 7 years ago

For reference, the attached minidump is a DUMP_REQUESTED in crashhandler.so.

GreenBeard commented 7 years ago

I just tried to run Dota 2 in vulkan mode (with the -vulkan flag) and it crashed in both fullscreen and windowed mode. I'm about to update to a newer version of linux and also update my nvidia driver. Current system information: https://gist.github.com/GreenBeard/7216131dfb24a2176a76e05e8edaaa04

Edit: Issue still remains after updating drivers (new system info: https://gist.github.com/GreenBeard/f16f93fb8d96f4b0dadf703178a6830d )

feratechinc commented 7 years ago

dota2: symbol lookup error: /usr/lib/x86_64-linux-gnu/libvulkan_intel.so: undefined symbol: drmGetDevices2 So I tried removing the intel driver from vulkan and I just got: dota2: symbol lookup error: /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so: undefined symbol: drmGetDevices2

Since I'm using radeon, I can't remove this also. Looks like a Windows DRM issue that made it's way into linux. I'm guessing windows has this variable and linux doesn't in Vulkan.

kisak-valve commented 7 years ago

@feratechinc, what version of mesa are you using and is libdrm >= 2.4.75?

feratechinc commented 7 years ago

libdrm-amdgpu-pro-amdgpu1 2.4.70 libdrm-amdgpu1 2.4.81 mesa 17.2

I'm using the AMDGPU-PRO driver, do you think it's worth uninstalling to test if vulkan works without it?

I'm using the Paulo Migel PPA so there is vulkan in the open source driver.

kisak-valve commented 7 years ago

There's definitely something off there by having more than one version of libdrm's subcomponents on the system. The symbol drmGetDevices2 was introduced in 2.4.75, so I would either push mesa back to where it only needs 2.4.70 and get that consistently the same version, or update or drop amdgpu-pro's out of date (libdrm) packages, then retest and go from there.

feratechinc commented 7 years ago

Ok, I can't actually remove the other versions. The libdrm-amdgpu1 is part of the desktop system with many components depending on it.

The amdgpu-pro version driver with built in vulkan support also comes with it's own version.

Any ideas?

mastercoms commented 7 years ago

Remove the AMDGPU pro version. You can use Mesa's RADV for Vulkan support.

feratechinc commented 7 years ago

I installed Mesa's RADV but now vulkaninfo gives me VK_ERROR_INCOMPATIBLE_DRIVER

mastercoms commented 7 years ago

Is there any more info that it gives you?

feratechinc commented 7 years ago

I'm using VulkanSDK 1.0.49.0 and I used setup-env.sh

Here is my vulkaninfo

=========== VULKAN INFO

Vulkan API Version: 1.0.21

INFO: [loader] Code 0 : Found manifest file /home/user/.local/share/vulkan/implicit_layer.d/steamoverlay_x86_64.json, version "1.0.0" INFO: [loader] Code 0 : Found manifest file /home/user/.local/share/vulkan/implicit_layer.d/steamoverlay_i386.json, version "1.0.0" Cannot create Vulkan instance. /build/vulkan-jbbABz/vulkan-1.0.21.0+dfsg1/demos/vulkaninfo.c:675: failed with VK_ERROR_INCOMPATIBLE_DRIVER

feratechinc commented 7 years ago

Ok so I installed the open source Vulkan driver. Vulkan works but Dota gives me this error:

CreateSwapChain(): The selected graphics queue does not support presenting a swapchain image.

MrChebik commented 6 years ago

Who has this error:

CreateSwapChain(): The selected graphics queue does not support presenting a swapchain image.

You have to activate DRI3

  1. Go to your Xorg configuration file: /etc/X11/xorg.conf
  2. Search section "Device"
  3. Add Option or change if you have parameter "DRI" to "3"

So, you will have something of this:

Section "Device"
    Identifier "device1"
    VendorName "Intel Corporation"
    BoardName "Intel 810 and later"
    Driver "intel"
    Option "DPMS" "false"
    Option "Tiling" "true"
    Option "DRI" "3"
EndSection

Someone managed to activate with "DRI3" "on"

  1. Save file.
  2. Reboot.

Finally, I have this parameters at Dota 2:

MESA_GL_VERSION_OVERRIDE=4.5 MESA_GLSL_VERSION_OVERRIDE=450 %command% -vulkan

The game is started, but I have other issues with drawing 3d objects.

Screenshots of troubles: https://drive.google.com/file/d/1eEkbMSVLm-eHA2BCqAEswGnJkdwdNhIH/view?usp=sharing https://drive.google.com/file/d/1uB3-_UPCxxfNt7l5UsErbwBkFGc_MoAs/view?usp=sharing

$ glxinfo | grep OpenGL
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.5
OpenGL core profile shading language version string: 4.50

Update

I install Mesa 17.3.0 test version from Mageia Cauldron. And the game is running! https://drive.google.com/file/d/1AL0S_klja8vcWg-Uv_yvBa_lKFheVZOm/view?usp=sharing

Mesa 17.3.0 packages from Mageia Cauldron (test). And have this OpenGL:

$ glxinfo | grep OpenGL
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) 
OpenGL core profile version string: 0.0 (Core Profile) Mesa 17.3.0