Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2022.1.0b8
Issue ID
1403049
Regression
Yes
Editor crashes after deleting a material variant which has a child variant sometimes resulting in a large memory leak
Reproduction steps:
1. Create a new project
2. Create a Material
3. Create a variant of that Material
4. Create a variant of that Material variant
5. Delete the middle Material variant (child to original) with "Delete Only": this will not reparent the child
Expected result: the Material variant gets deleted, an error indicating that a Material variant has no parent is thrown
Actual result: the Material variant gets deleted, Editor starts leaking memory, then crashes (the memory leak results in different behaviours further described in notes below (1-4))
Reproducible with: 2022.1.0b8, 2022.2.0a5
Not reproducible with: 2022.1.0b7
Could not test with 2019.3.36f1, 2020.3.29f1, 2021.2.12f1 (no option to create Material variant)
Notes:
1. Sometimes a window appears when the Editor is using up the RAM called: Inspector.InitOrRebuild.
2. Sometimes the leak starts taking up all RAM available and it takes around 1 minute for RAM to be used up completely before the crash (in 64GB system, ~44GB allocated to Unity). I was able to reproduce this behaviour only once.
3. Sometimes the process gets stuck and all the available RAM will not be used but the Editor does not break out of this loop without external monitoring software that is able to force quit the application.
4. Sometimes the crash is almost instantaneous and the RAM does not get used up at all.
5. The issue is reproducible with SRP materials as well (tested HDRP Template with HDRP Lit)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
- Warning 'Unable to find player assmebly' is thrown when building some Project Templates
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
Add comment