Search Issue Tracker
Fixed in 2021.1.X
Votes
0
Found in
2018.4
2018.4.25f1
2020.2
Issue ID
1264725
Regression
No
Memory usage of Logging remains high when the error messages in the Console are cleared
How to reproduce:
1. Open the attached project "1264725.zip"
2. Open the "Test" Scene
3. In the Profiler window enable "Profile Editor", select memory module, switch to "Detailed" mode and click "Take Sample Editor"
4. Enter the Play Mode
5. Wait for 1-2 minutes and click "Take Sample Editor" again
6. Pause the Play Mode, clear the Console window (by clicking "Clear") and click "Take Sample Editor" again
Expected result: after clearing the Console, memory usage of Logging (Other > Logging) dropped to the one seen in 3-rd step
Actual result: after clearing the Console, memory usage dropped a bit but remained high (~30MB)
Reproducible with: 2018.4.26f1, 2019.4.6f1, 2020.1.0f1, 2020.2.0a19
Notes:
- The more memory is used by the Logging before clearing the Console the more of it is left after clearing (as an example if ~1.5GB memory is used before the Console is cleared, ~400MB will still be used after clearing)
- Tested and reproduced on Windows and MacOS
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
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
- [UaaL] Freeze on "GetLightingSettingsOrDefaultsFallback()" when rotating device screen after unloading Unity framework
- A white vertical artifact is present when any Material from HDRI is used for a panoramic skybox
- Editor freezes when handling Havok collision interactions between a thin collider and the player controller
- No blue outline is shown on a folder in the Project tab when an external file is being dragged over the folder
Resolution Note (fix version 2021.1):
Clearing the editor console will now properly release memory that it had allocated to display messages. The issue has been fixed and should no longer reproduce in Unity 2021.1.0a6 and above.