Reproduction steps:
1. Open the attached project “CrashRepro“
2. Open any script in “Assets/Scripts“
3. Add a comment in the script
4. Go back to Unity and during script recompilation spam left click in the Entities Hierarchy
5. If the crash does not happen, repeat from step 3
Expected result: Scripts are recompiled
Actual result: Editor crashes
Reproducible with: 2022.2.4f1, 2022.2.5f1, 2023.1.0b1
Not Reproducible with: 2022.2.3f1
Couldn't test with: 2020.3.44f1 (No Entities Hierarchy window), 2021.3.18f1 (No Entities Hierarchy window), 2023.2.0a3 (crashes when opening "Trying to allocate: 18446744012484526720B")
Reproducible on: Windows 10 22H2
First few lines of Stack trace:
Note: Reproduces about 30% of the time