Dimensions of color surface error

Hello,

I have encounter an error after building a project. When you have HDRP pipeline and camera which is rendering into the Render Texture in the project where A* and Entities packages are present, then there is a lot of errors logged in player.log. But otherwisse it seems to work.

Dimensions of color surface (“New Render Texture”) do not match dimensions of depth surface (“CameraDepthStencil_2560x1440_D32_SFloat_S8_UInt_Tex2DArray_Dynamic”): (256, 256) != (2560, 1440)

Repro steps:

  1. Create empty HDRP core project
  2. Add Render Texture to your Assets folder and then add it as output to main camera in scene
  3. Add A* package
  4. Add Entities package
  5. (optional) Set “Run In Background” and “Windowed” mode in the Player Settings
  6. Build and run the game
  7. Check the player.log for the errors

Versions:

  1. Unity 6000.3.6f1
  2. A* Pathfinding Project 5.4.6
  3. Entities 1.4.5

Note: if you remove either A* Pathfinding Project or Entities package the errors disappear

Also I think this topic might be relevant, so adding the link here: HDRP Realtime Reflection Probe conflicts with ALINE

Can you check your repro steps? I didn’t see this in my setup. The only thing I did differently was use 6000.3.4 and skipped the optional steps

I have noticed that when you have “development build” checked, the error will not occur. Also in the editor the error will not occure. You have to build it.

Also if you skip the optional steps you have to have focus in the app, otherwise it will not happen.

I have tried it on three diffrent PCs (but all with nVidia graphic card) and it happend everytime.

Here is the demo project created from the repro steps: Download CameraError.zip | LimeWire

It was on me! Sorta- It switched back to URP when I changed my version in the create project dialogue. Now that I’ve done the steps and see the result I’m finally caught up.

Yeah I’m very much not sure why having specifically Astar and Entities is causing this. I have a hunch it’s something that may be a thing from ALINE but I tested ALINE.1.7.9 rather than Astar but it was fine. Maybe it was something fixed in 1.7.9? I looked in the patch notes and saw nothing though. I’ll tag Aron to see if he can provide any clarity. Thanks for the repro steps

Merging into HDRP Release Build Spam: Render Texture Dimension Mismatch Error (Depth vs. Color Buffer) - #2 by aron_granberg

1 Like