I am using OpenXR and meta quest 3. The unity editor version does not seem to matter as it crashes on a 2023 one as well. I am simply in the VR template and whenever I press play again to stop the runtime, Unity crashes.
more information:
fresh project. fresh install of Unity. Streaming to quest using quest link app
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at UnityEngine.XR.OpenXR.OpenXRLoaderBase:Internal_DestroySession <0x00086>
at UnityEngine.XR.OpenXR.OpenXRLoaderBase:smile:einitialize <0x0018a>
at UnityEngine.XR.Management.XRManagerSettings:smile:einitializeLoader <0x00077>
at UnityEngine.XR.Management.XRGeneralSettings:smile:eInitXRSDK <0x0006a>
at UnityEngine.XR.Management.XRGeneralSettings:Quit <0x00042>
at UnityEngine.XR.Management.XRGeneralSettings:InternalPlayModeStateChanged <0x0002a>
at UnityEditor.XR.Management.XRGeneralSettingsPerBuildTarget:PlayModeStateChanged <0x000d2>
at UnityEditor.EditorApplication:Internal_PlayModeStateChanged <0x000aa>
Not much to go on except what you said. Itâs definitely crashing when ending the OpenXR session.
I wonder if perhaps you need to update the Quest SDK, or even the opposite in case there was a new Quest SDK update that for whatever reason isnât compatible with Unityâs XR package(s).
thanks for looking. Yeah, its when you end the openxr session. Every package seems up to date - there are no options to update the packages and its what came with the install.
I do think there is a lot of overlap and incompatability between quest sdks - supposedly you are supposed to use their Meta all in one SKD but on the asset store it has 2 stars and people say it is bug riddled.
OpenXR should be the best option really.
Also, if I quit unity through the headset, it doesnât seem to crash unity on the PCâŚ
It being a quest 3, you need Unity 2022 LTS minimum to run, which is what I am using, but as I said I tried on 2023 as well and it was the same problems.
Also also, even if I have no headset connected, if I want to just observe the scene through the editor, if I press play the SECOND time it always crashes - disabling the âenable XR interaction on startupâ option seemed to fix this.
For sure an issue that needs tinkering with and reach out to other Quest devs on their forums.
If you have the option to downgrade Quest SDK or whatever installs are necessary to make the quest work with Unity I would try that. Iâve had incompatibilities with the first two Quests with Unity based on what SDK was installed. Same with practically any external XR device actually, thereâs always something.
Unity naturally lags behind making updates on their end so youâre sometimes forced to use a lower SDK version than the device offers, unless the device vendor is serious about keeping Unity compatibility. This sort of thing isnât always documented though.
Weâre having kind of the same problem that unity is crashing randomly around every third time when exiting the play mode.
stacktrace looks the same:
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at UnityEngine.XR.OpenXR.OpenXRLoaderBase:Internal_DestroySession <0x00086>
at UnityEngine.XR.OpenXR.OpenXRLoaderBase:smile:einitialize <0x0018a>
at UnityEngine.XR.Management.XRManagerSettings:smile:einitializeLoader <0x00077>
at (...)
the problem only occurs though when the VIVE Streaming Hub is installed on the pc. when we deinstall this programm the crashes disappear as well.
new project with untiy VR template has same problems and we tested with unity 2021.3.31f1 LTS and with 2022.3.30f1 LTS.
interesting⌠I have VIVE streaming hub installed as well for when I need to use those headsets. That must be the problem then. Not sure why though, but that suggests OpenXR installs conflicting somewhere? Or runtimes? My meta quest link desktop app just uses meta quest link as the runtime, not steam or openxr or anything
ALSO: a potential fix that seems to work for me is quitting unity in the headset rather than pressing the play button on Unity. This doesnât seem to crash it
So we got some feedback from Vive and perhaps this could fix your crashes as well:
Go to SteamVR>Settings>OpenXR>Manage OpenXR API Layers
There you can try to turn everything off, or in our case the crashes disappeared when âVIVE OpenXR MRâ is turned off.
Hello all,
Double-check the version of the XR Unity packages you are using
What was listed as âup-to-dateâ in my case was not
e.g. the package manager was listing OpenXR Plugin 1.7.0 as the most recent when in fact it is the 1.11.0 (OpenXR Plugin | OpenXR Plugin | 1.11.1-exp.1)
Upgrading seems to have resolved the issue described in this thread for me
Sorry for waking up the thread but this solution seems to work in my case
I had to some duplication in it but no idea why (but as far as it work, I wonât change anything else):