Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wanted to throw an exception: 'Failed to find referenced shader' after downloading precached shaders #1619

Open
XapaJIaMnu opened this issue Jun 15, 2019 · 19 comments

Comments

Projects
None yet
@XapaJIaMnu
Copy link

commented Jun 15, 2019

Your system information

Please describe your issue in as much detail as possible:

Dota2 fails to start after downloading the latest precached shaders. It appears to hang competely (and needs to be killed with kill -9). Here is the command line output:

Game update: AppID 570 "", ProcID 22553, IP 0.0.0.0:0
Setting breakpad minidump AppID = 570
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197997119653 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561197997119653
Setting breakpad minidump AppID = 373300
>>> Adding process 22554 for game ID 570
Fossilize INFO: Overriding serialization path: "/home/dheart/.local/share/Steam/steamapps/shadercache/570/steamapprun_pipeline_cache".
JS method call Messaging.PostMessage with 4 arguments
Installing breakpad exception handler for appid(steam)/version(1560549607)
Wanted to throw an exception: 'Failed to find referenced shader'
pure virtual method called
terminate called without an active exception

Steps for reproducing this issue:

  1. Download the latest dota 2 shader pre cached content
  2. Try to run dota.
@thrisp

This comment has been minimized.

Copy link

commented Jun 15, 2019

I'm getting this exact same situation.

@thrisp

This comment has been minimized.

Copy link

commented Jun 15, 2019

@thrisp unchecked the vulkan beta, and dota loaded....so it appears to be related to that

this is the first problem I've ever had with the vulkan/dota that I'm aware of

@czarnyckm

This comment has been minimized.

Copy link

commented Jun 16, 2019

The same here with -vulkan parameter crash:
GDB Output
SystemInfo

Attempting to load Steam Shader Pre-Cache database from /stos/SteamLibrary/steamapps/shadercache/570/steam_pipeline_cache.foz;/stos/SteamLibrary/steamapps/shadercache/570/steamapp_pipeline_cache.foz
[Thread 0x7fffea009700 (LWP 31581) exited]
Wanted to throw an exception: 'Failed to find referenced shader'
[Thread 0x7fffe9808700 (LWP 31582) exited]
ls -la /stos/SteamLibrary/steamapps/shadercache/570
insgesamt 200656
drwxr-xr-x  5 arta arta        91 Jun 15 22:17 .
drwxr-xr-x 23 arta arta       294 Jun 15 21:51 ..
drwxr-xr-x  2 arta arta         6 Jun 15 22:17 DXVK_state_cache
drwxr-xr-x  3 arta arta        21 Jun 15 21:51 nvidiav1
-rwxr-xr-x  1 arta arta 205471417 Jun 15 21:51 steam_pipeline_cache.foz
drwxr-xr-x  3 arta arta        32 Jun 16 10:21 swarm

Dota still works with -gl parameter

@glubsy

This comment has been minimized.

Copy link

commented Jun 16, 2019

Having the same problem on Arch Linux (system is fully up to date). Using the OpenGL renderer works fine, only happens with Vulkan. Steam runtime enabled and disabled doesn't change anything.

System specs: gist

Side note: I initially got another error with a popup error window when restarting dota2 a second time (using Vulkan still):

Wanted to throw an exception: 'Failed to find referenced shader'                                                                                                                                     
pure virtual method called                                                                                                                                                                           
terminate called without an active exception                                                                                                                                                         
../public/tier1/utllinkedlist.h 698 AllocInternal():                                                                                                                                                 
CUtlLinkedList overflow! (exhausted memory allocator)                                                                                                                                                
                                                                                                                                                                                                     
[570]Non-Steam Controller Configs Enabled: 1                                                                                                                                                         
Opted-in Controller Mask for AppId 0: 0                                                                                                                                                              
Opted-in Controller Mask for AppId 0: 0                                                                                                                                                              
Game removed: AppID 570 "", ProcID 754                                                                                                                                                               
Exiting app 570                                                                                                                                                                                      
No cached sticky mapping in ActivateActionSet.Opted-in Controller Mask for AppId 0: 0                                                                                                                
Opted-in Controller Mask for AppId 0: 0
@peytonc

This comment has been minimized.

Copy link

commented Jun 16, 2019

I am having the same issue on Fedora 30 with Intel GPU. How to fix it?

[peyton@c1 game]$ ./dota.sh
Using breakpad crash handler
[S_API] SteamAPI_Init(): Loaded '/home/peyton/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 570
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198097967294 [API loaded yes]
Steam_SetMinidumpSteamID: Setting Steam ID: 76561198097967294
Setting breakpad minidump AppID = 373300
Fossilize INFO: Overriding serialization path: "/home/peyton/.local/share/Steam/steamapps/shadercache/570/steamapprun_pipeline_cache".
Wanted to throw an exception: 'Failed to find referenced shader'
./dota.sh: line 104: 4704 Segmentation fault (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

[peyton@c1 game]$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Iris 6100 (Broadwell GT3)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.0.6
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 19.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 19.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

@Cuniq

This comment has been minimized.

Copy link

commented Jun 16, 2019

Same on ubuntu 18.04. Vulkan crashes. Launching game with -gl works fine tough

@nascheme

This comment has been minimized.

Copy link

commented Jun 16, 2019

Cleaning the shader cache seemed to fix it for me.

cd <STEAMAPPS>
find shadercache -type f -print0 | xargs -0 rm

Be careful to run that in the correct folder.

@Strykar

This comment has been minimized.

Copy link

commented Jun 16, 2019

Cleaning the shader cache seemed to fix it for me.

@nascheme That fixed it for me. Cheers!

@glubsy

This comment has been minimized.

Copy link

commented Jun 16, 2019

@nascheme Thanks. I was looking for a way to clear the shader cache from inside the Steam client, but didn't find any such feature.

Removing <STEAMAPPS>/shadercache/570 manually fixed the problem indeed. :)

@danginsburg danginsburg added this to the next release milestone Jun 17, 2019

@danginsburg

This comment has been minimized.

Copy link

commented Jun 17, 2019

I have a fix for this that will ship in the next Dota client update.

@danginsburg

This comment has been minimized.

Copy link

commented Jun 18, 2019

This should be fixed now - can someone who was seeing this issue re-enable their shader cache and confirm it's fixed? Thanks.

@Strykar

This comment has been minimized.

Copy link

commented Jun 18, 2019

This should be fixed now - can someone who was seeing this issue re-enable their shader cache and confirm it's fixed? Thanks.

@danginsburg Trying this now...

UPDATE: Removed the disable_shadow_cache and played 4 Turbo games, restarting the game after 2.
Looks good.

@jdamboeck

This comment has been minimized.

Copy link

commented Jun 18, 2019

Now dota starts but freezes for me.

@glubsy

This comment has been minimized.

Copy link

commented Jun 18, 2019

It seems to be working fine for me so far. Thank you very much!

@Snooober

This comment has been minimized.

Copy link

commented Jun 18, 2019

Mine wouldn't launch at first (did not look at logs), but then I verified game files and it looks like it's working. I never disabled shaders, but instead used:

cd
find shadercache -type f -print0 | xargs -0 rm

@XapaJIaMnu

This comment has been minimized.

Copy link
Author

commented Jun 18, 2019

Doesn't work for me.
The game successfully launches now but it's really laggy to the point that it freezes completely for a few seconds. Launching with -vulkan_disable_steam_shader_cache or -gl avoids the issue.

@XapaJIaMnu

This comment has been minimized.

Copy link
Author

commented Jun 18, 2019

Ok, there was another 170 MB update to the shader cache that fixed the issue.

I think it was because I launched the game when it was "ready" to play.

EDIT:

The game menu is much laggier with shader cache on. Without it it's quite smooth.

@Cuniq

This comment has been minimized.

Copy link

commented Jun 21, 2019

They game now lanches but as soon as the game starts (during the picking phase) dota freezes completlely. Launching with -vulkan_disable_steam_shader_cache or -gl works fine.

@vonclutch

This comment has been minimized.

Copy link

commented Jun 21, 2019

Looks like the new update fix the menu lags/freeze.

Edit: stil buggy as hell but a little less ... just desactive the shader, useless to have it .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.