Coder Social home page Coder Social logo

Comments (4)

flarb avatar flarb commented on June 3, 2024

Also just stopping the observer (commenting out the second line) gives me a similar exception, just somewhere with no callstack.

from mixedrealitytoolkit-unity.

DanHolbert avatar DanHolbert commented on June 3, 2024

Hi Ralph,

It seems like one of the MeshRenderer components (Source.GetMeshRenderers()) is somehow invalid at this point. Iā€™d put a breakpoint in UpdateRendering and inspect the renderers list.

In which of the following situations does this crash occur? in Unity, in the emulator, running the universal app on your desktop, or on a HoloLens device?

Cheers,
Dan H

From: Ralph Barbagallo [mailto:[email protected]]
Sent: Thursday, June 16, 2016 10:38 PM
To: Microsoft/HoloToolkit-Unity [email protected]
Subject: [Microsoft/HoloToolkit-Unity] Crash when disabling spatialmappingmanager's visual meshes (#62)

In my project, setting DrawVisualMeshes to false gives me an exception. In this case, I'm triggering it from a voice command where I stop the observer and stop the drawing of the meshes like so:

_spatialMM.StopObserver();
_spatialMM.DrawVisualMeshes = false;

And I get this exception:

Exception thrown: 'System.NullReferenceException' in WinRTBridge.winmd
NullReferenceException: Exception of type 'System.NullReferenceException' was thrown.
at WinRTBridge.Utils.ThrowNewNullReferenceException(String message)
at UnityEngineProxy.InternalCalls.PInvokeCalls.Renderer_Set_Custom_PropEnabled(IntPtr param_0, Boolean param_1)
at UnityEngineProxy.InternalCalls.Renderer_Set_Custom_PropEnabled(Object self, Boolean paramValue)
at HoloToolkit.Unity.SpatialMappingManager.UpdateRendering(Boolean Enable)
at GameManager.ToggleObserver(Boolean on)
at GameManager.StartPlacement()
at GUIManager.OnPlayCommnand()
at UnityEngine.Events.InvokableCall.Invoke(Object[] args)
at UnityEngine.Events.InvokableCallList.Invoke(Object[] parameters)
at HoloToolkit.Unity.KeywordManager.KeywordRecognizer_OnPhraseRecognized(PhraseRecognizedEventArgs args)
at UnityEngine.Windows.Speech.PhraseRecognizer.InvokePhraseRecognizedEvent(String text, ConfidenceLevel confidence, SemanticMeaning[] semanticMeanings, Int64 phraseStartFileTime, Int64 phraseDurationTicks)
at UnityEngine.Windows.Speech.PhraseRecognizer.$Invoke6(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: Line: 0)

ā€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/62, or mute the threadhttps://github.com/notifications/unsubscribe/AQ8k1cfJ7GIc_tOOk9oTbSM70Ommyp3Eks5qMjKkgaJpZM4I4C8J.

from mixedrealitytoolkit-unity.

flarb avatar flarb commented on June 3, 2024

This happens on device, I haven't been able to test it in the editor for a variety of reasons (we really need a system wide gesture input keyboard shortcut override as an editor script)--I'll give it a shot in the emulator, though.

from mixedrealitytoolkit-unity.

angelaHillier avatar angelaHillier commented on June 3, 2024

Thanks for reporting this issue! Pat just checked-in a fix for this:
e5fa08a

from mixedrealitytoolkit-unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.