Search Issue Tracker
Fixed
Fixed in 6000.1.0b14, 6000.2.0a8
Votes
0
Found in
6000.2.0a3
7000.0.0a35
Issue ID
UUM-97149
Regression
Yes
Changing editor theme causes InvalidOperationException
*Steps to reproduce:*
# Open any project.
# Open Preferences window > General > Editor Theme.
# Set the editor theme to a different one.
*Actual results:* General settings section disappears, InvalidOperationException error occurs.
*Expected results:* No issues.
*Reproducible with versions:* 6000.2.0a3, 6000.2.0a1
*Not reproducible with versions:* 6000.1.0b5, 6000.1.0b3, 6000.0.36f1, 2022.3.57f1
*Tested on (OS):* MacOS Sequoia 15.2
*Notes:*
* Error message:
{code:java}
InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation
UnityEngine.UIElements.VisualElement+Hierarchy.Clear () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/VisualElementHierarchy.cs:673)
UnityEngine.UIElements.VisualElement.Clear () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/VisualElementHierarchy.cs:256)
UnityEditor.SettingsWindow.ProviderChanged (UnityEditor.SettingsProvider lastSelectedProvider, UnityEditor.SettingsProvider newlySelectedProvider) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:276)
UnityEditor.SettingsTreeView.SelectionChanged (System.Collections.Generic.IList`1[T] selectedIds) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsTreeView.cs:66)
UnityEditor.SettingsTreeView.FocusSelection (System.Int32 selectedId) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsTreeView.cs:46)
UnityEditor.SettingsWindow.SelectProviderByName (System.String name, System.Boolean ignoreLastSelected) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:111)
UnityEditor.SettingsWindow.RestoreSelection () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:242)
UnityEditor.SettingsWindow.InitProviders () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:168)
UnityEditor.SettingsWindow.DrawTreeView () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Settings/SettingsWindow.cs:500)
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 /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:403)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:219){code}
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
- Code runs slower when using a cached exception instance compared to creating a new one
- Broken UI in Default Preset Add Section of "Preset Manager" window
- [iOS] The Player freezes when closing the Notification Center and quickly swiping down from top
- Crash on Texture2D:SetPixelImpl when rapidly calling Texture2D.Apply()
- Graph Lines are not rendered when using Experimental GraphView or GridBackground
Resolution Note:
Postponed port