Search Issue Tracker

Fixed

Fixed in 2021.3.40f1, 2022.3.33f1, 6000.0.3f1

Votes

1

Found in

2021.3.32f1

2022.3.13f1

2023.2.0f1

2023.3.0a14

6000.0.0b11

Issue ID

UUM-57147

Regression

Yes

[URP][Comp][NRP] Errors are thrown when Gizmos button of Game view is active

--

-

Reproduction steps:
1. Open the attached project “ReproProject“
2. Open scene “MainMenu“ in Assets/Scenes
3. Click on the Gizmos button in Game view and make it active
4. Observe the Console window

Expected result: No errors are logged
Actual result: Errors “RenderPass: Attachment 0 was created with 1 samples but 2 samples were requested.“, “BeginSubPass: Not inside a Renderpass“, “EndRenderPass: Not inside a Renderpass“ and “RenderPassContext: Found a rogue context, did you call EndRenderPass?“ are shown in the Console window

Reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.2.0f1, 2023.3.0a14

Reproducible on: Windows 11
Not reproducible on: No other environment tested

*Investigation notes*

This only happens in compatibility mode (i.e. not using RenderGraph) and when using native render pass (unchecking this is a work-around).

The offending attachment is a depth buffer and turning off (by hacking the code) the copy depth buffer pass will make the problem go away.

Logic around MSAA changed in [a PR|https://github.cds.internal.unity3d.com/unity/unity/pull/39885] which landed in 2023.3.0b7. I have assigned this bug to [~ernestask] for bisection.

  1. Resolution Note (fix version 6000.0.3f1):

    We decided to disable native render pass for Editor FinalCopyDepth pass to fix the issue. Thanks for the feedback.

  2. Resolution Note (fix version 2022.3.33f1):

    We decided to disable native render pass for Editor FinalCopyDepth pass to fix the issue, native render pass was not needed in this case and the minimal fix prevents any regression. Thanks for the feedback!

  3. Resolution Note (fix version 2021.3.40f1):

    NativeRenderPass has been disabled for the Gizmo pass in the Editor to avoid this error. Thanks a lot for your time and for your feedback.

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.