Reproduction steps:
1. Open the attached “repro-project“
2. Build And Run
3. Observe the crash
Reproducible with: 2021.3.12f1, 2021.3.25f1, 2022.2.20f1, 2023.1.0b17, 2023.2.0a16
Not reproducible with: 2020.3.48f1, 2021.3.11f1
Reproduced on: Windows 10 Pro, macOS 13.3.1 (Intel) (by reporter)
First few lines of the stack trace:
{{0x00007FF79A6E6247 (Unity) SubProgramBlobWriter::Flush }}
{{0x00007FF79A6D7848 (Unity) CompileShaderSubprograms }}
{{0x00007FF79B192881 (Unity) Shader::Transfer<StreamedBinaryWrite> }}
{{0x00007FF799AFBD7B (Unity) SerializedFile::WriteObject }}
0x00007FF799AE577B (Unity) PersistentManager::WriteFile