Search Issue Tracker
Won't Fix
Votes
3
Found in
2017.3.0f3
Issue ID
1000808
Regression
No
Assets are unloaded if OnValidate is used it to set a field on another component
Reproduction steps:
1. Open the attached project "GarbageCollectionBugs.zip";
2. Open the Example.unity scene;
3. Use Window -> Profiler to open the Profiler window;
4. Make sure there is a Memory Profiler, if there isn't, add one using the "Add Profiler" button;
5. Switch "Simple" to "Detailed";
6. Click "Take Sample: Editor";
7. Unfold "Assets", and under that, unfold "Sprite". There should be one sprite under that named "Cat";
8. Now use File->New Scene to create a new scene;
9. Click "Take Sample: Editor" again.
Expected results: "Cat" sprite should no longer show up in the Memory Profiler;
Actual results: "Cat" sprite is still present in memory and thus still shows up in the Memory Profiler.
Reproduced on: 2017.1.3p1, 2017.2.1p4, 2017.3.1p1, 2018.1.0b7, 2018.2.0a1.
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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Resolution Note:
This particular case has been investigated thoroughly and in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being.