Search Issue Tracker
Fixed in 11.1.0
Fixed in 7.5.2, 10.3.0
Votes
0
Found in [Package]
11.1.0
Issue ID
1290628
Regression
Yes
[URP] ScriptableRendererFeatureEditor memory leak while interacting with Forward Renderer in the Project window
How to reproduce:
1. Open the attached project named "MemoryLeakSRP"
2. Open Profiler window, on the Memory section, select Detailed
3. In the Project window open the Settings folder and select the ForwardRenderer asset
4. In the Profiler window, Click "Take Sample Playmode"
5. Observe the number of entries in the "Not Saved" -> "MonoBehaviour" category
6. In the Project window select and deselect the ForwardRenderer asset a couple of times
7. In the Profiler window, Click "Take Sample Playmode" again
8. Observe the number of entries and objects under "Not Saved" -> "MonoBehaviour"
Expected result: There are no duplicate objects that would indicate a memory leak
Actual result: Endless copies of UnityEditor.Rendering.Universal.ScriptableRendererFeatureEditor can be found suggesting a memory leak
Reproducible with: 7.3.1(2019.3.2f1), 7.5.1(2019.4.14f1), 8.2.0(2020.1.13f1), 10.1.0(2020.2.0b11), 11.0.0(2021.1.0a5)
Not reproducible with: 7.2.1(2019.3.2f1)
Could not test with: 2018.4.27f1(URP was not yet available)
Notes:
1. Steps 4 to 8 can be repeated multiple times to illustrate the continuous increase of objects under the MonoBehaviour behavior section. These objects are only cleared if the project is restarted
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
- Warnings due to obsolete Object.FindObjectsByType<T> usage and [SerializeReference] are logged when opening the Netcode for Entities setup scene
- Non-standard pointers cannot change Inspector values with arrow controls when crossing Inspector area
- No longer able to change the Toggle or Slider GameObjects' Target Graphic value and a NullReferenceException is thrown when the Target Graphic value is set to None at any point
- Blank area appears at the top of Inspector and Build Settings windows when touching and dragging downward with a Wacom tablet pen
- Buttons overlap with the tab divider in the Branch Explorer options when resizing tabs
Resolution Note (fix version 11.1.0):
Fixed in URP 11.0.0 which is available in Unity 2021.1
Resolution Note (fix version 10.3.0):
Fixed in URP 10.3.0 which is available in Unity 2020.2
Resolution Note (fix version 7.5.2):
Fixed in URP 7.5.2 which is available in Unity 2019.4