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
- Localization Group Rules bypasses Locale logic when SharedGroup asset provided
- UI Toolkit World UI Text Field unfocuses immediately when clicking on it using XR Controller
- Crash on CallWindowProcW when entering Play mode for the second time and running the Editor in the background while using System.Windows.Forms functions
- 2D Freeform Light shadows disappear when light center is offset from shape bounds
- Crash on MarkAllDependencies when opening scenes with Assets from the YarnSpinner package
Resolution Note (fix version 0.20):
Fixed in next Entities release