Steps to reproduce:
1. Open the attached project “IssueProject“
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter Play Mode
4. Select the “Playground“ GameObject in the Hierarchy window
5. In the Inspector window click the “Add Agents“ button (might need to click it multiple times)
Expected result: New GameObjects are added to the Scene
Actual result: Unity crashes with a different stack trace each time
Reproducible with: 2020.3.45f1, 2021.3.19f1, 2022.2.9f1, 2023.1.0b4, 2023.2.0a4
Reproducible on: Windows 10
Stack trace:
0x00007FF7D6EB8DDA (Unity) SpriteRendererTransformChangedJob
0x00007FF7D70B0A27 (Unity) BatchJob
0x00007FF7D6F31E2B (Unity) JobQueue::Exec
0x00007FF7D6F3216E (Unity) JobQueue::ExecuteJobFromHighPriorityStack
0x00007FF7D6F32804 (Unity) JobQueue::ProcessJobs
0x00007FF7D6F3484F (Unity) JobQueue::WorkLoop
0x00007FF7D710AD86 (Unity) Thread::RunThreadWrapper
0x00007FFD56557614 (KERNEL32) BaseThreadInitThunk
0x00007FFD583626A1 (ntdll) RtlUserThreadStart