How to reproduce:
1. Open the attached "case_1376601" project
2. Open the "ReproScene" Scene
3. Enter the Play Mode
4. Select the "Main Camera -> Camera" GameObject in the Hierarchy
5. Set the "Renderer" to the "URP Renderer"
6. Observe the Console log
Expected result: No errors are thrown in the Console log. Both Squares are visible in the Scene/Game views
Actual result: A bunch of errors is printed in the Console log. The grey Square disappears
Reproducible with: 12.0.0 (2021.2.0b2), 12.1.1 (2021.2.4f1), 13.1.1 (2022.1.0a16)
Not reproducible: 7.7.1 (2019.4.33f1), 10.7.0 (2020.3.23f1), 12.0.0 (2021.2.0b1)
Thrown errors:
Attempting to get Camera relative temporary RenderTexture (width || height <= 0) via a CommandBuffer in a Sriptable Render Pipeline.
Trying to get a relatively sized RenderBuffer without an active camera.
Trying to get a relatively sized RenderBuffer without an active camera.