Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug HoloLens 2 App is Crashing, before OpenXR Diagnostic Report.

Discussion in 'AR' started by GibtsDochGarNicht, Sep 20, 2023.

  1. GibtsDochGarNicht

    GibtsDochGarNicht

    Joined:
    Nov 10, 2022
    Posts:
    3
    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 don`t know what the problem is, because the log didn`t 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.

    Code (CSharp):
    1. Logging to U:/Users/MDRAXL/AppData/Local/Packages/XXXX_qy3efhjtsfrq2/TempState/UnityPlayer.log
    2. Loading native plugins
    3.   Loading Microsoft.MixedReality.QR.dll
    4.   Loading openxr_loader.dll
    5.   Loading pdfrenderer.dll
    6.   Loading Magick.Native-Q8-arm64.dll
    7. 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.
    8. 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).
    9.     Failed to load plugin Magick.Native-Q8-arm64
    10. Module information:
    11. Built with Compiler Ver '192829333'
    12. Built from '2022.3/staging' branch
    13. Version is '2022.3.8f1 (b5eafc012955)'
    14. Master build
    15. Application type 'D3D'
    16. OS 'Windows 11 (10.0.22621) 64bit'
    17. [Physics::Module] Initialized MultithreadedJobDispatcher with 7 workers.
    18. [Subsystems] Discovering subsystems at path C:/data/Programs/WindowsApps/XXXX_1.0.3.0_arm64__qy3efhjtsfrq2/Data/UnitySubsystems
    19. [Subsystems] No descriptors matched for  examples in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
    20. [Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
    21. [Subsystems] No descriptors matched for  displays in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json.
    22. [Subsystems] 1 'meshings' descriptors matched in UnitySubsystems/MicrosoftOpenXRPlugin/UnitySubsystemsManifest.json
    23. [Subsystems] No descriptors matched for  examples in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
    24. [Subsystems] 1 'inputs' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
    25. [Subsystems] 1 'displays' descriptors matched in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json
    26. [Subsystems] No descriptors matched for  meshings in UnitySubsystems/UnityOpenXR/UnitySubsystemsManifest.json.
    27. GfxDevice: creating device client; threaded=1; jobified=0
    28. [XR] [2004] [04:10:41.427][Info   ] Available Layers: (0)
    29. Direct3D:
    30.     Version:  Direct3D 11.0 [level 11.1]
    31.     Renderer: Qualcomm(R) Adreno(TM) 630 GPU (ID=0x45373230)
    32.     Vendor:   Qualcomm
    33.     VRAM:     1932 MB
    34. Initialize engine version: 2022.3.8f1 (b5eafc012955)
    35. The referenced script (Unknown) on this Behaviour is missing!
    36. The referenced script on this Behaviour (Game Object '<null>''<null>') is missing!
    37. 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)
    38. Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
    39. The referenced script on this Behaviour (Game Object 'Button_OpenPortSettings') is missing!
    40.  

    Cheers,
    Markus Draxler
     
    Last edited: Sep 21, 2023
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    774
    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.
     
  3. GibtsDochGarNicht

    GibtsDochGarNicht

    Joined:
    Nov 10, 2022
    Posts:
    3
    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
     
  4. GibtsDochGarNicht

    GibtsDochGarNicht

    Joined:
    Nov 10, 2022
    Posts:
    3
    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.
     
    andyb-unity and thomas_key like this.