documentation

HoloLens Additional Features

Level: Basic

Finding Problems During Runtime

Troubleshooting problems becomes difficult after an application is deployed to HoloLens. The VisionLib SDK log messages can help by pointing you in the right direction. To see the log messages, you can start the application on the HoloLens with the Visual Studio debugger. The messages will then be shown in the Visual Studio "Output" window. To be able to see the log messages after deploying with IL2CPP, you must deploy a Debug build via Visual Studio.

Alternatively, you can view the log messages in the HoloLens Web Portal under "Logging". To activate this, you must select the "Microsoft-Windows-Diagnostics-LoggingChannel" provider (See image below). The log messages of the VisionLib SDK will then appear in the "Events" section.

HoloLens Live View With Miracast

Many users noticed that the live preview of the HoloLens in the HoloLens web portal is unavailable when using the VisionLib SDK. This is because the web portal's live preview requires exclusive camera access. Despite this conflict, you can still take pictures or record videos via the web portal.

The October Update 2018 (version 1809) introduced the option to stream the camera images to a Miracast device that is also running at least version 1809. This provides an alternative to the web interface that allows you to preview the camera stream (including augmented virtual content) while using VisionLib.

To enable streaming onto a Miracast device:

  • Important: Stop any existing miracast connections before starting the application.
  • Start your application
  • In the application, use the bloom gesture (HoloLens 1) or the menu button (HoloLens 2) to switch to the intermediate menu shown below.
  • Press the rightmost button. This opens a sub-menu where you can establish a connection to a miracast device.
  • Select a device in this list. This starts streaming immediately.
  • When exiting: Even if you leave the application via the bloom gesture/menu button (and selecting home), you must stop your miracast connection first. Otherwise, there will be two processes competing for the camera and the next miracast connection will be corrupted. Then only a restart of the HoloLens can resolve this problem.