0
\$\begingroup\$

On both the HoloLens 1 and 2, with Unity at least from 2019.x LTS through 2020.x LTS, with at least 2D windows/fullscreen and 3D immersive apps, with any XR plugin (or no XR at all), run-in-background enabled or not, when I exit an application by calling Application.Quit(), there's always a floating window left hanging out on the HoloLens.

Sometimes the window is blank, sometimes it contains a dimmed copy of the last rendered frame of the app, sometimes it's white with a big gray X'ed box on it, but it's always there. Sometimes the HoloLens cursor changes to the sleep icon over the window, and sometimes it doesn't. Clicking inside the window will relaunch the app.

I can close the window with the title bar close button, and it's not a show-stopper, really, but it's kind of annoying. On mobile and desktop devices, as well as other headsets e.g. the MagicLeap, the apps exit completely. It's a uniquely HoloLens issue.

There's nothing that indicates that the applications are crashing on exit. The VS debugger doesn't report any issues, nor do any of the built-in crash logs. Also, the task list shows the processes do indeed stop (their corresponding RuntimeBroker processes do keep running but AFAIK this is normal behavior), except occasionally certain resources seem to not clean up fully (but I am not entirely sure of details; I suspect it's related to video camera usage) until I close all the floating windows.

Is there any way to make the window close when the application exits? Is Application.Quit() alone not the correct way to quit on the HoloLens?


These windows, for example (video):

enter image description here enter image description here
\$\endgroup\$
2
  • 1
    \$\begingroup\$ I fear I won't be really able to help on your question, but I have the same exact question than you ! :) Did you find a way since your initial post ? I was told that "we were not supposed to close apps willingly", but considering the resources and multiplayer topics for a VR/AR app, these case are a lot more plausible than for any other kind of app. Thanks in advance, Best regards \$\endgroup\$ Commented May 17, 2022 at 16:40
  • \$\begingroup\$ @user2015926 No, I have not found a solution yet. However, it's on our issue list and it's actually coming back up soon so I'll be actively trying to figure it out again this week. I will post back here if I find a solution. \$\endgroup\$ Commented May 18, 2022 at 15:29

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.