Search Issue Tracker
Fixed
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
- Long Property names are not truncated in the Add Property dropdown in the Animation window when the Long Property name does not fit
- [iOS] High CPU load when device keyboard is open
- Selected Animation clip in the Animation window changes when the Domain Reload is triggered
- Animation window scrollbar keeps resetting when the scrollbar width is changed after adding an event
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
Resolution Note:
https://github.cds.internal.unity3d.com/unity/dots/pull/9547