Search Issue Tracker


Fixed in 2022.3.25f1



Found in


Issue ID




Vision build crashes with a non-actionable error



How to reproduce:
1. Download and open the attached project
2. Build and run the project on visionOS
3. Observe the crash

SetupRenderTextureFromXRRequest (id: 1 col: 0x60000190b240 d: 0x6000018f6280 sr: 0x0)
RenderTexture::Create (id: 1)
Requested RenderTexture with sRGB format. sRGB formats are not supported in gamma mode, fallback to a UNorm format. Use a UNorm format instead of sRGB to silence this warning.
IVRDeviceCallback_CreateEyeTextureResources 0x60000190b240
IVRDeviceCallback_CreateEyeTextureResources 0x6000018f6280
-[MTLTextureDescriptorInternal validateWithDevice:], line 1357: error 'Texture Descriptor Validation
MTLTextureDescriptor has invalid pixelFormat (0).
-[MTLTextureDescriptorInternal validateWithDevice:]:1357: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has invalid pixelFormat (0).

  1. Resolution Note (fix version 2022.3.25f1):

    Fixed landed in 2022.3.25f1

Comments (1)

  1. mtschoen

    Apr 03, 2024 22:14

    This issue appears to be caused by the legacy image effects from the old Standard Assets package in the project. I was able to replicate the issue by using only the SunShafts effect, but others will cause the same issue. I think the bug has “morphed” a bit since it was originally reported, because I was seeing a different callstack on the latest Editor versions, and I was even able to get the crash to happen in the macOS Editor with the XR Mock HMD package.

    Anyway, you should be able to work around the issue in the short term by removing the SunShafts, NoiseAndGrain, ScreenOverlay, AntiAliasing and any other legacy image effects from cameras. That should unblock anyone running into this on current Unity versions (2022.3.24 and below). I've been able to fix the issue in Unity itself, which will allow you to bring these effects back, but it will take a few weeks before it lands in a shipped Editor version. We'll close this issue once the fix ships and the original reporter confirms the fix is valid.

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.