yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 326 forks source link

Memory leak when lots of files are changed at once #1225

Open itsmeow opened 1 year ago

itsmeow commented 1 year ago

What's the problem

If you clone https://github.com/BeeStation/BeeStation-Hornet/, then use Markdown All in One, change branches on git to one with significant changes applied, VSCode immediately uses all system memory and crashes.

What's the expected result

No memory leak when files change.

How to reproduce

  1. Clone https://github.com/BeeStation/BeeStation-Hornet/
  2. Install extension, open folder in VSCode
  3. Run git checkout HEAD~500
  4. See memory leak
itsmeow commented 1 year ago

Possible conflicting extensions: Code Spell Checker Foam

itsmeow commented 1 year ago

This was not an issue until sometime in October or later, not sure, where it started happening

yzhang-gh commented 1 year ago

Possible conflicting extensions: Code Spell Checker Foam

That's very possible as I have seen similar reports before (e.g., #423, https://github.com/foambubble/foam/issues/1068)

AaronFriel commented 4 months ago

It would be great if @yzhang-gh you could identify what might cause this feedback loop with other extensions. The issues you refer to, and the two that link to this issue, seem to identify a feedback loop that results in memory exhaustion and crashing very consistently.