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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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.