Rendering breaks on 4.3.81

Using 2022.3.7f1 and HDRP with A* Pathfinding Project 4.3.81 sometimes rendering breaks.

It happens infrequently, on different machines. After some time of entering/exiting playmode.

NullReferenceException: Object reference not set to an instance of an object
Pathfinding.Drawing.DrawingManager.CleanupIfNoCameraRendered () (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/DrawingManager.cs:395)
Pathfinding.Drawing.DrawingManager.Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/DrawingManager.cs:372)

followed by

Render Graph Execution error at pass Custom Pass (106)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

followed by

Exception: You cannot dispose an invalid command builder. Are you trying to dispose it twice?
Pathfinding.Drawing.CommandBuilder.DisposeInternal () (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/CommandBuilder.cs:286)
Pathfinding.Drawing.DrawingManager.Submit (UnityEngine.Camera camera, UnityEngine.Rendering.CommandBuffer cmd, System.Boolean usingRenderPipeline, System.Boolean allowCameraDefault) (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/DrawingManager.cs:644)
Pathfinding.Drawing.DrawingManager.SubmitFrame (UnityEngine.Camera camera, UnityEngine.Rendering.CommandBuffer cmd, System.Boolean usingRenderPipeline) (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/DrawingManager.cs:471)
Pathfinding.Drawing.AlineHDRPCustomPass.Execute (UnityEngine.Rendering.HighDefinition.CustomPassContext context) (at ./Library/PackageCache/com.arongranberg.astar@4.3.81/Drawing/AlineHDRPCustomPass.cs:16)
UnityEngine.Rendering.HighDefinition.CustomPass+<>c.<ExecuteInternal>b__36_0 (UnityEngine.Rendering.HighDefinition.CustomPass+ExecutePassData data, UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraphContext ctx) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.8/Runtime/RenderPipeline/RenderPass/CustomPass/CustomPass.cs:269)
UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraphPass`1[PassData].Execute (UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraphContext renderGraphContext) (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.8/Runtime/RenderGraph/RenderGraphPass.cs:143)
UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraph.ExecuteCompiledPass (UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraph+CompiledPassInfo& passInfo, System.Int32 passIndex) (at ./Library/PackageCache/com.unity.render-pipelines.core@14.0.8/Runtime/RenderGraph/RenderGraph.cs:1481)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

When it will happen there is no rendering in scene view and game view. To fix it, it is needed to perform various voodoo tricks such as closing game view, restarting editor, enter playmode (with different order). Bit frustrating.

Hmm. I cannot replicate this, but I think I can see how it might happen.
I’ll include what I think is a fix in the next beta update. Let me know if that fixes it :slight_smile:

1 Like

If you want me to test something early, just let me know.

I see that the new version is out (4.3.82), but I don’t see anything related to it in the release notes. Did that fix made it to that release or will it be included in the next one?

It’s included in the update

1 Like