ValveSoftware / unity-xr-plugin

OpenVR plugin for Unity's XR API
BSD 3-Clause "New" or "Revised" License
303 stars 64 forks source link

Getting "Unsupported application type: 0" only on Build #106

Open ZnelArts opened 2 years ago

ZnelArts commented 2 years ago

Unity 2020.3.12 SteamVR v2.7.3 OpenVR 1.1.4 Windows

Error wont happen on Editor, only on Build.

When starting VR the game will freeze and logs show:

Presenting Prepare VR Screen

Starting VR Mode

XRSettings.enabled is deprecated: Use XRDisplaySubsystem.Start() and XRDisplaySubsystem.Stop().

Call to DeinitializeLoader without an initialized manager.Please make sure wait for initialization to complete before calling this API.

[XR] [OpenVR] Registering providers
[XR] [OpenVR] Display lifecyle provider registered
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Display
[XR] [OpenVR] Input lifecycle provider registered
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Input
[Subsystems] XRSDKOpenVR successfully registered Provider for OpenVR Display
[Subsystems] Loading plugin XRSDKOpenVR for subsystem OpenVR Display...
[XR] [OpenVR] is initialized
[Subsystems] Loading plugin XRSDKOpenVR for subsystem OpenVR Input...
<b>[SteamVR]</b> GetDigitalActionData error (/actions/default/in/menu): NoData handle: 0

[XR] XR OpenVR Display Start
[XR] [OpenVR] Set active mirror mode (-6)
[XR] [OpenVR] [Error] Unsupported application type: 0
[XR] [OpenVR] [Error] Unsupported application type: 0
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 0. UnityID: 0
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 1. UnityID: 1
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 2. UnityID: 2
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 4. UnityID: 3
[XR] [OpenVR] Device connecting (status change). OpenVRIndex: 16. UnityID: 4
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::RequestCreateTexture
XRTextureManager::SetupRenderTextureFromXRRequest (id: 1 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 1)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 2 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 2)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 3 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 3)
XRTextureManager::SetupRenderTextureFromXRRequest (id: 4 col: 0000000000000000 d: 0000000000000000)
RenderTexture::Create (id: 4)
A Canvas named "UnscaledCanvas" with a render mode of ScreenSpaceOverlay is being used while VR is also enabled. This Canvas will continue to incur a rendering cost, but will not be visible while in VR. Is this intentional?

[XR] [OpenVR] Created Native Color: 771cae78
ZnelArts commented 2 years ago

Discovered this is caused by https://github.com/ValveSoftware/steamvr_unity_plugin/issues/909