How to reproduce:
1. Create a new Unity project
2. Add any GameObject in the Hierarchy
3. With the GameObject selected, right-click in the Scene view -> Add Component
4. Observe the Console
Expected results: No errors are thrown
Actual results: 4 various errors are thrown
Reproducible with: 6000.3.0a3, 6000.3.0a5
Not reproducible with: 6000.0.56f1, 6000.1.16f1, 6000.2.2f1, 6000.3.0a2
Reproducible on: macOS Sequoia 15.5 (M1)
Not reproducible on: No other environment tested
Errors:
- Assertion failed on expression: '!m_InsideContext'
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
- GUI Window tried to begin rendering while something else had not finished rendering! Either you have a recursive OnGUI rendering, or the previous OnGUI did not clean up properly.
- InvalidOperationException: Stack empty.
System.Collections.Generic.Stack`1[T].Peek () (at <1e17d9e30a42433c9e50f8dea8f7ce8b>:0)
- Assertion failed on expression: 'm_InsideContext'