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

Scene Transition Service "BeginSample / EndSample" errors #10460

Closed thePostFuturist closed 9 months ago

thePostFuturist commented 2 years ago

Using

       IMixedRealitySceneSystem sceneSystem = MixedRealityToolkit.Instance.GetService<IMixedRealitySceneSystem>();

            await sceneSystem.LoadContent(sceneName);

getting:

Non matching Profiler.EndSample (BeginSample and EndSample count must match): [MRTK] MixedRealitySceneSystem.LoadScenesInternal
Previous 5 samples:
    Mono.JIT
    [MRTK] MixedRealitySceneSystem.InvokeLoadedActions
    GC.Alloc
    Mono.JIT
    GC.Alloc
In the scope:
    UnityEngine.CoreModule.dll!UnityEngine::UnitySynchronizationContext.ExecuteTasks()
    Update.ScriptRunDelayedTasks
    PlayerLoop
    Main Thread

happens every time. The scene does load, not sure how benign this is.

Oculus Runtime Utilities Running in Editor

david-c-kline commented 2 years ago

Investigate the profiler markers. Should use using(...) instead of Begin/End

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 visithttps://www.mixedrealitytoolkit.org.

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