microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

The EyeTrackingDemo-03-Navigation scene generates several errors #8531

Closed elbuhofantasma closed 9 months ago

elbuhofantasma commented 4 years ago

Issue description When using the Unity in-editor player to load the EyeTrackingDemo-03-Navigation scene, several errors are generated.

Steps to reproduce

  1. Clone a fresh copy of the prerelease/2.5.0_stabilization branch.
  2. Open the fresh clone in Unity 2019.4.9f1.
  3. Import TMP Essentials.
  4. Open the EyeTrackingDemo-03-Navigation scene and press the play button to use the in-editor player.
  5. Navigate to the Unity console and observe the generated Errors.

Unity version 2019.4.9f1 Platform Standalone Devices connected No devices were connected to the machine.

PressableButton (2) NullReferenceException pressablebuttonnullreferenceexception

NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.MixedReality.Toolkit.UI.Interactable.ResolveInputAction (System.Int32 index) [0x00001] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:1160 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.Initialize () [0x0001f] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:758 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.EnsureInitialized () [0x00016] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:743 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.Awake () [0x00001] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:616 

(Filename: Assets/MRTK/SDK/Features/UX/Interactable/Scripts/Interactable.cs Line: 1160)

ToggleProfileButton NullRefereceException toggleprofilebuttonnullreferenceexception

NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.MixedReality.Toolkit.UI.Interactable.ResolveInputAction (System.Int32 index) [0x00001] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:1160 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.Initialize () [0x0001f] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:758 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.EnsureInitialized () [0x00016] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:743 
  at Microsoft.MixedReality.Toolkit.UI.Interactable.Awake () [0x00001] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\SDK\Features\UX\Interactable\Scripts\Interactable.cs:616 

(Filename: Assets/MRTK/SDK/Features/UX/Interactable/Scripts/Interactable.cs Line: 1160)

Assertion failed contentassertionfailed

Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize:            126.371 ms
    Integration:            112.949 ms
    Integration of assets:  0.080 ms
    Thread Wait Time:       11.856 ms
    Total Operation Time:   251.256 ms
Assertion failed
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object, Object)
UnityEngine.Debug:Assert(Boolean, Object)
Microsoft.MixedReality.Toolkit.Input.Utilities.CanvasUtility:Start() (at Assets\MRTK\Services\InputSystem\Utilities\CanvasUtility.cs:43)

(Filename: Assets/MRTK/Services/InputSystem/Utilities/CanvasUtility.cs Line: 43)

No EventSystem detected noeventsystemdetected

No EventSystem detected. UI events will not be propagated to Unity UI.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Microsoft.MixedReality.Toolkit.Input.Utilities.CanvasUtility:Start() (at Assets\MRTK\Services\InputSystem\Utilities\CanvasUtility.cs:48)

(Filename: Assets/MRTK/Services/InputSystem/Utilities/CanvasUtility.cs Line: 48)

EyeTrackingDemos ManagerComponents eytracjubgnabagercompnullreferenceexception

NullReferenceException: Object reference not set to an instance of an object
  at Microsoft.MixedReality.Toolkit.Examples.Demos.EyeTracking.LoadProfilesOnStartup.Start () [0x00001] in D:\unity\8508\MixedRealityToolkit-Unity\Assets\MRTK\Examples\Demos\EyeTracking\General\Scripts\Utils\LoadProfilesOnStartup.cs:20 

(Filename: Assets/MRTK/Examples/Demos/EyeTracking/General/Scripts/Utils/LoadProfilesOnStartup.cs Line: 20)
keveleigh commented 4 years ago

To clarify, since I don't think I saw this in your steps, the eye tracking samples have specific set-up instructions, mostly around loading the root 00 scene first, and loading the other scenes additively:

https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/EyeTracking/EyeTracking_ExamplesOverview.html#setting-up-the-mrtk-eye-tracking-samples

stale[bot] commented 2 years ago

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!