Search Issue Tracker

Not Reproducible

Votes

0

Found in [Package]

7.1.5

Issue ID

1199221

Regression

Yes

[HDRP][AMD] Nullreference Exception thrown on setting any values in Fullscreen Debug Mode

Package: Scriptable Render Pipeline HD

-

Nullreference Exception thrown on setting any values in Fullscreen Debug Mode

Steps to reproduce:
1. Create a new Project with 3D Template
2. Open Package Manager window > High Definition RP and click install
3. In Project window right mouse click > Create > Rendering > High Definition Render Pipeline Asset
4. Open Project Settings > Graphics > Scriptable Render Pipeline Settings slot > Drag and drop HDRP Asset to this slot
5. Open Window > Render Pipeline > Render Pipeline Debug
6. Select Material > Common Material Property > Albedo
7. Select Rendering > Fullscreen Debug Mode > Motion Vectors

Expected Result:
MotionVectors points to correct directions

Actual Result:
- Nullreference Exception thrown on setting any values in Fullscreen Debug Mode
- Project become unuseful

Workaround:
- Clearing cache of npm and Package Manager
- Remove HDRP Asset from Project Settings > Graphics > Scriptable Render Pipeline Settings slot

Reproducible on: 2019.3.0b12

Working fine on: 2020.1.0a14

Reproducible on package Version: 7.1.5

Reproducible with Graphics API: Drect3D11, Direct3D12, Vulkan

Note:
1. Occurring only on AMD Radeon R9 Series
2. 2019.2 and lower, HDRP as a package is not available
3. HDRP package introduced in 2019.3.0b4
4. Couldn't test on the earlier version as 7.1.2 was broken
5. OpenGLCore, OpenGLES2 and OpenGLES3 are not supported HDRP
6. Graphics card detail is attached

Environment: Windows 10 only

Stack Trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.CoreUtils.FixupDepthSlice (System.Int32 depthSlice, UnityEngine.Rendering.RTHandle buffer) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:155)
UnityEngine.Rendering.CoreUtils.SetRenderTarget (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle buffer, UnityEngine.Rendering.ClearFlag clearFlag, UnityEngine.Color clearColor, System.Int32 miplevel, UnityEngine.CubemapFace cubemapFace, System.Int32 depthSlice) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:263)
UnityEngine.Rendering.CoreUtils.SetRenderTarget (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle buffer, UnityEngine.Rendering.ClearFlag clearFlag, System.Int32 miplevel, UnityEngine.CubemapFace cubemapFace, System.Int32 depthSlice) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:269)
UnityEngine.Rendering.HighDefinition.HDUtils.BlitCameraTexture (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle source, UnityEngine.Rendering.RTHandle destination, System.Single mipLevel, System.Boolean bilinear) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.5/runtime/renderpipeline/utility/hdutils.cs:198)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.PushFullScreenDebugTexture (UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle textureID, UnityEngine.Rendering.HighDefinition.FullScreenDebugMode debugMode) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.5/runtime/renderpipeline/hdrenderpipeline.cs:3880)NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Rendering.CoreUtils.FixupDepthSlice (System.Int32 depthSlice, UnityEngine.Rendering.RTHandle buffer) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:155)
UnityEngine.Rendering.CoreUtils.SetRenderTarget (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle buffer, UnityEngine.Rendering.ClearFlag clearFlag, UnityEngine.Color clearColor, System.Int32 miplevel, UnityEngine.CubemapFace cubemapFace, System.Int32 depthSlice) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:263)
UnityEngine.Rendering.CoreUtils.SetRenderTarget (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle buffer, UnityEngine.Rendering.ClearFlag clearFlag, System.Int32 miplevel, UnityEngine.CubemapFace cubemapFace, System.Int32 depthSlice) (at library/packagecache/com.unity.render-pipelines.core@7.1.5/runtime/utilities/coreutils.cs:269)
UnityEngine.Rendering.HighDefinition.HDUtils.BlitCameraTexture (UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle source, UnityEngine.Rendering.RTHandle destination, System.Single mipLevel, System.Boolean bilinear) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.5/runtime/renderpipeline/utility/hdutils.cs:198)
UnityEngine.Rendering.HighDefinition.HDRenderPipeline.PushFullScreenDebugTexture (UnityEngine.Rendering.HighDefinition.HDCamera hdCamera, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RTHandle textureID, UnityEngine.Rendering.HighDefinition.FullScreenDebugMode debugMode) (at library/packagecache/com.unity.render-pipelines.high-definition@7.1.5/runtime/renderpipeline/hdrenderpipeline.cs:3880)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.