ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" #5423

Open at46 opened 6 years ago

at46 commented 6 years ago

Your system information

Please describe your issue in as much detail as possible:

Can't remember when I first encountered the issue but since quite some time when I start steam I always get: Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" in /home/pgriffais/src/Vulkan/base/vulkanexamplebase.cpp at line 823 Every game works fine so it's no problem at all but there shouldn't be a fatal error during startup in my opinion. Also this looks just like some forgotten debug code or something like that because /home/pgriffais/ doesn't exist on my system.

Steps for reproducing this issue:

start steam

kisak-valve commented 6 years ago

It's worth noting that this is non-fatal and needs a system that does not support vulkan to reproduce (like r600 or intel/sandybridge).

gnusuari0 commented 6 years ago

I am this message too.

AniLeo commented 6 years ago

Retested this on current beta build after the Steam Play announcement

System information

Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" in /home/pgriffais/src/Vulkan/base/VulkanSwapChain.hpp at line 210

Tried running NieR: Automata, nothing opens at all.

at46 commented 6 years ago

@AniLeo Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" in /home/pgriffais/src/Vulkan/base/VulkanSwapChain.hpp at line 210 indicates that vulkan isn't working or no vulkan driver is found and proton / steam play requires working vulkan.

AniLeo commented 6 years ago

Vulkan driver is present. I managed to fix this by disabling modeset on nvidia drivers, which I had enabled.

elhoir commented 6 years ago

Hello, i get this message in an AMD system (A6-5200 w/ Radeon 8400 GPU) (laptop)

So itś not nVidia specific

easbarba commented 5 years ago

Same error hitting here!

Debian SID T430 Steam from Debian non-free repo!

stafoo commented 5 years ago

Same error here, and I can't load the vulkan games. When I launch the steam client from terminal, I get the following error:

_Fatal : VkResult is "ERROR_INITIALIZATIONFAILED" in /home/pgriffais/src/Vulkan/base/VulkanSwapChain.hpp at line 210

Let me explain how I got there.

@AniLeo can you explain how you got it working? Thanks in advance!

stafoo commented 5 years ago

Solution found here (just a workaround, not a fix): https://askubuntu.com/questions/1090945/ubuntu-18-04-vulkan-stopped-working-nvidia-drivers-proprietary 1- Install the package vulkan-utils 2- Type in the terminal the following command, before to start steam: sudo vulkaninfo 3- Close the terminal, then start steam

Vulkan works until the next reboot.

fleskesvor commented 5 years ago

I have to use @stafoo's workaround to launch the native version of Eliza on Linux, otherwise it just crashes because Vulkan is not initialized.

I notice that this is a pretty old issue by now though, and I'm wondering if there's a more permanent workaround/fix to this issue yet?

459below commented 5 years ago

For me the render devices are owned by a group called render

[459below@manus ~]$ ls -ahl /dev/dri/
total 0
drwxr-xr-x   3 root root        140 Nov  4 17:26 .
drwxr-xr-x  18 root root       4.0K Nov  4 19:15 ..
drwxr-xr-x   2 root root        120 Nov  4 17:26 by-path
crw-rw----   1 root video  226,   0 Nov  4 17:26 card0
crw-rw----+  1 root video  226,   1 Nov  4 17:26 card1
crw-rw----   1 root render 226, 128 Nov  4 17:26 renderD128
crw-rw----+  1 root render 226, 129 Nov  4 17:26 renderD129

Adding the user to the group render (and restarting the session) allowed me to successfully invoke vulkaninfo

I'm using nouveau and DRI_PRIME for a dual GPU setup using Intel and a discrete NVIDIA.

scorbin commented 4 years ago

I am getting this same error. I switch to my intel graphics card prime-select intel. When I switch back prime-select nvidia I start getting this error. I am running ubuntu 18.04 on dell xps 9560.

nekohayo commented 3 years ago

This bug prevents me from being able to launch Steam past the login dialog, on my computer on Fedora 33 with Intel graphics (no secondary GPU, just Intel), I get this even if I ran vulkaninfo before trying to launch steam:

appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
Installing breakpad exception handler for appid(steam)/version(1573019481)
appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
appdatacache.cpp (697) : Assertion Failed: !package.missing_token()
crash_20201218111419_24.dmp[743220]: Uploading dump (out-of-process)
/tmp/dumps/crash_20201218111419_24.dmp
Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" in /home/pgriffais/src/Vulkan/base/vulkanexamplebase.cpp at line 823
vulkandriverquery: /home/pgriffais/src/Vulkan/base/vulkanexamplebase.cpp:823: void VulkanExampleBase::initVulkan(): Assertion `res == VK_SUCCESS' failed.
threadtools.cpp (831) : Assertion Failed: ThreadGetProcessExitCode: no such process 742654
threadtools.cpp (831) : Assertion Failed: ThreadGetProcessExitCode: no such process 742654
crash_20201218111419_24.dmp[743220]: Finished uploading minidump (out-of-process): success = yes
crash_20201218111419_24.dmp[743220]: response: CrashID=bp-93e632ca-5b69-403a-8db5-6be322201218
crash_20201218111419_24.dmp[743220]: file ''/tmp/dumps/crash_20201218111419_24.dmp'', upload yes: ''CrashID=bp-93e632ca-5b69-403a-8db5-6be322201218''

You may say that Intel graphics aren't a great platform to game on... but the irony is that I need to be able to launch Steam there to remove the games from that computer!

kisak-valve commented 3 years ago

Helo @nekohayo, Fatal : VkResult is "ERROR_INITIALIZATION_FAILED" is the vulkan sanity check dying and is known to be non-fatal to Steam. Also, Steam crashed before this message was outputted. Sounds like you've encountered #7226.