Reproduction steps:
1. Open the attached “VFXCrash.zip“ project
2. Open “SampleScene” scene
3. Enter Play Mode and wait for a few seconds
Expected result: Nothing of note happens
Actual result: Unity crashes
Reproducible with: 2021.3.14f1, 2022.1.8f1
Not reproducible with: 2022.1.9f1, 2022.1.23f1, 2022.2.0b16, 2023.1.0a20
Could not test with: 2020.3.42f1 (Error CS1061: 'Dictionary<string, GameObject>' does not contain a definition for 'EnsureCapacity')
Reproduced on: macOS Monterey 12.6 (Intel)
Note: Not reproducible in Build
First few lines from the stack trace:
#0 0x00000104e5da60 in VFXParticleSystem::ResetEventCountCommand(VFXSystem const*, void*)
#1 0x00000104e08a88 in VFXManager::ProcessCommandList(VFXFrameData&)
#2 0x00000104e08f33 in VFXManager::Update()
#3 0x00000104e04f54 in VFXManager::InitializeClass()::PostLateUpdateVFXUpdateRegistrator::Forward()
#4 0x00000104191b0d in ExecutePlayerLoop(NativePlayerLoopSystem*)