Reproduction steps:
1. Open the attached project “RollProject“
2. Build the project
3. Observe the build process
Expected result: The build process completes successfully
Actual result: The Editor crashes
Reproducible with: 2021.3.18f1
Not reproducible with: 2022.3.11f1, 2023.1.16f1, 2023.2.0b14, 2023.3.0a10
Fixed in: 2021.3.19f1
Reproducible on: macOS(Intel) 14.0 Sonoma
Not reproducible on: No other environment tested
First few lines of stack trace:
#0 0x000001041c2699 in SetCurrentMemoryOwner(MemLabelId const&)
Thread 0x70000f8d8000 may have been prematurely finalized
#1 0x0000010505e266 in CompileKernelVariantJobForEach(KernelCompileJobData*, unsigned int)
Thread 0x70000f8d8000 may have been prematurely finalized 0x10505e266 - /Applications/Unity/Hub/Editor/2021.3.18f1/Unity.app/Contents/MacOS/Unity : _ZL30CompileKernelVariantJobForEachP20KernelCompileJobData
#2 0x00000104188f8d in JobQueue::Exec(JobInfo*, long long, int, bool)
Thread 0x70000f8d8000 may have been prematurely finalized 0x104188f8d - /Applications/Unity/Hub/Editor/2021.3.18f1/Unity.app/Contents/MacOS/Unity : _ZN8JobQueue4ExecEP7JobInfoxib