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
- Assigned font's bold/font-weight styles render using Default Font's assets when Default Font has corresponding style assets defined in TMP Settings
- "Modifying the parent of a VisualElement while it’s already being modified is not allowed" error is thrown when entering text and pressing tab in the Search window
- Mesh colliders are not updating their positions of bounds correctly
- Images are missing from the "Open the sprite editor" documentation for 6.0, 6.1 and 6.2
- The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT
Resolution Note (fix version 1.0.X - Entities):
https://github.cds.internal.unity3d.com/unity/dots/pull/9547