ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive

Home Page:http://counter-strike.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Game crashes with "VK_ERROR_DEVICE_LOST"

hcwf opened this issue · comments

Your system information

Please describe your issue in as much detail as possible:

The game randomly crashes after a while of playing, sometimes crashing the whole computer and forcing it to restart.
The intervals at which this happens are random, it could happen right in the first match of the day, shortly after another crash or after hours of gaming.
The crashes only happen when I'm in a match, never when I'm in the menu or tabbed out of the game.

When the game crashes both my monitors freeze, the audio cuts out and I can not interact with the game or my OS for about 10-20 seconds. After that either my PC reboots or the game and Steam as a whole crash and close itself.

I've already enabled logging with "-condebug" as startup command and all crashes I recorded have to do with the Vulkan drivers. In all instances the drivers fail with VK_ERROR_DEVICE_LOST. Here's a short snippet from the last crash I just encountered:

05/27 15:37:01 [RenderSystem] FrameSync() - bailing out of vkWaitForFences( fenceCount = 1 ) after 0.257536 seconds, error = VK_TIMEOUT
05/27 15:37:01 CSwapChainBase::QueuePresentAndWait() looped for 22 iterations without a present event.
05/27 15:37:01 [RenderSystem] FrameSync() - bailing out of vkWaitForFences( fenceCount = 2 ) after 0.250720 seconds, error = VK_TIMEOUT
05/27 15:37:22 [RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkQueueWaitIdle( VulkanQueue() ) )
05/27 15:37:22 [RenderSystem] CSwapChainVulkan::SwapBuffers(): waited for 20.26 seconds
05/27 15:37:22 [RenderSystem] CSwapChainVulkan::SwapBuffers vkAcquireNextImageKHR - completed result = VK_ERROR_SURFACE_LOST_KHR
05/27 15:37:22 [RenderSystem] Vulkan swapchain out-of-date, suboptimal, or surface lost - recreating.  Result: (VK_ERROR_SURFACE_LOST_KHR)
05/27 15:37:22 [RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkQueueWaitIdle( VulkanQueue() ) )
05/27 15:37:22 [RenderSystem] The selected graphics queue does not support presenting a swapchain image.

The full log and another can be found here: https://gist.github.com/hcwf/92d9921f92e1046ccab4db04b5092ff1
and here: https://gist.github.com/hcwf/cac299680a37f482aeb89b3d7420e756

Steps for reproducing this issue:

  1. Start the game.
  2. Play for an indeterminate timeframe.
  3. Have the game or your entire PC crash while in a match.

Hello @hcwf, your system is configured to use AMDVLK. Can you test how the game behaves with mesa/RADV? If it's a driver specific issue, then that should be reported to your video driver vendor.

Hello @hcwf, your system is configured to use AMDVLK. Can you test how the game behaves with mesa/RADV? If it's a driver specific issue, then that should be reported to your video driver vendor.

Hey @kisak-valve, thanks for getting back to me. I switched to RADV drivers for CS2, however I still crash with the same error.
Here's the Gist of the recent crash: https://gist.github.com/hcwf/a4e3a1c6cb1d07ce567fe5f588c7bc39