Open sompylasar opened 5 years ago
Thanks for the report @sompylasar - some questions for you:
atom -v
)?@rsese I'm sorry for not posting Atom version (please see below). I posted the question this way for the reason that maybe you could track the issue from the bottom up from the code instead of trying to reproduce it.
The reproduction is very unclear, I can only see when it has already happened, but not what leads to it. It happens regularly while I'm working (writing code, committing).
I suppose something within git-utils
or its caller goes into an infinite loop (potentially async infinite loop), maybe it's something special about the filesystem structure Atom has to deal with (which I cannot share easily), but it doesn't look anything special to me. I'm working on a Node.js project with node_modules
and a data
folder with both many files in a 3-level-deep structure, and some big files at the top; both are .gitignore
d. Also a few similar projects are open in the background (they have no or much less data files), but I usually work with just that one when the issue happens.
There's also atom-ternjs
server running in the background which for some reason crashes regularly (not sure if it's related, this only seems to happen when I quickly edit the code and it gets overwhelmed with requests).
When I kill the Atom Helper
process which eats CPU, the Atom window with this project shows it has crashed and offers to reload the window. After I've killed the helper the CPU is no longer occupied.
I'll try to pay attention to what triggers it, but I'd appreciate if you could review the code with a fresh look, maybe you'll spot something suspicious that may cause this behavior.
Thanks again for your attention!
atom -v
Atom : 1.33.0
Electron: 2.0.11
Chrome : 61.0.3163.100
Node : 8.9.3
apm -v
apm 2.1.2
npm 6.2.0
node 8.9.3 x64
atom 1.33.0
python 2.7.15
git 2.14.3
For the sake of experiment, I've just disabled git-related git-blame
and git-time-machine
packages that I don't need now to see how it goes without them.
I have to do my work but I don't think I'll be able to do it efficiently in safe mode (with most of the packages disabled).
I've also disabled the github
package. I'd prefer not to disable git-diff
.
Looks like it grinds the filesystem for some reason, but I'm not sure.
Is there something in
git-utils
that may cause heavy CPU load for a noticable amount of time, especially with a lot of syscalls?The sample while CPU load is spiking: