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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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)