Search Issue Tracker
Fixed
Fixed in 2022.3.25f1
Votes
0
Found in
2022.3.20f1
Issue ID
UUM-58972
Regression
No
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
RequestCreateTexture
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).
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
- Unity Hub opens instead of the Unity Editor when launching a project from a Windows command line if a backslash is added to the end of the project path
- "ParseErrorException" is thrown when parsing a float with a very small value from JSON
Resolution Note (fix version 2022.3.25f1):
Fixed landed in 2022.3.25f1