You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
100% CPU usage when started in the home folder #6437
When editing a file, after the editor was open for a little while, it started to consume all the CPU and steadily consume more RAM (until all the available RAM is consumed).
Are you able to reproduce this in safe mode? I suspect this is caused by a misbehaving community package. Most likely a linter (if you have one that is).
@thomasjo I have not installed any packages (beyond what came with the default installation).
I just now ran atom --safe, however, and the issue began within seconds of launch. The guilty process had basically the same command-line as last time, so I won't re-post it here.
There were some changes to the indexing task for the fuzzy-finder package, relating to symbolic links. @JamesTheAwesomeDude what OS are you using? Does this happen regardless of what folder you open, or only in certain folders? If it is affected by the folder, could provide some information about any symlinks in the folder? Are they broken? Are there any circular symlink paths?
@maxbrunsfeld I currently have no projects which involve symlinks.
Just now, I ran mkdir foo;cd foo;atom&htop and the issue did not seem to occur. I then ran it again from my home folder, and the issue persisted. Running it from the foo folder again did not cause the issue.
I then ran find -H ~ -xtype l to see if there were any symlinks that might be causing problems, but there was nothing interesting.
I am running Linux Mint 17.1 64-Bit (XFCE edition).
@maxbrunsfeld I just ran it in a directory with many gigabytes of MKVs, AVIs, and MP4s in subfolders, and it did not have the problem.
I also ran it directly in a directory with many AVI files in the working directory (not subfolders), and the problem did not occur. It seems to only happen in my home folder, which is odd.
Just for kicks, I did cd /;atom and the problem, surprisingly, did not seem to manifest itself. The directory tree on the right appeared, and using it to navigate to my home directory did NOT trigger the issue, even more surprisingly.
I can reproduce this; I have to kill Atom so that it stops doing that. Running latest Atom Git (0.195.0-07f80bc) on Debian jessie 64-bit. I just ran atom from the command line, so the default path is used.
@Calinou running atom from the command line will start Atom in the folder that your terminal is currently in, so could you please give us some info about that folder? Thanks.
I open it using Alt+F2 then typing atom which opens it in the home folder. Apparently, opening Atom using FileZilla does not trigger that excessive CPU usage.
I can reproduce this issue with a vanilla Atom install on Arch Linux. I deleted my .atom directory, so it is essentially a fresh install (i.e. only core plugins and default settings). I opened Atom and then added the home directory as a project folder, the Electron process started rapidly using high CPU and spawned additional processes, which each consumed more and more RAM. Disabling fuzzy finder did not fix the problem, nor did running in safe mode. Removing the home folder from the project pane immediately fixed the problem.
Same problem here on Ubuntu 16.04.1. It seems to be another bug, or at least a regression - downgrading from 1.21.1 to 1.21.0 fixes the problem for me.
My entire computer freezes every 2 hours when Atom is open because of this two-year obvious bug about home-folder indexing. Dell i7-6700k Ubuntu 17.10 and Atom 1.21 and 1.22. Opening any file in the ~ folder with atom automatically causes ~ to be added and it starts searching thru all the .folders to index them, CPU and mem and swap are all used up. No wonder so many people are complaining about how slow Node.js apps run.
Contact me if interested making a fork of the Atom editor that avoids some of the design decisions made here and making it run as a web app.
@maxbrunsfeld Can this be a regression from your recent changes to git-utils? Is there some other change in 1.21.1 that could cause this? The reports mention that downgrading to 1.21.0 fixes the issue.
@Ben3eeE I believe this has to do with the new file watcher API. There was another issue about this that mentioned a “massive memory leak”. The problem is that nsfw is very inefficient on Linux; a fix is already in the works.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
thomasjo commentedon Apr 20, 2015
Are you able to reproduce this in safe mode? I suspect this is caused by a misbehaving community package. Most likely a linter (if you have one that is).
winstliu commentedon Apr 20, 2015
Refs #5566.
James-E-A commentedon Apr 20, 2015
@thomasjo I have not installed any packages (beyond what came with the default installation).
I just now ran
atom --safe, however, and the issue began within seconds of launch. The guilty process had basically the same command-line as last time, so I won't re-post it here.James-E-A commentedon Apr 20, 2015
Are there any logs or anything like that than I can provide to help this issue get resolved quicky?
Atom is a very useful editor, and this issue is a blocker.
maxbrunsfeld commentedon Apr 21, 2015
There were some changes to the indexing task for the fuzzy-finder package, relating to symbolic links. @JamesTheAwesomeDude what OS are you using? Does this happen regardless of what folder you open, or only in certain folders? If it is affected by the folder, could provide some information about any symlinks in the folder? Are they broken? Are there any circular symlink paths?
James-E-A commentedon Apr 21, 2015
@maxbrunsfeld I currently have no projects which involve symlinks.
Just now, I ran
mkdir foo;cd foo;atom&htopand the issue did not seem to occur. I then ran it again from my home folder, and the issue persisted. Running it from the foo folder again did not cause the issue.I then ran
find -H ~ -xtype lto see if there were any symlinks that might be causing problems, but there was nothing interesting.I am running Linux Mint 17.1 64-Bit (XFCE edition).
maxbrunsfeld commentedon Apr 21, 2015
Does it happen on other non-empty folders, or just when you open your entire home directory?
James-E-A commentedon Apr 21, 2015
@maxbrunsfeld I just ran it in a directory with many gigabytes of MKVs, AVIs, and MP4s in subfolders, and it did not have the problem.
I also ran it directly in a directory with many AVI files in the working directory (not subfolders), and the problem did not occur. It seems to only happen in my home folder, which is odd.
Just for kicks, I did
cd /;atomand the problem, surprisingly, did not seem to manifest itself. The directory tree on the right appeared, and using it to navigate to my home directory did NOT trigger the issue, even more surprisingly.Calinou commentedon Apr 24, 2015
I can reproduce this; I have to kill Atom so that it stops doing that. Running latest Atom Git (
0.195.0-07f80bc) on Debian jessie 64-bit. I just ranatomfrom the command line, so the default path is used.Community packages used:
James-E-A commentedon Apr 25, 2015
@maxbrunsfeld It seems we can remove the
needs-reproductiontag.. also, is there any more information you need about the error?winstliu commentedon Apr 25, 2015
@Calinou running
atomfrom the command line will start Atom in the folder that your terminal is currently in, so could you please give us some info about that folder? Thanks.Calinou commentedon Apr 26, 2015
I open it using Alt+F2 then typing
atomwhich opens it in the home folder. Apparently, opening Atom using FileZilla does not trigger that excessive CPU usage.85 remaining items
tefimov commentedon Nov 14, 2016
Alright, turning off Fuzzy-Finder solved the problem with large folders for me, so I will post new issue there.
quinob commentedon Dec 7, 2016
Same for me ,using Atom 1.12.6 . Turning off Fuzzy-Finder keeps troubles away.
marmistrz commentedon Mar 7, 2017
I have this problem bud I don't have fuzzy finder installed. Running in safe mode doesn't fix anything.
Atom : 1.14.4
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
Zireael07 commentedon Mar 7, 2017
@marmistrz fuzzy finder is a built in package.
FallingSnow commentedon May 18, 2017
Disabling fuzzy finder resolved this issue for me as well.
mboratko commentedon Oct 18, 2017
I can reproduce this issue with a vanilla Atom install on Arch Linux. I deleted my .atom directory, so it is essentially a fresh install (i.e. only core plugins and default settings). I opened Atom and then added the home directory as a project folder, the Electron process started rapidly using high CPU and spawned additional processes, which each consumed more and more RAM. Disabling fuzzy finder did not fix the problem, nor did running in safe mode. Removing the home folder from the project pane immediately fixed the problem.
Atom : 1.21.1
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
rk9qn3j commentedon Oct 21, 2017
I can also reproduce this issue under Arch Linux. Disabling fuzzy-finder or remove the home folder from project pane/Tree View fix the problem.
Atom: 1.21.1
Electron: 1.6.15
flesniak commentedon Oct 23, 2017
Same problem here on Ubuntu 16.04.1. It seems to be another bug, or at least a regression - downgrading from 1.21.1 to 1.21.0 fixes the problem for me.
vtempest commentedon Oct 25, 2017
My entire computer freezes every 2 hours when Atom is open because of this two-year obvious bug about home-folder indexing. Dell i7-6700k Ubuntu 17.10 and Atom 1.21 and 1.22. Opening any file in the ~ folder with atom automatically causes ~ to be added and it starts searching thru all the .folders to index them, CPU and mem and swap are all used up. No wonder so many people are complaining about how slow Node.js apps run.
Contact me if interested making a fork of the Atom editor that avoids some of the design decisions made here and making it run as a web app.
Ben3eeE commentedon Oct 26, 2017
@maxbrunsfeld Can this be a regression from your recent changes to
git-utils? Is there some other change in 1.21.1 that could cause this? The reports mention that downgrading to 1.21.0 fixes the issue./cc: @nathansobo
maxbrunsfeld commentedon Oct 26, 2017
@Ben3eeE I believe this has to do with the new file watcher API. There was another issue about this that mentioned a “massive memory leak”. The problem is that nsfw is very inefficient on Linux; a fix is already in the works.
Ben3eeE commentedon Oct 26, 2017
@maxbrunsfeld Oh file watcher makes sense. Thank you 🙇♂️
Everyone reporting this in a recent version of Atom may want to subscribe to #15966 for updates.
smashwilson commentedon Oct 26, 2017
If changing this setting in your settings-view makes the problem go away:
Then #15966 is the problem you're experiencing.
lock commentedon Apr 24, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!