Search Issue Tracker

Fixed

Fixed in 2022.3.7f1, 2023.2.0b5

Votes

0

Found in

2022.3.6f1

2023.2.0b4

Issue ID

UUM-47603

Regression

Yes

[URP] Crash on ShaderCompilationInfo::AddSnippetsFromPass(Shader*, ShaderLab::Pass*) when target platform is changed to "Android"

--

-

Reproduction steps:
1. Create a new “3D (URP)” Project
2. Open the Build Settings window (File > Build Settings)
3. Select “Android” Target Platform
4. Press the “Switch Platform” button

Expected result: The Editor switches platform
Actual result: The Editor crashes

Reproducible with: 2022.2.0b10, 2022.3.6f1, 2023.2.0a19, 2023.2.0b4
Not reproducible with: 2021.3.29f1, 2022.2.0b9, 2023.1.8f1, 2023.2.0a18
Fixed in: 2022.3.7f1, 2023.2.0b5

Reproducible on: Ubuntu 22.04, Windows 10
Not reproducible on: No other environment tested

First lines of the stack trace:
{{0x0055e451a1850c in burst_signal_handler(int, siginfo_t*, void*)}}
{{0x007f6a5da42520 in __sigaction}}
{{0x0055e453891940 in ShaderCompilationInfo::AddSnippetsFromPass(Shader*, ShaderLab::Pass*)}}
{{0x0055e451bed6ba in ShaderLab::Program::GetMatchingSubProgram(Shader const*, ShaderLab::Pass const*, keywords::LocalKeywordState const&, unsigned int, keywords::LocalKeywordState*, ShaderSnippetResult&, AsyncShaderCompilationMode, bool, int, int) const}}
{{0x0055e451bf7194 in ShaderLab::ShaderState::FindSubProgramsToUse(Shader const*, ShaderLab::Pass const*, ShaderLab::SubPrograms&, ShaderPassContext const&, keywords::LocalKeywordState const&, bool, int, int) const}}

Note:
- Not reproducible with “3D (HDRP)” Project

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.