freeze & crash (memory leak in TO-DO plugin?)
Builder freezes and crashes as it uses up all available RAM and is killed by the kernel.
Repo causing the problem: Cockpit source tree. (https://github.com/cockpit-project/cockpit/)
Builder has previously worked fine with this repo, at least a few months ago. (I haven't done dev in the tree using builder since then.)
Steps to reproduce:
- Open builder
- Clone one of the following (depending on your authentication on GitHub):
git@github.com:cockpit-project/cockpit.git
https://github.com/cockpit-project/cockpit.git
- Open any file (especially a code-related file, such as a JavaScript file)
- Builder freezes and eventually "crashes" (it's killed due to system resource issues)
- use the command
watch free
and look at "used" go up and "available" go down
- use the command
Versions of Builder affected:
- Stable release (Flatpak)
- Nightly (Flatpak)
I have reproduced this issue on another machine with the release Flatpak version of Builder as well.
I figured it might be related to indexing a bunch of files and have done the following:
-
make clean
in the repo (so compiled objects are not indexed), for debugging purposes - turned off all
Diagnostics
andCompletion
toggles in Builder - restarted Builder after the above
After turning all the code indexing off, Builder still eats RAM and crashes in the Cockpit codebase.
Taking it a step further:
- I went though all the plugins and turned every single one off, and Builder stops eating RAM.
- After toggling all the different extensions, it looks like it's a result of the TO-DO tracker extension.