Render Graph Execution error in UI post processing

Since upgrading from 2022 to 6.2, and now 6.3, I’ve had this error appearing in one of my scenes:

Render Graph Execution error
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

It shows up when the scene has been active for 2 or 3 minutes, and isn’t due to any user input. It’s like Render Graph just decides it doesn’t want to play any more.

As far as I can tell it’s post processing that’s causing the issue. Turn it off and it doesn’t crash (at least, not as quickly). What’s confusing to me, though, is that I have an almost identical setup in another scene which doesn’t seem to have the same error. Same canvas (Screen Space - Camera), same camera (shown below). I have tried rebuilding the scene from scratch, but the problem reappeared as soon as I checked post processing.

As far as I can tell, it only shows up in the editor. Builds seem fine, but of course it’s impossible to tell if it would crash if I left it run for longer. It also appears to only happen in the one scene.

No additional information is given in the error, although it’s always followed by this one:

IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEngine.Rendering.DynamicArray1[T].get_Item (System.Int32 index) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/Common/DynamicArray.cs:369) UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry.GetTextureResource (UnityEngine.Rendering.RenderGraphModule.ResourceHandle& handle) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraphResourceRegistry.cs:827) UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry.GetTexture (UnityEngine.Rendering.RenderGraphModule.TextureHandle& handle) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraphResourceRegistry.cs:189) UnityEngine.Rendering.RenderGraphModule.TextureHandle.op_Implicit (UnityEngine.Rendering.RenderGraphModule.TextureHandle texture) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraphResourceTexture.cs:138) UnityEngine.Rendering.Universal.PostProcessPassRenderGraph+<>c.<RenderUberPost>b__104_0 (UnityEngine.Rendering.Universal.PostProcessPassRenderGraph+UberPostPassData data, UnityEngine.Rendering.RenderGraphModule.RasterGraphContext context) (at ./Library/PackageCache/com.unity.render-pipelines.universal@6ea13a8ff72f/Runtime/Passes/PostProcessPassRenderGraph.cs:2569) UnityEngine.Rendering.RenderGraphModule.RasterRenderGraphPass1[PassData].Execute (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext renderGraphContext) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraphPass.cs:709)
UnityEngine.Rendering.RenderGraphModule.NativeRenderPassCompiler.NativePassCompiler.ExecuteRenderGraphPass (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext& rgContext, UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry resources, UnityEngine.Rendering.RenderGraphModule.RenderGraphPass pass) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/Compiler/NativePassCompiler.cs:1960)
UnityEngine.Rendering.RenderGraphModule.NativeRenderPassCompiler.NativePassCompiler.ExecuteGraph (UnityEngine.Rendering.RenderGraphModule.InternalRenderGraphContext rgContext, UnityEngine.Rendering.RenderGraphModule.RenderGraphResourceRegistry resources, System.Collections.Generic.List`1[UnityEngine.Rendering.RenderGraphModule.RenderGraphPass]& passes) (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/Compiler/NativePassCompiler.cs:2055)
UnityEngine.Rendering.RenderGraphModule.RenderGraph.ExecuteNativeRenderGraph () (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraph.Compiler.cs:40)
UnityEngine.Rendering.RenderGraphModule.RenderGraph.Execute () (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraph.cs:1740)
UnityEngine.Rendering.RenderGraphModule.RenderGraph.EndRecordingAndExecute () (at ./Library/PackageCache/com.unity.render-pipelines.core@7e63c2374bcc/Runtime/RenderGraph/RenderGraph.cs:1656)
UnityEngine.Rendering.Universal.UniversalRenderPipeline.RecordAndExecuteRenderGraph (UnityEngine.Rendering.RenderGraphModule.RenderGraph renderGraph, UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Rendering.Universal.ScriptableRenderer renderer, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Camera camera, UnityEngine.Rendering.RenderGraphModule.RenderTextureUVOriginStrategy uvOriginStrategy) (at ./Library/PackageCache/com.unity.render-pipelines.universal@6ea13a8ff72f/Runtime/UniversalRenderPipelineRenderGraph.cs:24)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Any clues about where to start digging to fix this would be greatly appreciated. Thanks!

Edit: Added more info as I figured stuff out. I would add a post processing tag if I could.

1 Like