Search Issue Tracker
Won't Fix
Votes
0
Found in
5.1.2p2
Issue ID
726384
Regression
No
Prefab references of a monobehaviour are not being cleaned up when the monobehaviour is destroyed
Steps to reproduce:
1. Play the Test scene
2. Using the Unity Profiler>Memory>Detailed view take a Sample
3. Notice in the Assets>Texture view the test_asset is loaded into memory
4. In the game view press the "Destroy" UI button
5. Press the UnloadUnusedAssets button
6. Using the Unity Profiler>Memory>Detailed view take a Sample
Observe: The test_asset is still loaded into memory
Workaround:
Set reference to null(click the 't.prefab=null' button) before unloading the asset.
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
- Crash on JobQueue::HasJobGroupIDCompleted when closing the Editor while in Play mode on a specific project
- In "Preferences" section the “SpriteShape” menu item, the details page title “SpriteShape”, and “ControlPoint” entries are displayed as code strings rather than formatted UI strings
- Errors thrown constantly when Virtual Offset Debug is enabled and lighting was baked on AMD machine
- Persistent Memory Leak when reloading domain and using Distance-based Ghost Importance
- HDRP project doesn't render in standalone player when using High stripping
Resolution Note (2019.1.X):
Hi there,
We really appreciate your contribution to the Unity product. Thank you for reporting this issue. We take every case submitted to us seriously by investigating the impact on you, our customer, as well as the impact it may have on the engineering and experience of our product.
This particular case has been investigated thoroughly and we have decided, 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. We understand that this will cause problems for some users, and so may address in a future version.
Unity QA Team