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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 0.20):
Fixed in next Entities release