focus-editor / focus

A simple and fast text editor
GNU General Public License v3.0
1.82k stars 99 forks source link

Memory leak on launch #341

Closed EverCursed closed 7 months ago

EverCursed commented 7 months ago

Describe the bug Random memory leak. This happens without an open project. Just opening Focus is enough for memory usage to gradually increase.

To Reproduce Don't really have a useful way to reproduce this.

  1. Run Focus
  2. Watch memory usage increase in task manager

Expected behavior No memory leak

Screenshots This is a run with Sleepy attached to the process. The profiler capture was about 20 seconds. image

image

Additional context It may coincide with the company antivirus spinning up when focus is running, but I can't determine which causes which (Focus makes antivirus freak out, or antivirus slows something in Focus, causing some issue).

EverCursed commented 7 months ago

Looks like this was my mistake. When changing the global config, I cut out a portion of a workspace path, and it ended up scanning a ~25gb directory.