Search Issue Tracker

Fixed in 2020.2

Votes

0

Found in

2020.2.0a11

2020.2.0a16

Issue ID

1258088

Regression

Yes

[OpenGLES3] [URP] Editor crashes while compiling URP/Lit shader after switching Graphics APIs to OpenGLES3

Universal RP

-

-Editor crashes while compiling URP/Lit shader after switching Graphics APIs to OpenGLES3.
-After the crash When opening the project again, it crashes immediately.

Steps to repro:
1. Create a new URP template project.
2. File > Build Settings > Player Settings > Other Settings.
3. Uncheck Auto Graphics API for Windows checkbox.
4. Add OpenGLES3 > Drag to the top of the list.
5. Restart the editor > Wait for GI bake.

Actual Result:
Editor crashes while compiling Universal Lit shader.

Expected Result:
GI bake successfully without editor crash.

Reproducible in:
2020.2.0a16, 2020.2.0a11 with Package Version: 9.0.0, 8.1.0.

Working Fine in:
2020.2.0a10, 2020.1.0b14 with Package Version: 9.0.0, 8.1.0.

Environment:
Occurring only on Windows.

Stacktrace:
-------- GLSL link error: Fragment info
-------------
(0) : error C6020: Constant register limit exceeded at _MainLightPosition; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _MainLightColor; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _AdditionalLightsCount; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _TimeParameters; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at unity_WorldTransformParams; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at unity_LightData; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at unity_SpecCube0_HDR; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at unity_FogColor; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _CascadeShadowSplitSpheres0; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _CascadeShadowSplitSpheres1; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _CascadeShadowSplitSpheres2; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _CascadeShadowSplitSpheres3; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _CascadeShadowSplitSphereRadii; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _MainLightShadowParams; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _MainLightShadowmapSize; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _AdditionalShadowmapSize; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at Vector1_2EE2CB80; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at Vector2_C848BFFB; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at Color_A2AAE5B5; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at Color_23C9B10D; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _SampleTexture2D_C873BFA4_Texture_1; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at Texture2D_C69EB180; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _SampleTexture2D_CDBC38BA_Texture_1; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _SampleTexture2D_D6BD25ED_Texture_1; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _SampleTexture2D_72715EE4_Texture_1; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _MainLightShadowmapTexture; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at unity_SpecCube0; more than 1024 registers needed to compile program
(0) : error C6020: Constant register limit exceeded at _AdditionalLightsShadowmapTexture; more than 1024 registers needed to compile program

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Fixed Editor crash on SRP batcher and unsupported OpenGL shader combination. Fixed in: 2020.2.0a19.2490

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.