How to reproduce:
- Open the attached “IN-147964” project
- Open the “SampleScene”
- Select the “Text (TMP)” GameObject
- Enter Play mode
- Observe errors in the Console
- Quickly exit Play mode
- Observe the crash
Reproducible with: 6000.6.0a2 (2fbfd916bfe9), 6000.6.0b5, 6000.7.0a3
Not reproducible with: 6000.0.80f1, 6000.3.20f1, 6000.5.5f1, 6000.6.0a1 (7dc703ab9bd8)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Workaround:
- Enable Domain reload (Edit > Project Settings > Editor > Enter Play Mode Settings > When entering Play Mode)
Notes:
- Example error message: “IndexOutOfRangeException: Index 102 is out of range in container of '101' Length.”
- Reproducible only when exiting Play mode quickly (up to ~300 errors in the Console). After waiting longer, the errors keep being thrown but the crash does not occur
- Only reproducible in HDRP
- The crash is not reproducible on an empty project; only the Scene view becomes blank
First few lines of the stack trace:
0x00007FF95A6DFADA (Unity) RendererScene::NotifyInvisible
0x00007FF95A3345FA (Unity) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateRendererNotifyInvisibleRegistrator::Forward
0x00007FF95A35170F (Unity) ExecutePlayerLoop
0x00007FF95A35182A (Unity) ExecutePlayerLoop