Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.3.12f1

6000.4.1f1

6000.5.0b1

6000.6.0a1

Issue ID

UUM-138049

Regression

Yes

URP RenderGraph throws "RenderTextureDesc height must be greater than zero" when camera pixel height becomes 0 due to small window resolution and fractional viewport rect

SRP Foundation

-

Reproduction steps:
1. Open the attached "IN-137785_AutoResizerTillCrash.zip" project
2. Build and run the project in Player
3. Wait 15 seconds in the Player, then close it
4. Open File Explorer
5. Navigate to "%USERPROFILE%\AppData\LocalLow\DefaultCompany\AutoResizerTillCrash"
6. Open "Player.log"
7. Press "Ctrl + F" and search for "error"

Actual result: "RenderTextureDesc height must be greater than zero" errors are present
Expected result: No "RenderTextureDesc height must be greater than zero" errors are present

Reproducible with: 6000.3.0a5 (f9a1fab5607a), 6000.3.12f1, 6000.4.1f1, 6000.5.0b1 (c1f81ff5b082), 6000.6.0a1 (7dc703ab9bd8)
Not reproducible with: 6000.0.71f1 (907bc2d768b5), 6000.3.0a4

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

Note: Issue triggers when the Player window is resized to 2x2 and the Camera viewport rect height is fractional (e.g. <= 0.3), which can make Camera.pixelHeight become 0

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.