Steps to reproduce:
- Open the attached "GenerateLights" project
- Make sure "Use new Hierarchy window" is enabled in the Preferences
- In the Hierarchy, select "Cube" GameObject
- From the top Editor toolbar, select QA > Console > Log Warning For Selected
- Click on the warning and observe the Cube gets highlighted in the Hierarchy
- Drag some other tab (e.g. Scene) next to Hierarchy, so that the Hierarchy tab becomes inactive
- Click on the warning again
- Click on anything in the Scene view (though it seems to reproduce more by selecting "Cube")
- Repeat 7-8th steps a few times if needed
- Observe the Console
Actual results: "NullReferenceException: Object reference not set to an instance of an object" and "GUI Error: Invalid GUILayout state in view. Verify that all layout Begin/End calls match" errors are thrown. In 6000.6.0a5, no errors are thrown but multiple warnings are spewed with "Trying to access the DPI setting of a visual element that is not on a panel.".
Expected results: No errors are thrown or warnings are thrown.
Reproducible with versions: 6000.4.0b1, 6000.4.6f1, 6000.5.0b6, 6000.6.0a4, 6000.6.0a5
Not reproducible with versions: 6000.4.0a5
Tested on (OS): Windows 11
Notes:
- The errors are then unselectable and are thrown until Hierarchy is an active tab gain
- Seems to reproduce with any GameObjects when pinging them from Console (does not repro when pinging from Inspector)
Errors:
- GUI Error: Invalid GUILayout state in ConsoleWindow view. Verify that all layout Begin/End calls match
UnityEditor.GUIView:ProcessEvent (UnityEngine.EntityId,intptr,bool&)
- NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.HierarchyV2.CollectionView.SetScrollingParameters (System.Double currentScrollOffset, System.Double maxScrollRange) (at <b9afe1042f904bddbedb2b58e5d083ab>:0)
Warnings:
- Trying to access the DPI setting of a visual element that is not on a panel.