Search Issue Tracker
By Design
Votes
0
Found in
6000.0.58f1
6000.1.16f1
6000.2.6f1
6000.3.0b3
Issue ID
UUM-119462
Regression
No
InvalidOperationException when using Game Camera Preview in Scene window with a custom RenderGraph pass
Reproduction steps:
1. Open the attached “IN-116254_TestPass.zip“ archived project
2. Enable the ‘Cameras’ option in the Overlay Menu, which is located in the lower-left corner of the Scene View
3. Observe the Game Camera Preview and the Console
Expected result: No errors in the Console. The custom render pass executes correctly when previewing the Game Camera in the Scene window
Actual result: Multiple different errors are present in the Console. The custom render pass fails in the Game Camera Preview
Reproducible with: 6000.0.58f1, 6000.1.16f1, 6000.2.6f1, 6000.3.0b3
Reproducible on: M1 Max MacOS 15.5 (Tested by CQA)
Not reproducible on: No other environment tested
Errors:
”Render Graph Execution error”
”Exception: Mismatch in Fragment dimensions”
”InvalidOperationException: Trying to use a texture (_CameraTargetAttachment) that was already released or not yet created. Make sure you declare it for reading in your pass or you don't read it before it's been written to at least once.”
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
- UxmlNamespacePrefix does not apply when using UIBuilder documents
- UI Builder Data Path Source List starts flickering and scrolling when trying to select the last item in the list
- Crash on ProcessSceneBeforeExport when analyzing selected Addressables rules in a specific project
- HDR images are compressed incorrectly with default settings on Android Platform
- Crash with multiple stack traces when painting detail on Terrain with a highly detailed Prefab
Resolution Note:
The issue here is using Screen.Width/Screen.Height, which is the current window resolution, not the resolution of the main color target. Instead, use either UniversalCameraData.cameraTargetDescriptor to get the color target resolution. See e.g https://docs.unity3d.com/6000.3/Documentation/Manual/urp/render-graph-write-render-pass.html
Alternatively, use GetTextureDesc on the active color target (https://docs.unity3d.com/Packages/com.unity.render-pipelines.core@15.0/api/UnityEngine.Experimental.Rendering.RenderGraphModule.RenderGraph.GetTextureDesc.html)