Search Issue Tracker
Fixed
Votes
2
Found in [Package]
1.0.0
Issue ID
ECSB-236
Regression
Yes
[Entities] Memory leak when spawning entities
Steps to reproduce:
1. Open the attached “EntityGraphicsBug” project
2. Open the “SampleScene” scene
3. Enter Play Mode
4. Press “1” on the keyboard
5. Observe the Task Manager
Expected result: The memory stays the same
Actual result: The memory leaks
Reproducible with: 1.0.0-pre.44 (2022.2.11f1), 1.0.0-pre.65 (2022.2.11f1, 2023.1.0b8, 2023.2.0a6)
Not reproducible with: 1.0.0-pre.15 (2022.2.11f1)
Could not test with: 1.0.0-pre.65 (2020.3.46f1, 2021.3.21f1) (Entities Graphics package requires 2022.1+ Editor version)
Reproduced on: Windows 11 (Intel)
Not reproduced on: macOS Monterey 12.2 (Intel)
Notes:
- Adding “public void OnCreate(ref SystemState state) { throw new System.NotImplementedException(); }” to SimpleMoveSystem and PrefabSpawnerSystem scripts fixes the issue and throws “NotImplementedException: The method or operation is not implemented.” error in the Console
- Comparing before and after memory leak snapshots in Memory Profiler indicates that memory usage climbs in GfxDeviceClient
- The issue is reproducible in both Editor and in a build
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
- Memory leaks occur when Shader with more than 128 keywords is compiled
- Player built for Windows silently crashes when UI Prefab is instantiated and Render Feature "Render Objects" is active in PC_Renderer Asset
- Crash on CollectUsedSceneObjects when making any modifications and saving in a Scene with a specific GameObject Component enabled
- VFX Graph Properties Transform has a click animation when clicked on the “Transform” text but the drop down does not open
- "Cascade Shadow atlasing has failed" errors are spammed when two Directional Lights with the Shadow Map are enabled and there is a 3D GameObject in the scene
Resolution Note:
Fixed by another internal issue: UUM-31915: Graphics memory usage keeps increasing with Entities Graphics