Search Issue Tracker

Active

Under Consideration for 1.1.X

Votes

0

Found in [Package]

1.1.6

Issue ID

PROFB-344

Regression

No

Visual Elements are not garbage collected when using clear() on parent object

Package: Memory Profiler

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
4. Open Memory Profiler (Window > Analysis > Memory Profiler)
5. Click “Capture”
6. Select the captured snapshot
7. Open “All Of Memory” tab
8. Click on any object under Managed > Managed Objects > UnityEngine.UIElements.VisualElement
9. On the right side of the Memory Profiler window, observe the text under “Help”

Expected result: GCHandle is reported
Actual result: Text “There is no reference pointing to this object and no GCHandle reported for it. This is a Bug, please report it using 'Help > Report a Bug' and attach the snapshot to the report.“ is present

Reproducible with: 1.1.6 (6000.3.0a1, 6000.1.9f1)
Could not test with: 1.1.6 (2022.3.62f1, 6000.0.51f1) (Assets\Scripts\Main\UIDisplay\VisualElements\InfographicPanel.cs(11,63): error CS0117: 'Color' does not contain a definition for 'gray1')

Reproducible on:
Play Mode

Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.