Search Issue Tracker
Fixed in 1.0.0
Votes
0
Found in [Package]
1.0.0
Issue ID
1334552
Regression
No
[2D] Multiple errors thrown on selecting Flips and Rotate Contents Tool in the Tile Palette
On selecting Flips and Rotate Contents Tool in the Tile Palette when Grid is disabled in the Scene View then it causes the editor to throw multiple errors, refer to the attached video
Steps to repro:
1. Create a new project with a 2D Template
2. Edit > Preferences > 2D > Tile Palette > Add Flips and Rotate Tool in the Deafult list
3. Hierarchy > Create > 2D Object > Tilemap > Rectangular Tilemap
4. Window > 2D > Tile Palette > Select Flips and Rotate Tool
5. Hierarchy > Grid > Inspector > Disable
6. Tile Palette > Click on > Flips and Rotate Tool
Actual Result:
Multiple errors are thrown on selecting the Flips and Rotate tool in the Tile Palette
Expected Result:
No error in the console
Note: Flips and Rotate Tool introduce in the Unity 2021.2.0a10
Reproducible in:
2021.2.0a16, 2021.2.0a10 with package version 1.0.0
Environment:
Occurring on Windows 10 & macOS 10.15.
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Tilemaps.PaintableSceneViewGrid.CellLayout () (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/PaintableSceneViewGrid.cs:299)
UnityEditor.Tilemaps.PaintableGrid.get_cellLayout () (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/PaintableGrid.cs:63)
UnityEditor.Tilemaps.FlipTool.Flip (UnityEngine.GridBrushBase+FlipAxis axis) (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/EditorTools/FlipTool.cs:25)
UnityEditor.Tilemaps.FlipXTool.OnActivated () (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/EditorTools/FlipTool.cs:89)
UnityEditor.EditorTools.EditorToolManager.set_activeTool (UnityEditor.EditorTools.EditorTool value) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.EditorTools.ToolManager.SetActiveTool (UnityEditor.EditorTools.EditorTool tool) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.Tilemaps.GridPaintPaletteWindow.DoTilemapToolbar () (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/GridPaintPaletteWindow.cs:548)
UnityEditor.Tilemaps.GridPaintPaletteWindow.OnGUI () (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/GridPaintPaletteWindow.cs:478)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.DockArea.OldOnGUI () (at <03609da0ab2f44f1b4469aa7e2ed6dad>: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 <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <3d9ce814fcb44accb4bf84d178018794>:0)
InvalidOperationException: Attempting to set the active tool from EditorTool.OnActivate or EditorTool.OnDeactivate. This is not allowed.
UnityEditor.EditorTools.EditorToolManager.set_activeTool (UnityEditor.EditorTools.EditorTool value) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.EditorTools.EditorToolManager.RestorePreviousTool () (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.EditorTools.ToolManager.RestorePreviousTool () (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.Tilemaps.FlipTool.OnToolGUI (UnityEditor.EditorWindow window) (at Library/PackageCache/com.unity.2d.tilemap@1.0.0/Editor/EditorTools/FlipTool.cs:44)
UnityEditor.EditorTools.EditorToolManager.OnToolGUI (UnityEditor.EditorWindow window) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.SceneView.DefaultHandles () (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.SceneView.OnGUI () (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <03609da0ab2f44f1b4469aa7e2ed6dad>:0)
UnityEditor.DockArea.OldOnGUI () (at <03609da0ab2f44f1b4469aa7e2ed6dad>: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 <2be794cb752d4000b163ca51b26cc1bc>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
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
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
- Incorrect warning icon and wrong message displayed in HDRP Decal Projector
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
Resolution Note (fix version 1.0.0):
A fix for this issue will be available on Unity 2021.2.0b1 and above