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.

Atom 1.21.1 high CPU usage #16011

Closed
Closed

Description

@stefanb2

Prerequisites

Description

After upgrading from atom 1.21.0 to 1.21.1 atom starts to use ~300% CPU at start and then falls back to 100% CPU. It is busy looping, i.e. at some point the CPU fan of the laptop starts to spin up.

The problem disappears after downgrading to 1.21.0.

Steps to Reproduce

  1. Upgrade to 1.21.0
  2. atom --safe --clear--window-state
  3. check CPU usage with top

Expected behavior: [What you expect to happen]

No CPU hogging

Actual behavior: [What actually happens]

Initial 300% CPU usage, drops to 100% after a short while.

Reproduces how often: [What percentage of the time does it reproduce?]

Always

Versions

$ atom --version
Atom    : 1.21.1
Electron: 1.6.15
Chrome  : 56.0.2924.87
Node    : 7.4.0
$ apm --version
apm  1.18.5
npm  3.10.10
node 6.9.5 x64
python 2.7.13
git 2.14.2
$ inxi -SMCG
System:    Host: XXXXX Kernel: 4.13.6-300.fc27.x86_64 x86_64
           bits: 64
           Desktop: KDE Plasma 5.10.5
           Distro: Fedora release 27 (Twenty Seven)
Machine:   Device: laptop System: LENOVO product: 20F90058MS v: ThinkPad T460s serial: N/A
           Mobo: LENOVO model: 20F90058MS v: SDK0J40697 WIN serial: N/A
           UEFI: LENOVO v: N1CET60W (1.28 ) date: 09/26/2017
CPU:       Dual core Intel Core i7-6600U (-HT-MCP-) cache: 4096 KB
           clock speeds: max: 3400 MHz 1: 2800 MHz 2: 2800 MHz 3: 2800 MHz
           4: 2800 MHz
Graphics:  Card: Intel HD Graphics 520
           Display Server: x11 (X.org 119.5 )
           drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: [email protected], [email protected]
           OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           version: 4.5 Mesa 17.2.2

Additional Information

I also tried latest 1.22.0-beta1 but it didn't fix the issue.

I'm attaching a Javascript CPU Profile I recorded according to the instructions:

CPU-20171027T085826.cpuprofile.gz

Activity

  1. changed the title [-]Atom 1.21. high CPU usage[/-] [+]Atom 1.21.1 high CPU usage[/+] on Oct 27, 2017
  2. Ben3eeE commented on Oct 27, 2017

    @Ben3eeE
    Contributor

    Does your projects contain symlink loops? Does changing the watcher backend to "emulated" in your settings-view prevent the problem?

    image

  3. stefanb2 commented on Oct 27, 2017

    @stefanb2
    Author

    Switching File System Watcher to "Emulated with Atom events" and restarting Atom fixed the issue for me. Thanks. I don't see anything related to File System Watcher in the 1.21.1 release notes, though...

    Looks like one of my projects (buildroot.org) creates file system loops during build:

    $ find -type l | xargs -I {} find -L {} -type d | wc -l
    find: ‘./buildroot-new/output/build/host-gcc-final-6.4.0/build/arm-buildroot-linux-gnueabihf/libstdc++-v3/include/bits/stamp-bits’: Too many levels of symbolic links
    find: File system loop detected; ‘./buildroot-new/output/build/attr-2.4.47/include/attr/attr’ is part of the same file system loop as ‘./buildroot-new/output/build/attr-2.4.47/include/attr’.
    find: File system loop detected; ‘./buildroot-new/output/build/host-attr-2.4.47/include/attr/attr’ is part of the same file system loop as ‘./buildroot-new/output/build/host-attr-2.4.47/include/attr’.
    .... a few more....
    

    After clearing the build area Atom 1.21.1 File System Watcher also works OK with native API.

  4. Ben3eeE commented on Oct 27, 2017

    @Ben3eeE
    Contributor

    @stefanb2 Then this issue is a duplicate of #15966 you may want to subscribe there for updates.

    Can you please add a comment there with the information in your comment? I think it would be helpful for everyone to know that buildroot.org creates these symlink loops. Also include the information about this only happening on Atom 1.21.1. Thank you 🙇‍♂️


    We noticed that this is a duplicate of #15966. You may want to subscribe there for updates.

    Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

    For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.

  5. stefanb2 commented on Oct 27, 2017

    @stefanb2
    Author

    Thanks for handling this quickly. I was unaware that there were symlink loops in one of my projects, otherwise I would have connected the dots while browsing the open issues list...

  6. lock commented on Apr 25, 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!

  7. locked and limited conversation to collaborators on Apr 25, 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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions