Search Issue Tracker
Fixed in 4.10.0, 5.10.0, 6.0.0
Votes
0
Found in [Package]
4.6.0
Issue ID
1116478
Regression
No
Null Reference Exception in UI elements when switching VFX graph
Repro:
- download attached project
- keep the VFX Editor docked as is in the project
- open the Portal VFX graph
- switch to scene view
- then go to the UnityLogog folder and open the UnityLogo VFX graph
- notice the console getting spammed by these errors:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.VFX.UI.VFXEditableDataAnchor.OnAttachToPanel (UnityEngine.Experimental.UIElements.AttachToPanelEvent e) (at Library/PackageCache/com.unity.visualeffectgraph@4.6.0-preview/Editor/GraphView/Elements/VFXEditableDataAnchor.cs:126)
UnityEngine.Experimental.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/Events/EventCallback.cs:62)
UnityEngine.Experimental.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/Events/EventCallbackRegistry.cs:376)
UnityEngine.Experimental.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/Events/EventHandler.cs:112)
UnityEngine.Experimental.UIElements.EventDispatcher.PropagateEvent (UnityEngine.Experimental.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:754)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:639)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEventQueue () (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:386)
UnityEngine.Experimental.UIElements.EventDispatcher.OpenGate () (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:351)
UnityEngine.Experimental.UIElements.EventDispatcher+Gate.Dispose () (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:75)
UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:412)
UnityEngine.Experimental.UIElements.EventDispatcher.Dispatch (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:307)
UnityEngine.Experimental.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.Experimental.UIElements.EventBase e, UnityEngine.Experimental.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:176)
UnityEngine.Experimental.UIElements.UIElementsUtility.DoDispatch (UnityEngine.Experimental.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:245)
UnityEngine.Experimental.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:68)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
Note: this issue MAY affect 2019.1 and 2019.2, but because of this bug: https://fogbugz.unity3d.com/f/cases/1116430 i cannot verify this. I will check once this other issue gets fixed!
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment