HoloLens 2 App is Crashing, before OpenXR Diagnostic Report.

Hello Guys,

i encountered a bad problem with the Unity Version switching from 2021.3.6 to 2021.3.27.
Our App works great with the .6 version, but didnt run on .27. After deploying the App on HoloLens 2 the app starts and the four dots are visible like normal. But after view seconds it crashes and closes the app. I know that the app with version .6 starts normal and at the beginning i have to confirm the microphone message. The message also didn`t appear with version .27. I attached the debug log below.

So i am running out of solutions and dont know what the problem is, because the log didnt tell me something more. I have to say that the last few warnings of missing scripts etc. arent the cause of the crash. Because these warnings are also there if i use .6. Some one encountered a similiar problem and know what causes this crash?

I tried different things like downgrading OpenXR or upgrading MRTK, but this didn`t work. The reason why i tried this was that the .27 version upgradet the above mentioned package (OpenXR). Another package which i consider that this causes problems is the upgraded input system.

Thank you in advance.

Ah, also i upgraded it to 2022.3 lts because this is the target version. But the error is there before .27.

Logging to U:/Users/MDRAXL/AppData/Local/Packages/XXXX_qy3efhjtsfrq2/TempState/UnityPlayer.log
Loading native plugins
  Loading Microsoft.MixedReality.QR.dll
  Loading openxr_loader.dll
  Loading pdfrenderer.dll
  Loading Magick.Native-Q8-arm64.dll
Plugins: Failed to load 'C:/data/Programs/WindowsApps/XXXX_1.0.3.0_arm64__qy3efhjtsfrq2/Magick.Native-Q8-arm64.dll' because one or more of its dependencies could not be loaded.
Plugins: 2nd attempt to load module with '.dll' extension manually appended ('Magick.Native-Q8-arm64.dll.dll') also couldn't be found (or it's dependencies).
    Failed to load plugin Magick.Native-Q8-arm64
Module information:
Built with Compiler Ver '192829333'
Built from '2022.3/staging' branch
Version is '2022.3.8f1 (b5eafc012955)'
Master build
Application type 'D3D'
OS 'Windows 11 (10.0.22621) 64bit'
[Physics::Module] Initialized MultithreadedJobDispatcher with 7 workers.
[Subsystems] Discovering subsystems at path C:/data/Programs/WindowsApps/XXXX_1.0.3.0_arm64__qy3efhjtsfrq2/Data/UnitySubsystems
[Subsystems] No descriptors matched for  examples in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
[Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  displays in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
[Subsystems] 1 'meshings' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  examples in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
[Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
[Subsystems] 1 'displays' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
[Subsystems] No descriptors matched for  meshings in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
GfxDevice: creating device client; threaded=1; jobified=0
[XR] [2004] [04:10:41.427][Info   ] Available Layers: (0)
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: Qualcomm(R) Adreno(TM) 630 GPU (ID=0x45373230)
    Vendor:   Qualcomm
    VRAM:     1932 MB
Initialize engine version: 2022.3.8f1 (b5eafc012955)
The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object '<null>') is missing!
XRGeneral Settings awakening...
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
UnityEngine.XR.Management.XRGeneralSettings:Awake()

[OpenXRRuntimeRestartHandler] is created for AppRemotingPlugin, enabled = False.
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
Microsoft.MixedReality.OpenXR.Remoting.AppRemotingPlugin:Awake()

[Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Display...
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [2004] [04:10:42.409][Info   ] Available Layers: (0)
[Subsystems] Loading plugin UnityOpenXR for subsystem OpenXR Input...
[Subsystems] Loading plugin MicrosoftOpenXRPlugin for subsystem OpenXR Input Extension...
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Mesh Extension
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [MROpenXR][Info   ][04:10:42.432528][tid:7d4] MeshProvider_RegisterLifecycleProvider
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Input Extension
[Subsystems] OpenXR Extension successfully registered Provider for OpenXR Mesh Extension
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Input
[Subsystems] OpenXR XR Plugin successfully registered Provider for OpenXR Display
[XR] [MROpenXR][Info   ][04:10:42.433079][tid:7d4] InputProvider_RegisterLifeCycleProvider
[XR] [MROpenXR][Info   ][04:10:42.433159][tid:7d4] InputProvider_LifecycleInitialize
[Subsystems] Loading plugin MicrosoftOpenXRPlugin for subsystem OpenXR Mesh Extension...
[XR] [MROpenXR][Info   ][04:10:42.445451][tid:7d4] MeshProvider_LifecycleInitialize
New input system (experimental) initialized
[XR] [MROpenXR][Info   ][04:10:42.494653][tid:7d4] MicrosoftOpenXRPlugin_ReplacedxrCreateSession
[XR] [MROpenXR][Info   ][04:10:42.936802][tid:7d4] MicrosoftOpenXRPlugin_xrCreateSession sessionCreationResult=XR_SUCCESS
[XR] [MROpenXR][Info   ][04:10:42.936964][tid:7d4] MicrosoftOpenXRPlugin_RecordGraphicsAPIOnSessionCreated graphicsAPI=unknown
[XR] [MROpenXR][Info   ][04:10:42.936998][tid:7d4] MicrosoftOpenXRPlugin_RecordGraphicsAPIOnSessionCreated graphicsAPI=unknown
[XR] [MROpenXR][Info   ][04:10:42.937134][tid:7d4] MicrosoftOpenXRPlugin_RecordGraphicsAPIOnSessionCreated graphicsAPI=XR_TYPE_GRAPHICS_BINDING_D3D11_KHR
[XR] [MROpenXR][Info   ][04:10:42.937391][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appName=XXXX
[XR] [MROpenXR][Info   ][04:10:42.937445][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appVersion=1.0.0
[XR] [MROpenXR][Info   ][04:10:42.937486][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appMode=AppMode
[XR] [MROpenXR][Info   ][04:10:42.937544][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment openXRRuntimeName=Windows Mixed Reality Runtime
[XR] [MROpenXR][Info   ][04:10:42.937741][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment openXRRuntimeVerison=112.2211.2002
[XR] [MROpenXR][Info   ][04:10:42.937802][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment APIVersion=1.0.27
[XR] [MROpenXR][Info   ][04:10:42.938014][tid:7d4] OnSessionCreated GraphicsAPI=XR_TYPE_GRAPHICS_BINDING_D3D11_KHR sessionCreationResult=XR_SUCCESS AppName=CellCentric AppVersion=1.0.0 AppMode=AppMode openXRRuntimeName=Windows Mixed Reality Runtime openXRRuntimeVerison=112.2211.2002 APIVersion=1.0.27 PartA_PrivTags=33554432
[XR] [MROpenXR][Info   ][04:10:42.938103][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appName=XXXXX
[XR] [MROpenXR][Info   ][04:10:42.938144][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appVersion=1.0.0
[XR] [MROpenXR][Info   ][04:10:42.938271][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment appMode=AppMode
[XR] [MROpenXR][Info   ][04:10:42.938320][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment openXRRuntimeName=Windows Mixed Reality Runtime
[XR] [MROpenXR][Info   ][04:10:42.938375][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment openXRRuntimeVerison=112.2211.2002
[XR] [MROpenXR][Info   ][04:10:42.938423][tid:7d4] MicrosoftOpenXRPlugin_SetPluginEnvironment APIVersion=1.0.27
[XR] [2004] [04:10:42.968][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_UNKNOWN->XR_SESSION_STATE_IDLE session=2 time=11956315716666
[XR] [2004] [04:10:42.968][Info   ] OpenXRSession::HandleSessionStateChangedEvent: state XR_SESSION_STATE_IDLE->XR_SESSION_STATE_READY session=2 time=11956315735468
[XR] [MROpenXR][Info   ][04:10:42.969594][tid:7d4] ViewConfigurationSettings_PrimaryStereoEnabled
[XR] [MROpenXR][Info   ][04:10:42.969694][tid:7d4] ViewConfigurationSettings_SecondaryMonoFirstPersonObserverEnabled
[XR] [MROpenXR][Info   ][04:10:42.970068][tid:7d4] LocatableCameraProvider_Registered
[XR] [MROpenXR][Info   ][04:10:43.029671][tid:7d4] MicrosoftOpenXRPlugin_OnSubsystemsStarting
[XR] [MROpenXR][Info   ][04:10:43.029789][tid:7d4] InputProvider_LifecycleStart
[XR] [MROpenXR][Info   ][04:10:43.030244][tid:7d4] MicrosoftOpenXRPlugin_OnSubsystemsStarting
The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object '<null>') is missing!
A scripted object (probably Microsoft.MixedReality.Toolkit.XRSDK.Oculus.Input.OculusXRSDKDeviceManagerProfile?) has a different serialization layout when loading. (Read 72 bytes but expected 116 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
The referenced script on this Behaviour (Game Object 'Button_OpenPortSettings') is missing!

Cheers,
Markus Draxler

Hi Markus,

Note our FAQ :

In this case it looks like you have serialization issues with MRTK and some third-party plugins that fail to load. I recommend that you reach out to Microsoft and the authors of those plugins for further support.

Hello Andy,

Thank you for your Response. The two errors you mentioned also exists in the old version. Dont know if these errors are the reason for the crash then. I will look into these errors. Maybe something changed the way how errors are handled.

Cheers,
Markus

I have an update to this problem. I solved it by installing and setting the Buildtools v143. Before i compiled it with the old buildtools 142 and used VS2019. When i upgraded it to 2022 and used the newer Buildtools i succesfully build and started the app on the HoloLens. The problem is now solved.