In some scenarios, opening Atom on Linux results in 100% CPU usage of a core #13317
Comments
|
Maybe some other interesting fact: If Atom is launched via the desktop file and consequently spawns this non-terminating shell process, some actions (New file, About, maybe others) do not react. That is you trigger the action (via menu, keyboard shortcut, command palette, doesn't matter) but there is no action. However, once you kill the spawned shell process the triggered actions get executed. E.g. you hit two times Maybe somebody has an idea how this is related. |
|
It is happening to me on my system, when I click on "restart" after package update (it was update of |
|
@phw please try building from source (use the master branch) and let me know if this has resolved your issue. |
|
@phw or others affected by this: in order to release a hotfix, we want one of you to build from source on Linux and verify the issue is fixed. Could you please assist us in doing this? |
|
I'd love to test this, but I likely won't be able to do so before Monday. |
|
Just built from source and seems to have fixed the problem in my case (running ubuntu 16.04 LTS). |
|
Would like to try but i'm unable to compile atom. I think some nodejs problem with fedora but tried with packagemanger and nodejs installed over nvm. Dosn't work for me. Sry. I don't get this node stuff. error from calling script/build: Node: v7.2.0 TypeError: Incorrect value of args option npm ERR! atom-package-manager@1.15.1 install: npm ERR! Please include the following file with any support request: |
|
Hello, Just to make sure this is the same bug, I get the same behavior, with the same If I try to strace the start of atom |
|
@joefitzgerald I finally was able to test this, looking very good 👍 I tried with latest master, starting Atom from the .desktop file works as expected. Just to be sure I also installed the revision just before the merge of your fix (03cc503), and as expected the issue was there again. Thanks for this fix :) |
|
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! |
detached: falseand using the-iflag for an interactive shell-iflag is not the solution, because it doesn't result in the desired behavior; it does result in the shell exiting as expected without consuming 100% of a CPU coredetached: trueto the options used forchild_process.spawndoes fix the issue and retains the desired behavior, but it requires additional code to manage the process lifecycle if Atom exits or an Atom window is reloaded while the shell process is still runningThe below is a copy of #13084 (comment), included here to open up a new issue:
@phw says:
The text was updated successfully, but these errors were encountered: