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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Resolution Note (fix version 1.0.X - Entities):
https://github.cds.internal.unity3d.com/unity/dots/pull/9547