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).
Comments (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
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 UndoManager::RegisterUndoInternal when applying added GameObjects to a Prefab
- [Asset Bundles] A new bundle hash is not generated when the name of a serialized field is changed
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
Resolution Note (fix version 2022.3.25f1):
Fixed landed in 2022.3.25f1