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
- “Assertion failed on expression” errors thrown when undoing Nodes creation with keyboard shortcut
- Crash on various stack traces when using Texture2D.CreateExternalTexture() while rendering
- Clicking on section text in Node Library > Context folder throws NullReferenceException errors
- Node Library window sections text in Context folder are not visible when Editor is set to Light Theme
- "Scene Depth Difference" Node has an input Port which is called Position WS, directly referring to the World Space Position, when only the View Space Position can reflect if the object's depth is below or above the Plane
Resolution Note:
Fixed by another internal issue: UUM-31915: Graphics memory usage keeps increasing with Entities Graphics