Search Issue Tracker
Fixed in 1.6.X
Votes
0
Found in [Package]
1.1.5, 1.2.4
Issue ID
1181585
Regression
No
[Addressables] Asset reference is kept when releasing the asset with Addressables.Release
How to reproduce:
1. Open the attached project ("case_1181585-Addressables_Bug.zip")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Click the "load mat00" button (it calls Addressables.LoadAssetAsync())
5. Click the "unload mat00" button (it calls Addressables.Release()))
6. Click the "free all" button (it calls Resources.UnloadUnusedAssets())
7. Click the "list" button (it calls Resources.FindObjectsOfTypeAll<>)
Expected results: Nothing is being printed out in the console
Actual results: "find mat00" log can be seen in the console, which shows that "Resources.UnloadUnusedAssets" failed to unload the asset because Addressables still references it
Reproducible with: 2018.4.11f1, 2019.2.9f1, 2019.3.0b6, 2020.1.0a8
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 (fix version 1.6):
fixed in 1.6