Search Issue Tracker

Fixed in 4.0.6

Votes

6

Found in [Package]

2020.2.0a8

2020.3.0f1

2021.1

2021.2

Issue ID

1323358

Regression

No

[XR SDK][OpenVR] DirectX 11 error is being spammed in Build when using -vrmode openvr and Initialize XR on Startup is disabled

Package: XR Management

-

Reproduction steps:
1. Open the user's attached project
2. Make sure "Initialize XR on Startup" is disabled (Project Settings > XR Plug-in Management)
3. Open the Build Settings and check the Development Build option
4. Build and Run the project with "-vrmode openvr" argument using CLI

Expected result: no DirectX 11 errors are thrown in the Standalone console window
Actual result: the following error is constantly spammed: "GfxDeviceD3D11Base::WaitForLastPresentationAndGetTimestamp() was called multiple times in a row without calling GfxDeviceD3D11Base::PresentFrame(). This may result in a deadlock."

Reproducible with: 2020.2.0a8, 2020.3.2f1, 2021.1.0f1, 2021.2.0a10
Not reproducible with: 2019.4.23f1, 2020.2.0a7
Could not test with 2018.4.30f1 (XR SDK not available)

Tested with:
- Oculus Rift

  1. Resolution Note (fix version 4.0.6):

    Fixed in XR Management 4.0.6, which is available via the package manager in all versions of Unity 2019.4 and greater.

    Added additional documentation detailing that XRManagerSettings.InitializeLoader should only be called after Start has been called when manually initializing XR.

Comments (2)

  1. Mureliever

    Jan 17, 2024 20:24

    RUBENGARCIAHERNANDEZ, could you find any solution for that? I am experiencing the same issue on Unity 2020.3.33 when running on Hololens-2.
    In some point, that error is occured on the glass which makes the app crash.
    Do you have any solution?

  2. RubenGarciaHernandez

    May 17, 2022 14:14

    I am still getting
    GfxDeviceD3D11Base::WaitForLastPresentationAndGetTimestamp() was called multiple times in a row without calling GfxDeviceD3D11Base:: PresentFrame(). This may result in a deadlock.
    on Unity 2020.3.34f1, when running on Hololens 2.
    I tested XR Plugin Management 4.0.1, 4.0.7 and 4.2.1 with Windows XR Plugin 4.6.2 and
    XR Plugin Management 4.2.1 with Windows XR Plugin 4.6.3.
    All produce the error.

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.