Skip to content

Spinning White Balls when pressing the power button then resuming app #2

@WikkidEdd

Description

@WikkidEdd

Describe the bug

When you press the power button of the HL2 when the app is running and then resume it can result in indefinitely seeing spinning white balls. This usually happens after one or two cycles of putting the device on standby and then resuming the app, but can sometimes take more attempts.

To reproduce

Steps to reproduce the behavior:

  1. Clone this git repo
  2. Open Unity project
  3. Switch to UWP build platform
  4. Build application
  5. Switch solution config to Release and ARM64
  6. Build and Start the application
  7. Wait until the app has started, wait 5 seconds, then short press on the power button to put the HL2 to sleep
  8. Wait another 5 seconds, press the power button to wake up the device. Resume the app from the app slate in the world (or from the start menu if the app slate doesn't exist yet.
  9. Repeat steps 7 and 8 until the app no longer resumes and shows the spinning white balls.

Expected behavior

The application should resume without white spinning balls.

Your setup (please complete the following information)

  • Unity Version 2020.3.19
  • Unity OpenXR Package 1.2.8
  • Mixed Reality OpenXR Package 1.0.3
  • Holographic OS 20348.1018
  • OpenXR Runtime Version 107.2108.5003.0

Target platform (please complete the following information)

  • HoloLens 2

Additional context

If you run with the debugger attached when the problem occurs you will get an exception at the point you press the power button prior to seeing the white spinning balls.

Callstack (trimmed to make it more readable)
GameAssembly.dll!OpenXRLoaderBase_Internal_EndSession GameAssembly.dll!OpenXRLoaderBase_StopInternal GameAssembly.dll!OpenXRLoaderBase_ReceiveNativeEvent GameAssembly.dll!ReversePInvokeWrapper_OpenXRLoaderBase_ReceiveNativeEvent GameAssembly.dll!OpenXRLoaderBase_Internal_PumpMessageLoop GameAssembly.dll!OpenXRLoaderBase_ProcessOpenXRMessageLoop GameAssembly.dll!_ClearLastSubmittedFrame_Invoke GameAssembly.dll!BeforeRenderHelper_Invoke GameAssembly.dll!Application_InvokeOnBeforeRender GameAssembly.dll!RuntimeInvoker_FalseVoid GameAssembly.dll!il2cpp::vm::Runtime::Invoke

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions