Search Issue Tracker
Fixed
Fixed in 1.7.7
Votes
0
Found in [Package]
1.7.6
Issue ID
UVSB-2080
Regression
Yes
Errors when creating a node group after play mode is stopped.
*Reproducible on:*
* VS version: 1.7.6
* Unity version: 2021.2.5f1
* Platforms: Windows 10 and macOS Monterrey
*Steps to Reproduce:*
# Create a game object and attach to it a script machine with a script graph
# Create a simple debug graph and put it inside a group.
# Enter play mode
# Stop play mode (Observe that the node group disappear)
# Try to create another node group component
*Outcome Results:*
* When the user tries to create a new group component the following errors appear in the console:
{code:java}
NullReferenceException: Object reference not set to an instance of an object
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].get_groupArea () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:897)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].<HandleSelecting>b__113_4 (Unity.VisualScripting.IGraphElementWidget widget) (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:873)
System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <61774763be294c9f8e2c781f10819224>:0)
System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) (at <61774763be294c9f8e2c781f10819224>:0)
Unity.VisualScripting.GraphSelection.UnionWith (System.Collections.Generic.IEnumerable`1[T] other) (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Context/GraphSelection.cs:139)
Unity.VisualScripting.GraphSelection.Select (System.Collections.Generic.IEnumerable`1[T] items) (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Context/GraphSelection.cs:46)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].HandleSelecting () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:873)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].HandleLowPriorityInput () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:337)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:286)
Unity.VisualScripting.GraphWindow.OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Windows/GraphWindow.cs:704)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.OldOnGUI () (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <695faf76f532483db7f1d27830010336>:0)
{code}
{code:java}
NullReferenceException: Object reference not set to an instance of an object
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].get_groupArea () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:897)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].DrawOverlay () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:1508)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:272)
Unity.VisualScripting.GraphWindow.OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Windows/GraphWindow.cs:704)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.OldOnGUI () (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <34e2272108514d61a3bdf37893a34ef9>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <695faf76f532483db7f1d27830010336>:0)
{code}
{code:java}
NullReferenceException: Object reference not set to an instance of an object
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].get_groupArea () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:897)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].HandleLassoing () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:826)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].HandleLowPriorityInput () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:335)
Unity.VisualScripting.VisualScriptingCanvas`1[TGraph].OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Canvases/VisualScriptingCanvas.cs:286)
Unity.VisualScripting.GraphWindow.OnGUI () (at Library/PackageCache/com.unity.visualscripting@1.7.6/Editor/VisualScripting.Core/Windows/GraphWindow.cs:704)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEditor.DockArea.OldOnGUI () (at <3cbc70f1ae9747e88614d75932150c59>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <34e2272108514d61a3bdf37893a34ef9>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <695faf76f532483db7f1d27830010336>:0)
{code}
*Expected Results:*
* No errors should appear in the console
* The user should be able to create as many node groups as intended.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
Resolution Note (fix version 1.7.7):
Fixed in commit: 8f2a99cb5404f9240df935729e6184788f01e482