Search Issue Tracker
Fixed
Fixed in 6000.0.57f1, 6000.1.15f1, 6000.2.1f1, 6000.3.0a4
Votes
0
Found in
2021.3.53f1
2022.3.64f1
6000.0.52f1
6000.1.9f1
6000.2.0b8
6000.3.0a1
Issue ID
UUM-110303
Regression
No
VisualTreeAsset has significantly increased memory allocation size at runtime when the project is built with IL2CPP scripting backend
How to reproduce:
1. Open the attached “IN-106073” project
2. In the toolbar, navigate to Edit > Project Settings…
3. Select the “Player” tab
4. Find “Scripting Backend” and make sure it is set to “IL2CPP”
5. In the toolbar, navigate to File > Build Profiles
6. Make sure “Windows” platform is selected and “Development Build” is toggled on
7. Build and run the project
8. Wait for the Player to start
9. In the Editor's toolbar, navigate to Window > Analysis > Memory Profiler
10. In the Memory Profiler window, control bar, change the target from the Editor to the Player
11. Capture a snapshot
12. Select the newly created snapshot
13. Select the Unity Objects tab
14. In the search bar, enter “VisualTreeAsset”
15. Expand the “ScriptableObject” and “UnityEngine.UIElements.VisualTreeAsset” items
16. Observe the Allocated Size of the three elements under “UnityEngine.UIElements.VisualTreeAsset”
Expected result: All elements have the same size (~500 B)
Actual result: One of the elements has inflated size (~136 KB)
Reproducible with: 2021.3.53f1, 2022.1.0a8, 2022.3.64f1, 6000.0.52f1, 6000.1.9f1, 6000.2.0b8, 6000.3.0a1
Couldn’t test with: 2022.1.0a1, 2022.1.0a7 (Couldn’t connect Player to the Memory Profiler)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Does not reproduce when “Scripting Backend” is set to “Mono”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
- Rich Text is not correctly highlighted when searching through Debug Logs in the Console window
Add comment