Search Issue Tracker
Fixed
Fixed in 1.0.X - Entities, 1.1.0 - Entities
Votes
1
Found in [Package]
1.0.0
Issue ID
ECSB-486
Regression
No
Memory is leaked in Play Mode when URP and Netcode for Entities are used in project
How to reproduce:
1. Open the “Entities_URP_Memory_Leak“ project
2. Open the “SampleScene”
3. Make sure “Leak Detection Level” is set to “Enabled With Stack Trace” (Edit > Preferences > Jobs)
4. Enter Play Mode
5. Observe the Console
How to reproduce in new project:
1. Create a new project with the “3D (URP)” template
2. Make sure “Leak Detection Level” is set to “Enabled With Stack Trace” (Edit > Preferences > Jobs)
3. Add Netcode for Entities Package (Window > Package Manager > Unity Registry)
4. Enter Play Mode
5. Observe the Console
Expected result: no messages about memory leaks are logged
Actual result: multiple “Found 1 leak(s) from callstack“ messages are logged
Reproduced with: 1.0.8 (2022.3.2f1), 1.0.10 (2022.3.2f1)
Reproduced on: Windows 10 (by reporter), Windows 11
Notes:
1. All leak messages are attached in “Messages.txt”
2. Reproduce when Rendering Path in Universal Render Data is set to “Forward” or “Forward+” or “Deferred”
3. Reproduce only when Netcode for Entities Package is present in the project
4. Sometimes leaks are detected only after entering Play Mode for the second time
5. Could not reproduce in Player → nothing is logged about memory leaks
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 1.0.X - Entities):
https://github.cds.internal.unity3d.com/unity/dots/pull/9547