Search Issue Tracker
Won't Fix
Votes
2
Found in [Package]
1.0.0
Issue ID
ECSB-539
Regression
No
Memory leak occurs in Play Mode when a GameObject is in a Sub Scene
How to reproduce:
1. Open the “UCG_DOTS“ project
2. Change “Leak Detection Level” to “Enabled With Stack Trace” (Edit > Preferences > Jobs)
3. Open the “SampleScene”
4. Enter Play mode and observe the Console
How to reproduce in new project:
1. Create a new project with the “3D Core” template
2. Add the Entities Package (Window > Package Manager > Unity Registry)
3. Wait until Burst compiles all libraries
4. Change “Leak Detection Level” to “Enabled With Stack Trace” (Edit > Preferences > Jobs)
5. Create a new Sub Scene (right-click in Hierarchy > New Sub Scene > Empty Scene)
6. Add a Cube GameObject in the Sub Scene (right-click on Sub Scene > GameObject > 3D Object > Cube)
7. Enter Play Mode and observe the Console
Expected result: no messages about memory leaks are logged
Actual result: “Found 4 leak(s) from callstack:” messages are logged
Reproduced with: 1.0.8, 1.0.11 (2022.3.5f1)
Reproduced on: Windows 11
Notes:
1. Could not reproduce in Player
2. Memory consumption is about 3 Gb in Play Mode while in Player memory consumption is about 300 Mb
3. Full memory leak message can be found in internal comments
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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
Resolution Note:
Do not observe the memory leak problem with Entities package 1.2. I believe the memory leak issue has been fixed in Entities 1.2.