Null Reference Exception Error - Dropdown bar

PHNTMbandit

New member
I get the following console error whenever I try to interact with the category attribute type dropdown bar. This happens with all the other dropdown UI elements in the inventory manager window. Can you please advise as to what I should do? Thanks


NullReferenceException: Object reference not set to an instance of an object
Opsive.Shared.Editor.UIElements.FilterWindow.Initialize (UnityEditor.EditorWindow sourceWindow, System.Type[] baseTypes, Opsive.Shared.Editor.UIElements.FilterWindow+FilterType filterType, System.String title, System.Boolean showCollectionType, System.Object selectedObject, System.Action`3[T1,T2,T3] onSelection) (at <e20ff3620c884b63aebeb990dbe62807>:0)
Opsive.Shared.Editor.UIElements.FilterWindow.ShowFilterWindow (UnityEditor.EditorWindow sourceWindow, UnityEditor.Experimental.GraphView.SearchWindowContext context, System.Type[] baseTypes, Opsive.Shared.Editor.UIElements.FilterWindow+FilterType filterType, System.String title, System.Boolean showCollectionType, System.Object selectedObject, System.Action`3[T1,T2,T3] onSelection) (at <e20ff3620c884b63aebeb990dbe62807>:0)
Opsive.Shared.Editor.UIElements.FilterWindowPopupField.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at <e20ff3620c884b63aebeb990dbe62807>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel iPanel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <3cdf672c21b849dea215f9c9aff21f77>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a8eb1be68acb4659af00824c7808e2c0>:0)
 

Attachments

  • Error.png
    Error.png
    132.2 KB · Views: 6
I'm enable to reproduce this issue, so I can't give you a straight solution.

What Unity version are you using?
Did you get any errors or warnings before getting this error?
Are you using any packages that are in preview that could somehow affect the custom ediotrs (like ToolKit UI)?
Did you try closing and reopening Unity to see if any errors/warnings were preventing something to be initialized correctly?
Can you reproduce this bug in an empty project?
 
I'm using version 2020.2.2f1
I got the following error on importing but then deleted the script GeneratedStubs then regenerated through reset default in Unit Options window
Assets\Opsive\UltimateInventorySystem\Stubs\GeneratedStubs.cs(35,70): error CS0718: 'Random': static types cannot be used as type arguments

Not using packages in preview
Also tried closing and reopening but no luck
New empty project also returned the same error
 
Also getting this error at runtime
Invalid editor window Opsive.Shared.Editor.UIElements.FilterWindow
UnityEditor.EditorApplicationLayout:FinalizePlaymodeLayout ()
 
I've just tried using Unity 2020.2.2f1 and everything worked fine.

Could double check that you are indeed using UIS v1.1.4. Unity has been having issues when updating packages from the package manager in Unity 2020.X versions. It says the package is up to date even when it is not.
When you open the UIS Editor Manager, on the Welcome tab the version is written on the bottom left.
Read the second paragraph of the release notes it has links on how to fix the issue with packages: https://opsive.com/news/ultimate-inventory-system-1-1-4-released/

If you are still having issues after that I would recommend you make a new project, perhaps using the Unity 2019.4 LTS version which is much more stable.
 
Top