UnityRuntimeInspector icon indicating copy to clipboard operation
UnityRuntimeInspector copied to clipboard

NullReferenceException using Hierarchy Search

Open msamora-supernatural opened this issue 1 year ago • 1 comments

Description of the bug

Changes to search field did not update the view.

Reproduction steps

Search for something (one time repro)

Platform specs

Please provide the following info if this is a Unity 3D repository.

  • Unity version: 2022.3.5f1
  • Platform: Android
  • Device: Oculus Quest, XROS 50161010000000331
  • How did you download the plugin: GitHub

Additional info

Errors in the order they were reported NullReferenceException Object reference not set to an instance of an object. <00000000000000000000000000000000> RuntimeInspectorNamespace.HierarchyData.FindDataAtIndex(System.Int32 index) <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.GetDataAt(System.Int32 index) <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.RuntimeInspectorNamespace.IListViewAdapter.SetItemContent(RuntimeInspectorNamespace.RecycledListItem item) <00000000000000000000000000000000> RuntimeInspectorNamespace.RecycledListView.UpdateItemContentsBetweenIndices(System.Int32 topIndex, System.Int32 bottomIndex) <00000000000000000000000000000000> RuntimeInspectorNamespace.RecycledListView.UpdateItemsInTheList(System.Boolean updateAllVisibleItems) <00000000000000000000000000000000> UnityEngine.Events.UnityEvent'1[T0].Invoke(T0 arg0) <00000000000000000000000000000000> UnityEngine.UI.ScrollRect.LateUpdate()

ArgumentOutOfRangeException Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index <00000000000000000000000000000000> System.Collections.Generic.List'1[T].get_Item(System.Int32 index) <00000000000000000000000000000000> RuntimeInspectorNamespace.HierarchyData.FindDataAtIndex(System.Int32 index) <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.GetDataAt(System.Int32 index) <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.RuntimeInspectorNamespace.IListViewAdapter.SetItemContent(RuntimeInspectorNamespace.RecycledListItem item) <00000000000000000000000000000000> RuntimeInspectorNamespace.RecycledListView.UpdateItemContentsBetweenIndices(System.Int32 topIndex, System.Int32 bottomIndex) <00000000000000000000000000000000> RuntimeInspectorNamespace.RecycledListView.UpdateItemsInTheList(System.Boolean updateAllVisibleItems) <00000000000000000000000000000000> UnityEngine.Events.UnityEvent'1[T0].Invoke(T0 arg0) <00000000000000000000000000000000> UnityEngine.UI.ScrollRect.LateUpdate()

NullReferenceException Object reference not set to an instance of an object. <00000000000000000000000000000000> RuntimeInspectorNamespace.HierarchyField.RefreshName() <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.Update()

NullReferenceException Object reference not set to an instance of an object. <00000000000000000000000000000000> RuntimeInspectorNamespace.HierarchyField.Refresh() <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.Refresh() <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.Update()

NullReferenceException Object reference not set to an instance of an object. <00000000000000000000000000000000> RuntimeInspectorNamespace.RuntimeHierarchy.RuntimeInspectorNamespace.IListViewAdapter.OnItemClicked(RuntimeInspectorNamespace.RecycledListItem item) <00000000000000000000000000000000> UnityEngine.EventSystems.ExecuteEvents.Execute[T](UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction'1[T1] functor) <00000000000000000000000000000000> UnityEngine.XR.Interaction.Toolkit.UI.UIInputModule.ProcessPointerButton(UnityEngine.XR.Interaction.Toolkit.UI.ButtonDeltaState mouseButtonChanges, UnityEngine.EventSystems.PointerEventData eventData) <00000000000000000000000000000000> UnityEngine.XR.Interaction.Toolkit.UI.UIInputModule.ProcessTrackedDevice(UnityEngine.XR.Interaction.Toolkit.UI.TrackedDeviceModel& deviceState, System.Boolean force) <00000000000000000000000000000000> UnityEngine.XR.Interaction.Toolkit.UI.XRUIInputModule.DoProcess()

msamora-supernatural avatar Mar 20 '24 20:03 msamora-supernatural

Is the source code modified in any way that may have caused this issue? Did you register to hierarchy's GameObjectFilter? Is this issue always reproducible and does it still occur if you set Refresh Interval to 0?

yasirkula avatar Mar 20 '24 20:03 yasirkula