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.

Files with large extremely long lines cause hangs #979

Closed

Description

@bnferguson

May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).

Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.

Activity

  1. mcolyer commented on Oct 21, 2013

    @mcolyer
    Contributor

    This should be fixed in the v32 release now that #1001 is merged.

  2. bnferguson commented on Oct 22, 2013

    @bnferguson
    Author

    Ran in to it freezing upon trying to open public/enterprise/maintenance.html with a master build this morning. May be a different problem there though. Won't even open.

  3. probablycorey commented on Oct 22, 2013

    @probablycorey

    menubar

    Can you tell me the sha you see under the Atom menu (like in the picture above)

  4. bnferguson commented on Oct 22, 2013

    @bnferguson
    Author

    Yup! 4132cdd

  5. bnferguson commented on Oct 22, 2013

    @bnferguson
    Author

    (I rebuilt and tried it again in case I missed a commit, thus the really new sha)

  6. probablycorey commented on Oct 29, 2013

    @probablycorey

    @bnferguson Is this freezing when you open public/enterprise/maintenance.html. If so, could you download screenhero so I can try and debug it on your machine (at your convenience)

  7. bnferguson commented on Nov 1, 2013

    @bnferguson
    Author

    Yup! Still an issue. Just had it lock up in a fresh master build. Downloading screen hero. Later this afternoon or sometime next week should work fine for me.

  8. izuzak commented on Mar 31, 2014

    @izuzak
    Contributor

    Another report via support/612cacb6b6fa11e384554e10b2ee9be5

    Opening files are really really slow in 0.79.0. It freezes the whole UI while trying to open the file.
    ...
    I think I have narrowed it down to what is causing it exactly. It appears to happen on files with a really really long line. I have attached a .js file that constantly causes the issue. I believe it is the one line length issue, because I have other compressed .min.js files that cause the same issue because they are all on one line.

  9. izuzak commented on Apr 20, 2014

    @izuzak
    Contributor

    via support/90240870c84811e39e74c419500d2fe2

    The editor still lags when opening large js files, large minified files etc.
    It's a very small file ~130 KB. (See file attached) Although when i open it for the first time after boot, it takes around ~2s to load, which actually is not giving me any issue but as i am used to Sublime Text, which is far more speedy in this regard to make the comparison.

    I just tried playing with minified jQuery and this is the behavior I observed:

    • when soft wrap is turned off, navigating long lines is very slow (e.g. it takes a few seconds from when I click somewhere within a line to when the cursor shows up)
    • when soft wrap is turned on, navigating is fast, but editing long lines is still noticeably slow (e.g. it takes a second from when I press backspace to when a character is deleted)
    • I didn't notice any abnormal slowness when opening the file
  10. BrandonDusseau commented on Jun 5, 2014

    @BrandonDusseau

    This issue still exists in 0.100.0. I'm getting a hang on a minified CSS file that consists of only one line with over 237,000 characters.

  11. garand commented on Jun 5, 2014

    @garand

    Same here. I had the issue when editing CSS attributes that had a data encoded image in them. Very long lines. Removing them put everything back to normal.

  12. 55 remaining items

  13. CrazyPython commented on Oct 6, 2015

    @CrazyPython

    @derwaldgeist I'd prefer having no listing than having to kill my entire browser... (with not-exactly-restorable data)

  14. skyrpex commented on Oct 6, 2015

    @skyrpex

    👍 for no linting in this case

  15. CrazyPython commented on Oct 8, 2015

    @CrazyPython

    I think there should be a disable lint functionality in web Atom; or perhaps a persistent setting in HTML5 web storage.

  16. maxbrunsfeld commented on Oct 8, 2015

    @maxbrunsfeld
    Contributor

    I don't think 'linting' has anything to do with this. Atom does not provide linting; it is provided by a third party package: https://github.com/atomlinter/linter. If you want to disable syntax highlighting, select Plain Text from the Grammar Selector.

  17. CrazyPython commented on Oct 14, 2015

    @CrazyPython

    I hope this is fixed soon. I pretty much can't edit HTML files on GitHub. On slow computers, it freezes me for 5 seconds every time I type a character. On my MBA, it freezes when I type a few characters I type, and then I have to close the browser. Is there a way to change atom into a raw text editor?

    Soft wrap or not, this issue has been dancing around for two years. I'm going to try and profile it and make a pull request (I've never seen a single line of Atom code... shouldn't this be at the top of the list?)

  18. yihaa5 commented on Oct 26, 2015

    @yihaa5

    I'm already switched to Notepad++ . Didn't see much progression for this commonly required fix. Kinda dissappointed.
    Thanks afterall for the Effort of building this editor.

  19. skyrpex commented on Oct 26, 2015

    @skyrpex

    I hate to recognize it, but I switched back to Sublime Text again...

    On Mon, 26 Oct 2015 at 13:55 yihaa5 [email protected] wrote:

    I'm already switched to Notepad++ . Didn't see much progression for this
    commonly required fix. Kinda dissappointed.
    Thanks afterall for the Effort of building this editor.

    —
    Reply to this email directly or view it on GitHub
    #979 (comment).

  20. shanalikhan commented on Oct 26, 2015

    @shanalikhan

    Well i have switched to visual studio code ! Already
    Thanks developers afterall for atom !

  21. thomasjo commented on Oct 26, 2015

    @thomasjo
    Contributor

    I'm locking this thread for the time being — there's no value in notifying 35+ people about switching to another editor. Yes, this is definitely something that should be addressed (and it has to a certain extent), and is being worked on indirectly even though it might not be apparent. Increasing the performance of Atom is one of the top priorities.

  22. locked and limited conversation to collaborators on Oct 26, 2015
  23. winstliu commented on Feb 15, 2017

    @winstliu
    Contributor

    Atom should be able to open files with very large lines starting with Atom 1.16.0.

  24. maxbrunsfeld commented on Feb 17, 2017

    @maxbrunsfeld
    Contributor

    We decided to back-port this fix to the current beta release, so it's available today in Atom 1.15.0-beta3.

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