Reproduction steps:
1. Open the attached project “UnityIssue”
2. Open “Scene” Scene
3. Enter the Play Mode
4. Press “Tap me to crash Unity” button
5. Open Window > Analysis > Profiler
Expected result: Profiler is opened
Actual result: Editor crashes
Reproducible with: 2020.3.41f1, 2021.3.12f1, 2022.1.20f1, 2022.2.0b11, 2023.1.0a15
Reproducible on: Windows 10
Notes:
If the crash doesn’t happen try reentering the Play Mode
Crashes with different stack traces on different streams
First lines of stacktrace:
0x00007ff67a040695 (Unity) UI::Canvas::DrawRawMesh
0x00007ff67a042e54 (Unity) UI::Canvas::RenderOverlays
0x00007ff67a02eb69 (Unity) UI::CanvasManager::RenderOverlays
0x00007ff67a4c7999 (Unity) RepaintController::RenderPlayModeViewCameras