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