You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
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 Version: 1.7.2 System: Mac OS X 10.11.4 Thrown From: Atom Core
Stack Trace
Uncaught Error: toString failed
At buffer.js:378
Error: toString failed
at Buffer.toString (buffer.js:378:11)
at Object.fs.readFileSync (fs.js:496:33)
at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:427:29)
at File.module.exports.File.readSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:266:36)
at File.module.exports.File.getDigestSync (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:167:14)
at TextBuffer.module.exports.TextBuffer.serialize (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:231:68)
at /Applications/Atom.app/Contents/Resources/app.asar/src/project.js:137:27
at Array.map (native)
at Project.module.exports.Project.serialize (/Applications/Atom.app/Contents/Resources/app.asar/src/project.js:135:41)
at AtomEnvironment.module.exports.AtomEnvironment.serialize (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:769:31)
at /Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:984:27
I've experienced hangs on a text file only 4.7MB in size, with 39,000 lines (unix find output). It loaded with time, but any form of manipulation (particularly, a find and replace) caused the window to become completely unresponsive. Version 1.13.0-beta8.
@a-abella Large file performance should be greatly increased in Atom 1.14, as long as the file does not also contain very long lines. Though your issue is unrelated to this one.
Is anyone even working on this issue?
This should be a primary matter.
I got to the point where, having atom open on a project folder, if a script creates a big file in the folder or changes it atom will freeze and hang until i'm forced to close it.
All this without even opening the file. This problem seriously compromise the usability of this editor.
I think the problem is not only with opening large files (in size), but also with files (of any size) containing long single lines. Atom either crashes or gets hung when I try to open files like the ones described above.
Example: I have a file of ~800KB and one of its lines is of 279768 characters length. Trying to edit/save the file is extremely slow (in the order of 30-45sec per operation). Other text editors (text wrangler) seem to deal with files like this without any problem.
Yes, there are several separate issues that can cause poor behavior with large files, some in Atom core, and some in packages. #14435 will fix a very fundamental issue relating to large files and will ship in either Atom 1.19 or 1.20.
Suggestion: There could be a setting called "Editor for large files" in Atom, that'd make atom automatically open files larger than it can handle (or larger than a value defined by the user) in a different text editor. That'll save users the hassle of checking file size before they can decide whether to use Atom or another editor for that file, or trying to open it in Atom, failing and then switching to a different editor
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!
Activity
lee-dohm commentedon Apr 21, 2016
What were you doing at the time of the exception?
tntim96 commentedon Apr 26, 2016
I got directed to here when opening a log file of size 288339043 bytes.
d-Pixie commentedon May 31, 2016
I got the same error trying to load a log file of 755,3 MB.
lukec11 commentedon Jun 4, 2016
I got this error trying to load a .sh file of 289669397 bytes
kurtismullins commentedon Jul 19, 2016
+1 -- The file I am reading is huge (570M JSON File). Even Chrome has trouble opening it, although it doesn't crash and burn.
kaftw commentedon Sep 10, 2016
+1 840MB CSV
manthis commentedon Sep 18, 2016
Crashes when trying to read a > 2GB file or > 10GB file. That would be nice to have a fix. If I can help, let me kow.
QuentinDela commentedon Nov 3, 2016
+1
fracalo commentedon Dec 2, 2016
Same issue for a 124k js build , even in safe mode.
a-abella commentedon Dec 22, 2016
I've experienced hangs on a text file only 4.7MB in size, with 39,000 lines (unix find output). It loaded with time, but any form of manipulation (particularly, a find and replace) caused the window to become completely unresponsive. Version 1.13.0-beta8.
winstliu commentedon Dec 22, 2016
@a-abella Large file performance should be greatly increased in Atom 1.14, as long as the file does not also contain very long lines. Though your issue is unrelated to this one.
joedaniels29 commentedon May 2, 2017
Still seeing this in 1.16.
pietrovismara commentedon May 19, 2017
Is anyone even working on this issue?
This should be a primary matter.
I got to the point where, having atom open on a project folder, if a script creates a big file in the folder or changes it atom will freeze and hang until i'm forced to close it.
All this without even opening the file. This problem seriously compromise the usability of this editor.
suryaavala commentedon May 22, 2017
I think the problem is not only with opening large files (in size), but also with files (of any size) containing long single lines. Atom either crashes or gets hung when I try to open files like the ones described above.
Example: I have a file of ~800KB and one of its lines is of 279768 characters length. Trying to edit/save the file is extremely slow (in the order of 30-45sec per operation). Other text editors (text wrangler) seem to deal with files like this without any problem.
Atom Version: 1.18.0-beta0
winstliu commentedon May 23, 2017
I think #14435 will fix at the very least this uncaught exception. @maxbrunsfeld?
maxbrunsfeld commentedon May 23, 2017
Yes, there are several separate issues that can cause poor behavior with large files, some in Atom core, and some in packages. #14435 will fix a very fundamental issue relating to large files and will ship in either Atom 1.19 or 1.20.
prfxn commentedon Jun 5, 2017
Suggestion: There could be a setting called "Editor for large files" in Atom, that'd make atom automatically open files larger than it can handle (or larger than a value defined by the user) in a different text editor. That'll save users the hassle of checking file size before they can decide whether to use Atom or another editor for that file, or trying to open it in Atom, failing and then switching to a different editor
lock commentedon Apr 1, 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!