How to reproduce:
1. Create and open a new project
2. In the menu bar, navigate to File > Build Profiles
3. Swap to macOS platform
4. Wait for the Editor to recompile fully
5. Observe the Console
Actual result: AssetImportWorker4 crashes with a stacktrace
Expected result: Build profile changes, no workers crash in the process
Reproducible with: 6000.3.7f1, 6000.3.12f1
Not reproducible with: 6000.0.75f1, 6000.3.6f1, 6000.3.16f1, 6000.4.7f1, 6000.5.0b8, 6000.6.0a5
Fixed in: 6000.3.13f1
Reproducible on: Windows 11
Not reproducible on: macOS 26.4 (M1 Pro)
Note: Reproducible once per project the first time build profile is changed
First few lines of stacktrace:
0x00007FFBB5E17F37 (Unity) core::base_hash_set<core::pair<core::basic_string<char,core::StringStorageDefault<char> > const ,keywords::GlobalKeyword,1>,core::hash_pair<core::hash<core::basic_string_ref<char> >,core::basic_string<char,core::StringStorageDefault<char> > >,core::equal_pair<std::equal_to<core::basic_string_ref<char> >,core::basic_string<char,core::StringStorageDefault<char> > > >::lookup<core::basic_string_ref<char>,core::equal_pair<std::equal_to<core::basic_string_ref<char> >,core::basic_string<char,core::StringStorageDefault<char> > > >
0x00007FFBB5E1E74E (Unity) keywords::KeywordRemap::Init
0x00007FFBB5E452D2 (Unity) ShaderLab::IntShader::CreateKeywordRemap
0x00007FFBB5E47FCC (Unity) ShaderLab::IntShader::ResolveFallback
0x00007FFBB5DE3801 (Unity) ShaderFromSerializedShaderMainThread