Facepunch / sbox-issues

180 stars 12 forks source link

Editor crashes on latest nvidia driver 572.16 #7485

Open andy013 opened 1 week ago

andy013 commented 1 week ago

Describe the bug

I just updated to the latest nvidia driver 572.16 and the editor crashes instantly on loading any project. Rolling back the driver to 565.90 fixed the issue.

My GPU is an old GTX 970, I'm not sure if that's anything to do with it.

Here's the log and vulkaninfo:

2025/01/31 11:37:33.1514    [engine/RenderSystem] Vulkan Physical Device: NVIDIA GeForce GTX 970    
2025/01/31 11:37:33.3038    [engine/RenderSystem] Unable to open Vulkan pipeline cache shadercache\vulkan\shaders.cache file - might not exist yet. 
2025/01/31 11:37:33.3038    [engine/RenderSystem] Additional fossilize database path: C:\Program Files (x86)\Steam\steamapps\common\sbox\core\vulkan_shader_cache.foz   
2025/01/31 11:37:33.3038    [engine/RenderSystem] Vulkan driver version: 572.16.0.0 
2025/01/31 11:37:34.0922    [engine/ResourceSystem] Error loading resource file "models/dev/error.vmesh_c" (Error: ERROR_FILEOPEN: File not found)  
2025/01/31 11:37:34.6326    [Generic] Waiting for Web Auth Ticket.. 
2025/01/31 11:37:34.7409    [engine/RenderSystem] Loaded fossilize database in 1.44 seconds total (serial: 1.25s parallel: 0.19s)   
2025/01/31 11:37:34.7409    [engine/RenderSystem] Successfully loaded Steam Shader Pre-cache database and pre-warmed registered shaders, total time: 1.44s (pre-warm time: 0.00s).  
2025/01/31 11:37:35.1501    [Generic] Waiting for Web Auth Ticket.. 
2025/01/31 11:37:35.6541    [Generic] Waiting for Web Auth Ticket.. 
2025/01/31 11:37:41.5783    [Generic] Unable to fetch package info for base: invalid ident. 
2025/01/31 11:37:41.8990    [Generic] Unable to fetch package info for toolbase: invalid ident. 
2025/01/31 11:37:42.7298    [Generic] Unable to fetch package info for local.my_project.editor: invalid ident.  
2025/01/31 11:37:45.2907    [GameMenu] ImportCustomTypeFiles took 2.14 seconds  
2025/01/31 11:37:45.4509    [GameMenu] Installing Cloud Assets took 0.158s  
2025/01/31 11:37:45.7855    [Generic] Bootstrap Networking...   
2025/01/31 11:37:49.8541    [engine/RenderSystem] Wrote NVIDIA Aftermath GPU Crash Dump to C:\Program Files (x86)\Steam\steamapps\common\sbox\aftermath_dumps\core_11.nv-gpudmp 
2025/01/31 11:37:49.8549    [engine/RenderSystem] Wrote NVIDIA Aftermath GPU Crash Dump JSON to C:\Program Files (x86)\Steam\steamapps\common\sbox\aftermath_dumps\core_11.nv-gpudmp.json   
2025/01/31 11:37:49.8549    [engine/RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkQueueSubmit( VulkanQueue(), 1, &submitInfo, presentFence.m_pFence ) )    
2025/01/31 11:37:49.8549    [engine/RenderSystem] Checking for VK_EXT_device_faults...  
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] description:   
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] addressInfoCount: 0    
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] vendorInfoCount: 0 
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] vendorBinarySize: 0    
2025/01/31 11:37:49.8549    [engine/RenderSystem] FrameSync() - bailing out of vkWaitForFences( fenceCount = 1 ) after 0.000000 seconds, error = VK_ERROR_DEVICE_LOST   
2025/01/31 11:37:49.8549    [engine/RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkQueueWaitIdle( VulkanQueue() ) ) 
2025/01/31 11:37:49.8549    [engine/RenderSystem] ERROR! VK call failed! result = VK_ERROR_DEVICE_LOST ( vkQueueSubmit( pQueue, 1, &submitInfo, pFence->Get() ) )   
2025/01/31 11:37:49.8549    [engine/RenderSystem] Checking for VK_EXT_device_faults...  
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] description:   
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] addressInfoCount: 0    
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] vendorInfoCount: 0 
2025/01/31 11:37:49.8549    [engine/RenderSystem] [VK_EXT_device_faults] vendorBinarySize: 0

vulkaninfo.txt

To Reproduce

  1. Update to the latest nvidia driver
  2. Open any project

Expected behavior

The editor shouldn't crash.

Media/Files

No response

Additional context

No response

handsomematt commented 1 week ago

I've just updated and it's working fine for me. Could you try uninstalling OBS & Riva, your vulkaninfo suggests they may be causing problems with Nvidia's Vulkan 1.4 update

andy013 commented 1 week ago

I completely uninstalled both and restarted my pc but it still crashes even with a brand new project.

handsomematt commented 1 week ago

Does the game launch still (not editor)?

andy013 commented 1 week ago

Yeah, the game loads fine.