-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Describe the bug
On mobile platforms
An error will occur if you click or drag any object
but it does not affect the overall operation behavior
Only the command bar of the backend is prompted with an error
NullReferenceException: Object reference not set to an instance of an object.
Microsoft.MixedReality.Toolkit.Input.BaseCursor.OnPointerUp (Microsoft.MixedReality.Toolkit.Input.MixedRealityPointerEventData eventData) (at <00000000000000000000000000000000>:0)
UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1].Invoke (T1 handler, UnityEngine.EventSystems.BaseEventData eventData) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.BaseEventSystem.HandleEvent[T] (UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] eventHandler) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem.DispatchEventToGlobalListeners[T] (Microsoft.MixedReality.Toolkit.Input.BaseInputEventData baseInputEventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] eventHandler) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem.HandlePointerEvent[T] (UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] eventHandler) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem.RaisePointerUp (Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer pointer, Microsoft.MixedReality.Toolkit.Input.MixedRealityInputAction inputAction, Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource inputSource) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.BaseControllerPointer.OnDisable () (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager.RecyclePointers (Microsoft.MixedReality.Toolkit.Input.IMixedRealityInputSource inputSource) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchDeviceManager.RemoveTouchController (UnityEngine.Touch touch) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchDeviceManager.Update () (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem.Update () (at <00000000000000000000000000000000>:0)
System.Action`1[T].Invoke (T obj) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit.ExecuteOnAllServicesInOrder (System.Action`1[T] execute) (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit.UpdateAllServices () (at <00000000000000000000000000000000>:0)
Microsoft.MixedReality.Toolkit.BaseEventSystem:HandleEvent(BaseEventData, EventFunction`1)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:DispatchEventToGlobalListeners(BaseInputEventData, EventFunction`1)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:HandlePointerEvent(BaseEventData, EventFunction`1)
Microsoft.MixedReality.Toolkit.Input.MixedRealityInputSystem:RaisePointerUp(IMixedRealityPointer, MixedRealityInputAction, Handedness, IMixedRealityInputSource)
Microsoft.MixedReality.Toolkit.Input.BaseControllerPointer:OnDisable()
Microsoft.MixedReality.Toolkit.Input.BaseInputDeviceManager:RecyclePointers(IMixedRealityInputSource)
Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchDeviceManager:RemoveTouchController(Touch)
Microsoft.MixedReality.Toolkit.Input.UnityInput.UnityTouchDeviceManager:Update()
Microsoft.MixedReality.Toolkit.BaseDataProviderAccessCoreSystem:Update()
System.Action`1:Invoke(T)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:UpdateAllServices()
To reproduce
Steps to reproduce the behavior:
- Click and drag and drop the object.
- See error
Expected behavior
There should not be any prompting errors occurring
Screenshots
Your setup (please complete the following information)
- Unity Version 2020.3.30f1
- MRTK Version 2.8.2.0
- AR Foundation Version 4.1.10
- ARCore XR Plugin Version 4.1.10
- AR Subsystems Version 4.1.10
- XR Plugin Management Version 4.2.1
Target platform (please complete the following information)
- Deploying to Android (AR Foundation)
