Search Issue Tracker
Fixed in 0.20.X
Votes
0
Found in [Package]
?
Issue ID
1342045
Regression
No
When exiting playmode blobs leak memory
It seems like BlobAssets converted in subscene memory are never released after exiting playmode.
Slack: https://unity.slack.com/archives/CE7DZN2H1/p1622552595116600
Repro Steps:
1. Switch dots repo branch too https://github.cds.internal.unity3d.com/unity/dots/tree/bug/blob-leak.
2. In dots repository open sample project EntitiesSamples.
3. Open scene Avanced/BlobAssetScalable/BlobAssets.unity.
4. Open profiler and click memory section.
5. Click Take Sample PlayMode.
6. Check current memory usage in item Other/NativeArray.
7. Enter/Exit playmode ~3 times.
Expected Results: Memory did not changed much
Actual Results: Memory spiked quite a lot (Each playmode entering should increase memory by 800mb)
https://github.cds.internal.unity3d.com/unity/dots/tree/bug/blob-leak
Version: 2020.3.12f1-dots.558.2020.3/partner/staging.299
Entities Package Revision: Master(24ce193cb4a46e5a5a53da2654a8d1b50005354a), 0.17.0-preview.42
Comments (1)
-
Zec_
Aug 26, 2021 22:22
For those who stumble upon this issue report and want a fix before 0.20, here's a forum post from me on what I found out the issue to be and the solution I found.
https://forum.unity.com/threads/fix-included-subscenes-leak-their-loaded-blobassets-when-disposing-worlds.1162199/A disclaimer is that I am not a Unity employee so this isn't validated or anything, I'm just a regular customer who dug my way to the root of the issue.
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 0.20):
Fixed in next Entities release