Reproduction steps:
1. Open the attached “ReproProj” project
2. In the Hierarchy window, right-click and add MudBun Renderer (MudBun > Renderer)
Expected result: The Renderer is added
Actual result: The Editor crashes
Reproducible with: 2021.3.35f1, 2021.3.43f1
Not reproducible with: 2021.3.34f1, 2022.3.43f1, 6000.0.16f1
Reproducible on: Windows 10
Not reproducible on: macOS 14.6.1 (M1 Max)
Note: On macOS, the editor is loading for a bit, but doesn’t crash
First few lines of the stack trace:
0x00007FF73C4968B2 (Unity) GfxDeviceD3D11Base::DrawBuffersIndirect
0x00007FF73DAF4E0B (Unity) GfxDeviceWorker::RunCommand
0x00007FF73DAF748B (Unity) GfxDeviceWorker::RunExt
0x00007FF73DAF75A8 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF73C1A8957 (Unity) Thread::RunThreadWrapper
0x00007FF868517374 (KERNEL32) BaseThreadInitThunk
0x00007FF868F1CC91 (ntdll) RtlUserThreadStart