Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2019.3
2019.3.0b4
2019.3.0b12
2020.1
Issue ID
1201344
Regression
Yes
Editor crashes when calling Shader.WarmUpAllShaders() with one or more GPU Instanced Materials on OpenGL
Steps to reproduce:
1. Open the attached project (case_1201344_ShaderWarmUp.zip)
2. Ensure that the Graphics API is OpenGLCore or OpenGLES3
3. Ensure that "New Material" and "New Material 1" have "Enable GPU Instancing" checked in the Inspector
4. Enter Play Mode
Expected result: Editor continues working as usual
Actual result: Editor crashes
Reproduced in: 2019.3.0b4, 2019.3.0f4, 2020.1.0a18
Not reproducible in: 2017.4.36f1, 2018.4.15f1, 2019.2.17f1, 2019.3.0b3
Note:
- Only occurs when using OpenGLCore or OpenGLES3 Graphics APIs
- 2020.1 is much less prone to crashing as it takes around up to 10 attempts (entering Play Mode) whereas in 2019.3 the crash is reproducible 100% of the time
- The crash produces three seemingly different stack traces, one of which is an explicit segmentation fault
- Adding the shaders used by the instanced materials to a ShaderVariantCollection and calling WarmUp() for it does not reproduce the issue
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
Resolution Note (fix version 2020.1):
Fixed in 2020.1.0a19