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

[2017.2.1.4 Patch Release] Hololens. BoundingBoxGizmoExample. Any scene selections cause NullReferenceException #2009

Closed
jchristof opened this issue Apr 24, 2018 · 14 comments
Labels
Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens

Comments

@jchristof
Copy link

jchristof commented Apr 24, 2018

Overview

Tested in Hololens emulator
[2017.2.1.4 Patch Release] Hololens. BoundingBoxGizmoExample. Clicks on objects or empty scene space cause exceptions

Expected Behavior

Selecting an object shows a bounding box with app bar

Actual Behavior

eventData.selectedObject produces NullReferenceException

public void OnInputClicked(InputClickedEventData eventData)
        {
            if (Isinteractable(eventData.selectedObject))
            {
                InputClicked(eventData.selectedObject, eventData);
            }
        }

Steps to reproduce

New project. Load BoundingBoxGizmoExample scene. Build for Hololens. Click anywhere in the scene and observe the output window.

Unity Editor Version

Unity_2017_2.1p2

Mixed Reality Toolkit Release Version

[2017.2.1.4 Patch Release]

@jchristof jchristof changed the title [2017.2.1.4 Patch Release] Hololense. BoundingBoxGizmoExample. Any scene selections cause NullReferenceException [2017.2.1.4 Patch Release] Hololens. BoundingBoxGizmoExample. Any scene selections cause NullReferenceException Apr 24, 2018
@david-c-kline david-c-kline added Platform - HoloLens - First Gen Issues specific to Microsoft HoloLens Investigate labels Apr 24, 2018
@david-c-kline
Copy link

david-c-kline commented Apr 24, 2018

@jchristof, What version of the HoloLens OS are you running?

@jchristof
Copy link
Author

@davidkline-ms Hi David:
Windows version 14393.1358.x86fre.rs1_release.170602-2252

@cre8ivepark
Copy link
Contributor

@jchristof Does it only happen in the emulator?

@david-c-kline
Copy link

Assigning to @cre8ivepark

@david-c-kline
Copy link

@jchristof, is the code snippet you provided something you added to a script?
Thanks!

@jchristof
Copy link
Author

jchristof commented Apr 24, 2018 via email

@jchristof
Copy link
Author

jchristof commented Apr 24, 2018 via email

@david-c-kline
Copy link

found it. thanks! i'll was not seeing an exception on my flighted HoloLens. I will continue to investigate on one with the version you mentioned.

@jchristof
Copy link
Author

Thanks guys!

@david-c-kline
Copy link

I have not been able to repro this using the emulator. I recall fixing this issue for the 2017.2.1.4 release...

@jchristof, if you re-download the 2017.2.1.4 package, or try the may18_dev branch and can still reproduce the issue, please reopen it.

Thanks!
David

@david-c-kline david-c-kline added No Repro The developer couldn’t reproduce the bug and removed Investigate labels May 11, 2018
@david-c-kline
Copy link

I stand corrected.... I just saw the exception.

@david-c-kline david-c-kline reopened this May 11, 2018
@david-c-kline david-c-kline removed the No Repro The developer couldn’t reproduce the bug label May 11, 2018
@david-c-kline
Copy link

my exception is occurring in OnSourceLost, but may be related to this.

@david-c-kline
Copy link

david-c-kline commented May 11, 2018

NullReferenceException: Object reference not set to an instance of an object.
at HoloToolkit.Unity.UX.BoundingBoxGizmoHandle.OnSourceLost(SourceStateEventData eventData)
at HoloToolkit.Unity.InputModule.InputManager.<>c.<.cctor>b__123_8(ISourceStateHandler handler, BaseEventData eventData)
at UnityEngine.EventSystems.ExecuteEvents.Execute[T](GameObject target, BaseEventData eventData, EventFunction`1 functor)

@david-c-kline
Copy link

This was released in the 2017.4.0.0 release candidate

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

3 participants