code icon indicating copy to clipboard operation
code copied to clipboard

Significant memory leak during use

Open jeremypw opened this issue 4 years ago • 1 comments

What Happened?

System monitor indicated the memory usage of Code (flatpak) on start up was around 30Mb. After using for development for a while I noticed the memory usage was approaching 1Gb. The only extension activated was "Outline". Autosave was on.

Steps to Reproduce

  1. Start Code and note memory use
  2. Use intensively for a while
  3. Note memory use

Expected Behavior

Memory usage should only increase moderately and should mostly be recovered when documents and projects are closed.

OS Version

6.x (Odin)

Software Version

Compiled from git

Log Output

No response

Hardware Info

No response

jeremypw avatar Jan 02 '22 11:01 jeremypw

Seems to be caused by a combination of the autosave behaviour and the outline plug which causes megabytes of memory loss for every character entered (!) once it starts happening. Both things need to be active for it to start but once it starts happening disabling either of these behaviours does not stop it however.

jeremypw avatar Jan 02 '22 13:01 jeremypw