Search Issue Tracker

Fixed in 2019.1.X

Fixed in 2019.2.X



Found in





Issue ID




Editor crashes in Shader::IsSupported() when trying to change Material's Shader HDRP/Lit to any other shader via a dropdown menu



How to reproduce:
1. Open the attached project
2. Go to the Asset folder-> Shaders-> Select New Material
3. Go to the inspector window try to change the Shader HDRP/Lit to any other via a dropdown menu
---Crash occurs----

Reproducible with: 2019.1.0b9, 2019.1.2f1, 2019.2.0a10, 2019.2.0b1, 2019.3.0a2
Not reproducible with: 2019.1.0a1, 2019.1.0b8, 2019.2.0a1, 2019.2.0a9

Stack trace:
#0 0x00000107134cd4 in Shader::IsSupported() const
#1 0x00000103d66048 in GetAllShaderInfo()
#2 0x000001050ff74b in ShaderUtil_CUSTOM_GetAllShaderInfo()

Comments (1)

  1. ValiZ

    Feb 20, 2021 16:39

    Hello! I don't know if this is the same problem, but i had unity always freezing when tried to select the shader dropdown.
    What worked for me was to go into my project folder/Library and delete the file called ShaderCache.I dind't knew why my project was getting so big every time, without adding any new assets or when in fact my project is a small one.Looks like the ShaderCache file was getting bigger every time when i tried to modify a material, it was 14gb.After deleting that, unity works normally and i am able to change the materials or shaders properties as usual.
    I still have to check and delete the file from time to time when i see unity starting to freeze again.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.