The app starts only after I click on LifecycleEvents-Resume from Visual Studio 17.4.4
I am trying to develop an application to HoloLens 2 and, after deploy, in a first step, the application is loading forever. Then, in Visual Studio 2022 17.4.4, if I press on Lifecycle Events - Resume, the application starts properly. The configuration of my project is:
- Unity 2021.3.10f1
- Visual Studio 2022 version 17.4.4
- MRTK 2.8.2
- Mixed Reality OpenXR Plugin 1.5.1; OpenXR Plugin 1.5.3; ( I also tried with Mixed Reality OpenXR Plugin 1.80, 1.70, 1.5.2 and the associated version for OpenXR Plugin required by each one of them).
I attached the UnityPlayer (9).log file the content starting with line 85 is written after I pressed Resume.
83 Failed to switch resolution to 1280 x 1080 84 [XR] [MROpenXR][Info ][00:01:38.168614][tid:1190] InputProvider_LifecycleStop Here, I pressed Resume in VS. 85 [XR] [MROpenXR][Info ][00:02:39.987950][tid:1190] InputProvider_LifecycleStart 86 Failed to switch resolution to 1280 x 1080
Do you have any idea why is this happening and how it can be addressed?
Hello, Welcome to Microsoft Q&A,
Judging from your log file, your project is trying to modify the resolution, is this something you set manually? HoloLens project should be full screen by default, and as far as I know Unity doesn't provide an option to change the resolution for HoloLens project. Please check your project settings and if possible, please share some screenshots.
Regarding Unity 2021, it is recommended to use 2021.3.14 and later versions to avoid some known issues - Known issues in Unity versions and packages - Mixed Reality | Microsoft Learn.
Also, how do you deploy the project in Visual Studio? Is it through Release and ARM64? Have you tried Start Without Debugging?
Sign in to comment