Search Issue Tracker

Fixed

Fixed in 1.4.0-preview.4

Votes

0

Found in [Package]

1.4.0-preview.2

Issue ID

XRMOCKB-23

Regression

No

Crash on Unity.XR.MockHMD.MockHMD:SetFoveationMode when entering Play Mode after loading RenderDoc

Package: MockHMD XR Plugin

-

How to reproduce:
1. Open the attached project "LM-Graphics.zip"
2. Right mouse click on the Game view tab
3. Click "Load RenderDoc"
4. Enter Play Mode

Reproducible with: 1.2.0-preview.1, 1.3.0-preview.1, 1.4.0-preview.2 (6000.0.41f1, 6000.1.0b9, 6000.2.0a6)
Could not test with: 2022.3.59f1 (compilation errors in the Console window)

Reproducible on: Windows 11 23H2
Not reproducible on: No other environment tested

First few lines of stack trace:
0x00007FFD8B12D4CB (UnityMockHMD) NativeConfig_SetFoveationMode
0x000002070A0AF911 (Mono JIT Code) (wrapper managed-to-native) Unity.XR.MockHMD.MockHMD:SetFoveationMode (bool,uint)
0x000002070A0BE9DB (Mono JIT Code) [.\Library\PackageCache\com.unity.xr.mock-hmd@bf4cb37c5d7a\Runtime\MockHMDLoader.cs:32] Unity.XR.MockHMD.MockHMDLoader:Initialize ()
0x000002070A0BE467 (Mono JIT Code) [.\Library\PackageCache\com.unity.xr.management@3126858600e6\Runtime\XRManagerSettings.cs:190] UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync ()
0x000002070A0BE343 (Mono JIT Code) [.\Library\PackageCache\com.unity.xr.management@3126858600e6\Runtime\XRGeneralSettings.cs:176] UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK ()
0x000002070A0BE1E3 (Mono JIT Code) [.\Library\PackageCache\com.unity.xr.management@3126858600e6\Runtime\XRGeneralSettings.cs:149] UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad ()
0x000002070A0AEC75 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FFD4C4D68DE (mono-2.0-bdwgc) mono_jit_set_domain
0x00007FFD4C418404 (mono-2.0-bdwgc) mono_object_get_virtual_method
0x00007FFD4C4184F0 (mono-2.0-bdwgc) mono_runtime_invoke

  1. Resolution Note (fix version 1.4.0-preview.4):

    Added initialization check to MockHMD's SetFoveationMode

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.