Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FadeManager Assertion Failed on Holographic remoting #1790

Closed
cre8ivepark opened this issue Mar 4, 2018 · 1 comment
Closed

FadeManager Assertion Failed on Holographic remoting #1790

cre8ivepark opened this issue Mar 4, 2018 · 1 comment
Assignees
Labels
Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens

Comments

@cre8ivepark
Copy link
Contributor

cre8ivepark commented Mar 4, 2018

Overview

Unity's Holographic Emulation(Remote to device) generates assertion error on game mode start and pause. It seems like HoloLens device type is not checked in Holographic emulation mode.

Console message

Assertion failed: The FadeManager singleton has not been initialized.
UnityEngine.Debug:Assert(Boolean, String)
MixedRealityToolkit.Common.Singleton`1:AssertIsInitialized() (at Assets/MixedRealityToolkit/Common/Scripts/Singleton.cs:62)
MixedRealityToolkit.InputModule.MixedRealityTeleport:Start() (at Assets/MixedRealityToolkit/InputModule/Scripts/MixedRealityTeleport.cs:90)

Related code area

In MixedRealityTeleport.cs

    private void Start()
    {
        FadeManager.AssertIsInitialized(); // Fails on Holographic remoting
        fadeControl = FadeManager.Instance;

Expected Behavior

No assertion failed message, no pause.

Actual Behavior

Assertion failed message and pause. You can continue to use remoting mode by clicking the pause button.

Steps to reproduce

  • Window > Holographic Emulation
  • Set Emulation mode 'Remote to Device'
  • Enter IP and connect to HoloLens. (HoloLens remoting player ready on device)
  • Hit Play button in Unity (game mode)
  • FadeManager assertion fail message shows up in the console and game mode pauses.

Unity Editor Version

2017.2.1f

Mixed Reality Toolkit Release Version

Dev_Working_Branch. Didn't test on master branch.

@StephenHodgson StephenHodgson added Bug Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens labels Mar 4, 2018
@veative
Copy link

veative commented Mar 8, 2018

Hi,
if you are using hololens then comment this code.
// FadeManager.AssertIsInitialized();

       // fadeControl = FadeManager.Instance;

        // If our FadeManager is missing, or if we're on the HoloLens
        // Remove this component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens
Projects
None yet
Development

No branches or pull requests

5 participants