Comments (4)
Also just stopping the observer (commenting out the second line) gives me a similar exception, just somewhere with no callstack.
from mixedrealitytoolkit-unity.
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.
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.
Thanks for reporting this issue! Pat just checked-in a fix for this:
e5fa08a
from mixedrealitytoolkit-unity.
Related Issues (20)
- RegisteredServiceProvider HOT 1
- Object Instantiated inside GridObjectCollection of ScrollingObjectCollection with opposite rotation HOT 1
- Screen cant move with my head HOT 1
- Sample Scene Issues HOT 2
- Apply settings MRTK gives error about menu in mixed reality/project/apply HOT 5
- Pointers disappear when the scale of a gameObject with a "NearInteractionTouchableUnityUI" is zero HOT 4
- Tracking Lost Service is not behaving correctly HOT 5
- Object Manipulator with XR Socket Interactor HOT 2
- Controllers, Hands and Passthrough not working on MKRT2 when using OpenXR on Quest HOT 2
- Extended Delay in Launching Hololens Application HOT 1
- Unable to get MRTK Toolbox HOT 1
- Interactive Ability between Python Script and Unity HOT 1
- Lighting Scene is not taking effect in Scene system HOT 1
- Eye Tracking not working when enabled HOT 1
- Vertical FOV drop makes CameraFOVChecker.cs result incorrect HOT 1
- How to access Events "OnToggled" and "OnUntoggled" of a PressableButton? HOT 1
- PressableButton creates glow only for left hand HOT 1
- The self-built app deployment was successful, but it failed to run on the HoloLens 2. HOT 1
- mrtk3 bug HOT 2
- Mixed Reality Feature Tool crash when click start HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mixedrealitytoolkit-unity.