Search Issue Tracker
Fixed in 10.3.X
Votes
0
Found in [Package]
10.2.1, 10.2.0.
Issue ID
1296931
Regression
Yes
[HDRP] NullReferenceException errors are thrown on exiting from the Play mode when Look Dev window is opened
NullReferenceException errors are thrown on exiting from the Play mode when Look Dev window is opened.
Steps to repro:
1. Create a new HDRP project.
2. Windows > Render Pipeline > Look Dev > Dock the Window.
3. Environment > Library > Click on New button.
4. Enter the Play mode & Exit the Play mode.
5. Undock the window and Repeat Steps 4.
Actual Result:
NullReferenceException errors are thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2021.1.0a9, 2021.1.0a8, 2020.2.0f1 with Package version 10.2.1.
Working Fine in:
2021.1.0a7, 2020.2.0b14 with Package version 10.2.1, 10.2.0.
Note: Unable to test on Mac due to this issue https://fogbugz.unity3d.com/f/cases/1294756/
Environment:
Occurring only on Windows.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.LookDev.Stage.OnBeginRendering (UnityEngine.Rendering.LookDev.IDataProvider dataProvider) (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/Stage.cs:247)
UnityEditor.Rendering.LookDev.Renderer.BeginRendering (UnityEditor.Rendering.LookDev.RenderingData data, UnityEngine.Rendering.LookDev.IDataProvider dataProvider) (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/LookDevRenderer.cs:55)
UnityEditor.Rendering.LookDev.Compositer.AcquireDataForView (UnityEditor.Rendering.LookDev.ViewIndex index, UnityEngine.Rect viewport) (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/Compositor.cs:243)
UnityEditor.Rendering.LookDev.Compositer.RenderSingleAndOutput (UnityEditor.Rendering.LookDev.ViewIndex index) (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/Compositor.cs:265)
UnityEditor.Rendering.LookDev.Compositer.Render () (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/Compositor.cs:206)
UnityEditor.Rendering.LookDev.DisplayWindow.OnGUI () (at Library/PackageCache/com.unity.render-pipelines.core@10.2.1/Editor/LookDev/DisplayWindow.cs:678)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <a19e86c7bf354115a4c6a5953c0575cb>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <a19e86c7bf354115a4c6a5953c0575cb>:0)
UnityEditor.DockArea.OldOnGUI () (at <a19e86c7bf354115a4c6a5953c0575cb>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b82edc26c1654793bdaefb66b6a2a38a>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Resolution Note (fix version 10.3):
Fixed in Package version 11.0.0.