protonscr

Shader Pre-Caching Fails preventing games from starting

steamclosed Steam client
ValveSoftware/steam-for-linux#7252 · opened 2020-07-10 by ronoverdrive · updated 2020-07-14 · 12 comments · github
Rronoverdrive 2020-07-10 github

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Shader Pre-Caching should compile and/or download a shader cache. Instead it does nothing when background processing is enabled and crashes when Fossilize attempts to load with the following error:

Inconsistency detected by ld.so: dl-minimal.c: 126: realloc: Assertion ptr == alloc_last_block' failed!`

Attempting to force shader compilation via the console with the shader_build command does nothing but create the cache directories. I've attempted both Stable and Beta builds of Steam, both runtime enabled and disabled, a reset with --reset, and completely clearing ~/.steam and ~/.local/share/Steam. Only thing I can do is Disable Shader Pre-Caching to allow games to run.

Steps for reproducing this issue:

  1. Turn on Precaching
  2. Launch any game that uses Vulkan or DXVK
Ddarksaboteur 2020-07-12 github

I am also experiencing this same issue and can confirm that Disabling Shader Pre-Caching in the Steam client fixed the issue.
I am on Fedora 32 using Steam beta July 8 2020.

Ssinatosk 2020-07-14 github

I think I too experiencing this... everything was working fine yesterday ( 13/07/2020 )

today (14/07/2020 ) I start steam after updating mesa drivers which triggers for shaders to recompiled, no games would start

I downgraded to the previous drivers, no games would start

I disabled steam pre-cache and no games would start

I deleted the cache inside "~/.local/share/Steam/steamapps/shadercache/" and no games would start

I enabled shader pre-cache and none of the shader cache is downloading and compiling is stuck at 0%

I've tried this with both stable and beta steam

I do see the same error as the OP

Ffrostworx 2020-07-14 github

I've seen the same error earlier today while "debugging" SteamVR fail. Any chance this is related here as well?:

fyi: at least on arch linux
vulkan-icd-loader-1.2.146-1 also makes SteamVR fail with Error 307
downgrading to
vulkan-icd-loader-1.2.145-1 fixes the problem!

https://github.com/ValveSoftware/SteamVR-for-Linux/issues/355#issuecomment-658085677

Ffrostworx 2020-07-14 github

yes, this looks related indeed:
Tried to start the 32bit game Gods Remastered (628720) which failed.
After downgrading lib32-vulkan-icd-loader-1.2.146-1 to lib32-vulkan-icd-loader-1.2.145-1 the game started normally!

Kkattjevfel 2020-07-14 github

I just got hit by this issue, downgrading "fixed" it, but I guess I'll just have to disable pre-caching for now.

Ffrostworx 2020-07-14 github

thanks for confirmation!

Ssinatosk 2020-07-14 github

I've seen the same error earlier today while "debugging" SteamVR fail. Any chance this is related here as well?:

fyi: at least on arch linux
vulkan-icd-loader-1.2.146-1 also makes SteamVR fail with Error 307
downgrading to
vulkan-icd-loader-1.2.145-1 fixes the problem!

ValveSoftware/SteamVR-for-Linux#355 (comment)

Yeah I was just browsing here and was about to reply back here to say this

downgrading to vulkan-icd-loader 1.2.145 from 1.2.146 and vulkan-tools 1.2.141 from 1.2.146 fixes the issue for me

I think it might be a bug with the vulkan-icd-loader and/or vulkan-tools as this same issues occurs with AMDVLK

Ffrostworx 2020-07-14 github

looks like this is really arch linux related, so I opened a bug here:
https://bugs.archlinux.org/task/67277

Kkattjevfel 2020-07-14 github

looks like this is really arch linux related, so I opened a bug here:
https://bugs.archlinux.org/task/67277

This'll happen to any system that upgrade vulkan-icd-loader I'd imagine.

Ffrostworx 2020-07-14 github

This'll happen to any system that upgrade vulkan-icd-loader I'd imagine.

arch build options don't look very experimental, so this is likely, anyway most bug reports come from arch currently.

Rronoverdrive 2020-07-14 github

Confirmed problem with 1.2.146. 1.2.147 has it fixed. Either downgrade to 1.2.145 and wait for Arch to update their repo or use Tk-Glitch's PKGBUILD script to upgrade to 1.2.147.