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.
Atom 1.21.1 high CPU usage #16011
Copy link
Copy link
Closed
Labels
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
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
- Upgrade to 1.21.0
atom --safe --clear--window-state- 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:
Activity
[-]Atom 1.21. high CPU usage[/-][+]Atom 1.21.1 high CPU usage[/+]Ben3eeE commentedon Oct 27, 2017
Does your projects contain symlink loops? Does changing the watcher backend to "emulated" in your settings-view prevent the problem?
stefanb2 commentedon Oct 27, 2017
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:
After clearing the build area Atom 1.21.1 File System Watcher also works OK with native API.
Ben3eeE commentedon Oct 27, 2017
@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.
stefanb2 commentedon Oct 27, 2017
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...
lock commentedon Apr 25, 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!