-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Loading large file with many lines sometimes hangs or crashes the editor #8864
Comments
Duplicate #979 |
Thanks @OmgImAlexis. |
I'm actually not sure if this is a dupe of #979 – @fewspider mentions that this happens with a file with 140,000 lines, rather than a single really long line. @fewspider Can you reproduce this by completely quitting Atom and restarting it in in safe mode? ( |
@mnquintana My atom version is |
Sounds like being related to syntax highlighting and thus sounds like a duplicate of #6642 |
@Undistraction I don't consider 2800 lines to be many. How big is the file? Are the lines very long? |
@Ben3eeE Not long at all. File is an array of objects like this one:
|
@Undistraction I suggest you check if you can reproduce this issue in safe mode If you are unable to reproduce it in safe mode that indicates a problem with one of your installed community packages. In that case you can try disabling packages until the problem disappears and file an issue on that repository. This issue is for files that are very large (several megabytes) or have many lines (>100000) and your file sounds like none of those. |
Laravel app.js file crashing Atom. This is a large .js file... I tried safe mode, but got the same result. File opens fine in other text editors. This is the output from the terminal after using atom --v: I'm running Ubuntu 16.04 LTS |
Is this a minified file @superjoefly? If so, I think this is a duplicate of #979. |
@rsese Yes...it's minified. I see the issue has been around for a while. It seems that it may be fixed in Atom 1.15.0-beta3. I guess I'll give it a try :-) Thank you for the reference :-) |
I'm on 1.15.0-beta3 and I still can't open a 35MB json file :'( |
I can confirm that I was able to open the Laravel app.js file in Atom 1.15.0-beta3 with no problem. Thank you Team Atom! :-) @chriszrc Are you sure you used Atom 1.15.0-beta3? It runs along side of your previous version of Atom, so make sure you chose the right one. I hope this helps :-) |
Hey people! Larger files don't work on Atom, both stable and beta and can't be syntax-highlighted. Only smaller and separated files work on Atom. Firstly work with smaller and separated files on Atom, and when you want to unify all small and separated files into one and to load larger files, with syntax highlighting, use Sublime Text. |
I build economic models and the listing files that GAMS produces can be quite large >25MB. It would be convenient to open these in Atom, since I do some GAMS development in Atom (and the text editor in GAMS is rather basic). |
I am getting hangs on a file with 5000 lines, problem still persisting in newest beta. Starting with --safe does absolutely nothing. I dont care if I dont get syntax hilight etc. The problem is that if you have opened that file once, re-opening atom in that folder will keep your atom editor locked forever. Solution is to kill all atom data and reinstall. |
Actually, in newest beta, deleting the file kills the deadlock.. so there's that! |
@olivermt Are you on Windows with spell-check enabled? We have an open issue for spell-check causing performance issues on Windows atom/spell-check#190 |
@Ben3eeE indeed that test locks up my editor! Shouldnt atom --safe have disabled that though? |
@olivermt |
Wish I knew about that bug before spending 2-3 hours disabling all kinds of weird stuff, reinstalling, tracing here and there blablabla :) Anyways, that fixes the issue completely for me. Greatly appreciated @Ben3eeE 🥇 |
Disabling spell-check does not improve at all on JSON load performance. Where in Sublime (2 or 3 doesnt matter) the file opens instantly, atom displays a "Wait for atom" message after loading the file some seconds and then taking another many seconds to finally load the file. 2.7MB one line file. |
@pke there are many different reasons for slow performance - there is not a single "catch-all" silver bullet for these types of issues. In your case, please make sure you are running at least Atom 1.15.0, which contains many performance improvements for large files. |
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! |
File that has 140000 lines can reproduce this issue.
Sublime Text 3 release version has no this problem.
The text was updated successfully, but these errors were encountered: