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
- Palette Settings link to the documentation isn’t working
- Tags & Layers window has inconsistent remove button behaviour between Tags, Sorting Layers, and Rendering Layers when there are no removable items in the list
- "Type Options" and "Node Library" dropdowns do not open when clicked on the title
- Public char variables uneditable in Inspector when project setting "Use IMGUI Default Inspector" is enabled
- IAP Listener component’s list titles go out of bounds when resizing the Inspector window horizontally
Resolution Note (fix version 0.20):
Fixed in next Entities release