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
- Bad performance when executing the Physics.IgnoreCollisions() method while in Play Mode
- Sprite Editor has a thicker separator between buttons when "Sprite Editor" option is selected
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown when UpdateVolumeStack function is called
- [Windows] Unicode custom text input window shows question marks when inserting an emoji
- Memory leak when the VFX Graph Editor is open
Add comment