Steps to reproduce:
- Create a new 3D (URP) project via Unity Hub
- Open the Window > Analysis > Render Graph Viewer window
- Enter Play mode so the viewer captures the render graph and the resource grid fills with passes/resources
- Keep moving the mouse continuously back and forth over the resource grid, and while hovering, repeatedly exit and re-enter Play mode
- Observe the Console
Actual results: A NullReferenceException is thrown once per hovered cell in the moment where the grid is still populated but the debug data has gone null, spamming the Console (108-173 fired in confirmation sessions):
UnityEditor.Rendering.RenderGraphViewer.GetGroupedPassIds (RenderGraphViewer.cs:665)
<- SetPassHighlight (RenderGraphViewer.cs:567)
<- HoverPass (RenderGraphViewer.cs:737)
<- HoverResourceGrid (RenderGraphViewer.cs:796)
<- ResourceGridHovered (MouseMoveEvent) (RenderGraphViewer.cs:813)
Expected results: Hovering the Render Graph Viewer never throws; with no valid debug data the hover is a no-op
Reproducible with versions: 6000.7.0a6
Can’t test with versions: 6000.0.83f1, 6000.3.24f1, 6000.5.11f1, 6000.6.1f1 (Intermitted reproduction, encountered 3 times non deterministically)
Tested on (OS): Windows 11
Notes:
- Suggested fix: gate the hover chain on HasValidDebugData (or null-check m_CurrentDebugData in GetGroupedPassIds / SetPassHighlight)