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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note (fix version 1.6):
fixed in 1.6