Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2018.4
2020.2.0b2
2021.1
Issue ID
1280162
Regression
No
'Hidden/Preview Transparent' Materials uses additional memory each time when Scripts are reimported with the Profiler open
How to reproduce:
1. Create a new project
2. Open the Profiler window (Window -> Analysis -> Profiler)
3. Change the Profiler Modules so that only the 'Memory' Module is displayed
4. Create a new Script in the Project window
5. Right-click on the newly created Script and select 'Reimport'
6. Switch to 'Detailed' information type in the Profiler instead of 'Simple'
7. In the Profiler window press 'Take Sample Playmode' or 'Take Sample Editor'
8. Expand 'Scene Memory' -> 'Material'
Expected result: 'Hidden/Preview Transparent' did not use any additional memory after reimporting the Script
Actual result: one (2018.4) or three (2019.4+) additional instances of 'Hidden/Preview Transparent'' each used 1.2 KB or 1.1 KB of memory
Reproducible with: 2018.4.29f1, 2019.4.15f1, 2020.1.14f1, 2020.2.0b11, 2021.1.0a5
Notes:
The issue does not occur when reimporting Scripts while the Profiler window is closed since reopening the Editor. If the Profiler is opened and closed, the issue reproduces again
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
- 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
Peter77
Sep 25, 2020 21:16
Related forum thread:
https://forum.unity.com/threads/case-1280162-hidden-preview-transparent-material-leak.976179/