Search Issue Tracker

Won't Fix

Votes

0

Found in

6000.2.0b5

Issue ID

UUM-108975

Regression

No

Errors “Render Graph Execution error“ and “ArgumentNullException: Value cannot be null.“ are present, and the Game view is black when opening a Scene and using RenderGraph.AddBlitPass

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/URLCustomPass/URPCustomPassScene.unity” Scene
3. Observe the Console and Game view

Expected result: No Errors exist, and post-processing effects are applied in Game view
Actual result: Game view is black, and Errors “Render Graph Execution error“ and “ArgumentNullException: Value cannot be null.“ are present

Reproducible with: 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Could not test with: 2022.3.62f1 (Assets\URLCustomPass\Scripts\BlurRenderPass.cs(4,29): error CS0234: The type or namespace name 'RenderGraphModule' does not exist in the namespace 'UnityEngine.Rendering')

Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

Notes:
- Workaround is to enter the Play Mode, pause it, and exit Play Mode
- At the time the Scene is opened, the mesh of the static member within the Blitter is either being destroyed or set to null
- Reproducible with other Scenes

  1. Resolution Note:

    When opening a scene, BlurRendererFeature.Create() is not called. The material is not serialized, so it becomes null.
    This can be resolved by checking for null in BlurRendererFeature.AddRenderPasses(), re-creating the material, and setting it to the BlurRenderPass, as follows:

    if (material == null)
    {
    material = new Material(shader);
    blurRenderPass.SetMaterial(material);
    }
    renderer.EnqueuePass(blurRenderPass);

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.