Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X

Votes

1

Found in

2021.2.0a16

2021.2.0b8

2022.1

Issue ID

1360664

Regression

Yes

Crash on keywords::KeywordRemap::Init when importing specific shaders

Shader System

-

How to reproduce:
1. Try to open the project from "SHADERScrash1360664.zip"
2. Observe crash

Reproducible with: 2021.2.0a16, 2022.1.0a9
Not reproducible with: 2019.4.30f1, 2020.3.18f1, 2021.1.22f1, 2021.2.0a15

First lines of stack trace:
0x00007ff7fc2ea5d3 (Unity) keywords::KeywordRemap::Init
0x00007ff7fc2f06ca (Unity) ShaderLab::IntShader::CreateKeywordRemap
0x00007ff7fc2f298a (Unity) ShaderLab::IntShader::ResolveFallback
0x00007ff7fc29deb8 (Unity) ShaderLab::IntShader::CreateFromSerializedShader
0x00007ff7fc2a9328 (Unity) ShaderFromSerializedShader
0x00007ff7fdc0fa1f (Unity) Shader::CreateFromParsedForm

  1. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a11
    Added error logs in the console

  2. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.1f1

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.