Search Issue Tracker
Won't Fix
Votes
0
Found in
6000.0.42f1
6000.1.0b10
6000.2.0a6
Issue ID
UUM-99706
Regression
Yes
Error "InvalidCastException: Specified cast is not valid." logged when adding the MemoryUsageBreakdown Element to the Hierarchy in UI Builder
Steps to reproduce:
- Open any Project
- Create a UI Document Asset in the Project Browser and open it
- In the Library choose "Project"
- Add MemoryUsageBreakdown to the Hierarchy (from UxmlTraits > Unity > Profiling > Editor)
Actual results: Error logged "InvalidCastException: Specified cast is not valid.
Unity.UI.Builder.BuilderTypedUxmlAttributeFieldFactoryBase`2[T,TFieldType].SetFieldValue (UnityEngine.UIElements.VisualElement field, System.Object attributeOwner, UnityEngine.UIElements.VisualTreeAsset uxmlDocument, UnityEngine.UIElements.UxmlAsset attributeUxmlOwner, UnityEngine.UIElements.UxmlAttributeDescription attribute, System.Object value) (at <5dbd2862425c4023bca87dde6ef44b68>:0)" is spammed in the Console
Expected results: No issues with Element
Reproducible with versions: 2023.1.0a23, 2023.1.20f1, 6000.0.42f1, 6000.1.0b10, 6000.2.0a6
Not reproducible with versions: 2022.3.60f1, 2023.1.0a22
Tested on (OS): Windows 11
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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- Crash on EnumerateDisabledKeywordsInVariantsArray or UNITY_XXH32 when rapidly saving ShaderGraph or VFXGraph changes
Resolution Note:
The MemoryUsageBreakdown element is an internal element only used by profiling tools and can only be seen in the UI Builder in internal mode. This is not meant to be added by external users.