Reproduction steps:
1. Open the attached project “CrashRepro“
2. Drag “Assets/gizmo.cs” to “Cube“ in the Hierarchy
Expected result: Gizmos appear in the Scene view
Actual result: Editor crashes
Reproducible with: 2020.3.44f1, 2021.3.17f1, 2022.2.4f1, 2023.1.0b1, 2023.2.0a3
Reproducible on: Windows 10 22H2
First lines of the Stack trace:
Note: If you lower the gizmo amount in the script it does not crash