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 hangs when an opened file is written to #11012

Closed

Description

@ChrisJefferson

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

Atom beta hangs when an open file is clobbered and continuously written to

Steps to Reproduce

touch out.txt
atom-beta --safe out.txt
(for i in $(seq 100000); do echo "yyyyyyyyyy"; done) > out.txt

Expected behavior: [What you expected to happen]

atom changes to new file, and continues to work (atom stable does handle this fine)

Actual behavior: [What actually happened]

The two 'atom helper' processes hit > 260% CPU, and stay there. Eventually I am asked if I want to "keep waiting"

Versions

You can get this information from executing atom --version and apm --version at the command line.

bash-4.3$ atom-beta --version
a1.6.0-beta6
bash-4.3$ apm-beta --version
apm  1.6.0
npm  2.13.3
node 0.10.40
python 2.7.11
git 2.7.2

Activity

  1. lee-dohm commented on Mar 1, 2016

    @lee-dohm
    Contributor

    I was unable to reproduce this using Atom v1.6.0-beta6 on Mac OS X 10.11.3. What OS are you running?

    Additionally, I tried this with both my normal zsh and also bash, just in case there was a difference in how the shells operate.

  2. ChrisJefferson commented on Mar 1, 2016

    @ChrisJefferson
    Author

    Exactly the same OS / Atom version. Weirdly, since rebooting my machine, the problem has gone away. I can still make atom hang if I run instead:

    for i in $(seq 20) ; do (for i in $(seq 100000); do echo "yyabcyyyyzy"; done) >! out.txt; done (I gave atom at least 2 minutes to recover)

  3. lee-dohm commented on Mar 14, 2016

    @lee-dohm
    Contributor

    @ChrisJefferson Thanks for giving a more reliable repro, I was able to reproduce this on my machine.

    We agree that this is a bug and as such we would like to fix it eventually. On the flip side, the main use case we see that might encounter this problem (locking up when the file being viewed is created and deleted two million times in just a couple seconds) is when using Atom as a live log viewer. Using Atom in this way is a low priority for us.

    We'll be leaving it open and if someone in the community wants to take a look and contribute PRs around it, that would be great. We probably won't have the bandwidth to work on this any time soon.

    Please feel free to clarify if I've misunderstood anything!

  4. changed the title [-]atom-beta hangs when opened file is written to[/-] [+]Atom hangs when an opened file is written to[/+] on Jun 1, 2017
  5. lock commented on Apr 1, 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!

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