Search Issue Tracker
Feature Request
Feature Request in 1.10.X
Votes
0
Found in [Package]
1.10.0
Issue ID
OXRB-344
Regression
No
[XR][Varjo] URP OpenXR crash when creating RTVs for single pass instanced rendering when using XR_VARJO_quad_views extension
Steps to reproduce:
1. Download the attached user's project "Unity6-BiRP-QuadView.zip"
2. Install Varjo Base software [https://developer.varjo.com/downloads] (Account creation required)
3. Add Varjo OpenXR plugin to the downloaded project ([https://github.com/varjocom/VarjoUnityXRPlugin.git])
4. In the analytics window, under Varjo Base software, you click on the "Simulate" button and select XR-3 and also enable "Mouse and WASD" to fake the HMD pose. See [https://varjo.com/use-center/get-to-know-your-headset/using-varjo-base/#analytics-window] for more instructions
Expected Results: no crash when selecting QuadViews feature (which enables XR_VARJO_quad_views) and Single Pass Instanced rendering mode
Actual Results: URP OpenXR crash when creating RTVs for Single Pass Instanced rendering when using XR_VARJO_quad_views extension
Reproducible with according to the user: OpenXR 1.10.0 (6000.0.0b16)
Could not test with 2021.3.38f1, 2022.3.28f1, 6000.0.1f1 due to Varjo software installation failing
Testing Environment (user): Windows 10
Not reproducible on: No other environment tested
Notes:
-According to the user, this seems to stem from the OpenXR plugin creating one context view swapchain with ArraySize=2 and two focus view swapchains with ArraySize=1 (instead of just one with ArraySize=2) and then requesting two RTVs (one for each slice from a texture which only has 1 slice) via IUnityXRDisplayInterface::CreateTexture.
-Varjo OpenXR runtime log file named is attached "unity6-quadviews-logs.txt":
-Varjo OpenXR runtime error:
"ID3D11Device::CreateRenderTargetView: The Dimensions of the View are invalid due to at least one of the following conditions. MipSlice (value = 0) must be between 0 and MipLevels-1 of the Texture Resource, 0, inclusively. FirstArraySlice (value = 0) must be between 0 and ArraySize-1 of the Texture Resource, 0, inclusively. With the current FirstArraySlice, ArraySize (value = 2) must be between 1 and 1, inclusively, or -1 to default to all slices from FirstArraySlice, in order that the View fit on the Texture. [ STATE_CREATION ERROR #137: CREATERENDERTARGETVIEW_INVALIDDIMENSIONS]"
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
- Asset list items fail to load content when scrolling through the List view in Asset Store Search
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
Resolution Note:
Quad Views feature is not supported by Unity's SRP graphics pipelines (URP/HDRP) so we are currently not able to resolve this issue. We have created a feature request so we can consider adding this in the future.
Resolution Note (1.10.X):
Quad Views feature is not supported by Unity's SRP graphics pipelines (URP/HDRP) so we are currently not able to resolve this issue. We have created a feature request so we can consider adding this in the future.