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
- Crash when trying to force Shader to interpret 1/30 as a floating point operation
- Terrain is flickering when adjusting "Compatibility Mode" and "Use Rendering Layers" Settings
- Isometric tiles are flickering and overlapping each other when entering Play Mode with Tilemap Renderer mode set to "Chunk"
- Crash on ParticleSystemParticles::array_reserve when particle system starts
- Docking Text Property Preview Window next to UI Builder breaks the window and causes NullReferenceException
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