Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@James-E-A

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).

The command line of the runaway process was:

/usr/share/atom/atom --eval require('/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js').setCacheDirectory('/home/james/.atom/compile-cache/coffee'); require('/usr/share/atom/resources/app/node_modules/coffee-cash/lib/coffee-cash.js').register(); require('/usr/share/atom/resources/app/node_modules/coffeestack/index.js').setCacheDirectory('/home/james/.atom/compile-cache/coffee/source-maps'); require('/usr/share/atom/resources/app/src/task-bootstrap.js');

This behavior seems to have just emerged after I updated it to 0.192.0 this morning.

Activity

  1. thomasjo commented on Apr 20, 2015

    @thomasjo
    Contributor

    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).

  2. winstliu commented on Apr 20, 2015

    @winstliu
    Contributor

    Refs #5566.

  3. James-E-A commented on Apr 20, 2015

    @James-E-A
    Author

    @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.

  4. James-E-A commented on Apr 20, 2015

    @James-E-A
    Author

    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.

  5. maxbrunsfeld commented on Apr 21, 2015

    @maxbrunsfeld
    Contributor

    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?

  6. James-E-A commented on Apr 21, 2015

    @James-E-A
    Author

    @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).

  7. maxbrunsfeld commented on Apr 21, 2015

    @maxbrunsfeld
    Contributor

    Does it happen on other non-empty folders, or just when you open your entire home directory?

  8. James-E-A commented on Apr 21, 2015

    @James-E-A
    Author

    @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.

  9. Calinou commented on Apr 24, 2015

    @Calinou

    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.

    Community packages used:

    atom-color-highlight  language-glsl    merge-conflicts
    atom-html-preview     language-lua     minifier
    autocomplete-plus     language-svg     minimap
    bezier-curve-editor   linter           monokai
    color-picker          linter-csslint   project-palette-finder
    emmet                 linter-htmlhint  sass-watch
    git-plus              linter-jshint    seti-syntax
    highlight-line        linter-lua       seti-ui
    language-cmake        linter-php       todo-show
    language-gdscript     linter-xmllint   web-browser
    
  10. James-E-A commented on Apr 25, 2015

    @James-E-A
    Author

    @maxbrunsfeld It seems we can remove the needs-reproduction tag.. also, is there any more information you need about the error?

  11. winstliu commented on Apr 25, 2015

    @winstliu
    Contributor

    @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.

  12. Calinou commented on Apr 26, 2015

    @Calinou

    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.

  13. 85 remaining items

  14. tefimov commented on Nov 14, 2016

    @tefimov

    Alright, turning off Fuzzy-Finder solved the problem with large folders for me, so I will post new issue there.

  15. quinob commented on Dec 7, 2016

    @quinob

    Same for me ,using Atom 1.12.6 . Turning off Fuzzy-Finder keeps troubles away.

  16. marmistrz commented on Mar 7, 2017

    @marmistrz

    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

  17. Zireael07 commented on Mar 7, 2017

    @Zireael07

    @marmistrz fuzzy finder is a built in package.

  18. FallingSnow commented on May 18, 2017

    @FallingSnow

    Disabling fuzzy finder resolved this issue for me as well.

  19. mboratko commented on Oct 18, 2017

    @mboratko

    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

  20. rk9qn3j commented on Oct 21, 2017

    @rk9qn3j

    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

  21. flesniak commented on Oct 23, 2017

    @flesniak

    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.

  22. vtempest commented on Oct 25, 2017

    @vtempest

    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.

  23. Ben3eeE commented on Oct 26, 2017

    @Ben3eeE
    Contributor

    @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

  24. maxbrunsfeld commented on Oct 26, 2017

    @maxbrunsfeld
    Contributor

    @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.

  25. Ben3eeE commented on Oct 26, 2017

    @Ben3eeE
    Contributor

    @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.

  26. smashwilson commented on Oct 26, 2017

    @smashwilson
    Contributor

    Everyone reporting this in a recent version of Atom may want to subscribe to #15966 for updates.

    If changing this setting in your settings-view makes the problem go away:

    Then #15966 is the problem you're experiencing.

  27. lock commented on Apr 24, 2018

    @lock

    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!

  28. locked and limited conversation to collaborators on Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions