How to reproduce:
- Open the attached “IN-161362” project
- In the Menu bar select “Repro” → “IN-161362 RemoveBatch on default ThreadedBatchContext”
- Observe the crash
Reproducible with: 6000.0.0f1, 6000.7.0b11, 7000.0.0a22
Reproducible on: Windows 11
First few lines of the stack trace:
0x00007FFBF6BD4287 (Unity) BatchRendererGroup::RemoveDrawCommandBatch
0x00007FFBF61A7F6E (Unity) ThreadedBatchContext_CUSTOM_RemoveDrawCommandBatch
0x00000196E8A1EFDD (UnityEngine.CoreModule) (wrapper managed-to-native) UnityEngine.Rendering.ThreadedBatchContext:RemoveDrawCommandBatch_Injected (intptr,UnityEngine.Rendering.BatchID&)
0x00000196E8A1EF2B (UnityEngine.CoreModule) UnityEngine.Rendering.ThreadedBatchContext:RemoveDrawCommandBatch (intptr,UnityEngine.Rendering.BatchID)
0x00000196E8A1EEAB (UnityEngine.CoreModule) UnityEngine.Rendering.ThreadedBatchContext:RemoveBatch (UnityEngine.Rendering.BatchID)