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.
Uncaught RangeError: Invalid string length #11690
Copy link
Copy link
Closed
Labels
Description
- Open Atom.
Atom Version: 1.7.3
System: "Arch Linux"
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
At /usr/share/atom/resources/app.asar/src/buffered-process.js:83
RangeError: Invalid string length
at Socket.<anonymous> (/usr/share/atom/resources/app.asar/src/buffered-process.js:83:23)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at Pipe.onread (net.js:523:20)
Commands
5x -2:00.3.0 core:move-down (atom-text-editor.editor.hidden-line-numbers.is-focused)
7x -1:58.2.0 core:move-up (atom-text-editor.editor.hidden-line-numbers.is-focused)
-1:53.1.0 editor:newline (atom-text-editor.editor.hidden-line-numbers.is-focused)
2x -1:52.3.0 core:backspace (atom-text-editor.editor.hidden-line-numbers.is-focused)
-1:51.2.0 core:save (atom-text-editor.editor.hidden-line-numbers.is-focused)
10x -1:49.8.0 core:move-down (atom-text-editor.editor.hidden-line-numbers.is-focused)
3x -1:48.2.0 core:move-up (atom-text-editor.editor.hidden-line-numbers.is-focused)
-1:47.1.0 core:move-down (atom-text-editor.editor.hidden-line-numbers.is-focused)
-1:46.7.0 core:move-up (atom-text-editor.editor.hidden-line-numbers.is-focused)
-0:08.1.0 editor:consolidate-selections (atom-text-editor.editor.hidden-line-numbers.is-focused)
-0:08.1.0 core:cancel (atom-text-editor.editor.hidden-line-numbers.is-focused)
-0:08.0 editor:consolidate-selections (atom-text-editor.editor.hidden-line-numbers.is-focused)
-0:08.0 core:cancel (atom-text-editor.editor.hidden-line-numbers.is-focused)
-0:07.4.0 editor:consolidate-selections (atom-text-editor.editor.hidden-line-numbers.is-focused)
6x -0:07.4.0 core:cancel (atom-text-editor.editor.hidden-line-numbers.is-focused)
2x -0:01.5.0 settings-view:open (atom-workspace.workspace.scrollbars-visible-always.seti-ui-no-icons.theme-no-syntax-highlighting-syntax.theme-one-dark-ui)
Config
{
"core": {
"automaticallyUpdate": false,
"closeEmptyWindows": false,
"destroyEmptyPanes": true,
"disabledPackages": [
"vim-mode",
"keybinding-resolver",
"ionide-fsi",
"wrap-guide",
"local-settings",
"linter-jslint",
"spell-check",
"TODOs",
"todo-list",
"markdown-preview-plus",
"markdown-folder",
"markdown-toc",
"builder-go"
],
"excludeVcsIgnoredPaths": false,
"ignoredNames": [
".git",
".hg",
".cvn",
".DS_Store",
"._*",
"Thumbds.db",
"*.pyc",
"*.pyo"
],
"openEmptyEditorOnStart": false,
"projectHome": "/home/karol/src/",
"themes": [
"one-dark-ui",
"no-syntax-highlighting-syntax"
]
},
"editor": {
"backUpBeforeSaving": true,
"fontFamily": "Hack",
"fontSize": 13,
"invisibles": {},
"lineHeight": 1.7,
"scrollPastEnd": true,
"showIndentGuide": true,
"showInvisibles": true,
"zoomFontWhenCtrlScrolling": false
}
}Installed Packages
# User
Parinfer, v1.14.0
atom-slime, v2.3.3
atom-ternjs, v0.14.1
autoclose-html, v0.23.0
autocomplete-glsl, v0.2.3
autocomplete-go, v1.0.8
autocomplete-love, v0.3.0
autocomplete-python, v1.7.2
bottom-dock, v0.4.4
bug-report, v0.7.1
django-templates, v0.5.0
environment, v1.2.0
file-icons, v1.7.8
file-watcher, v0.4.0
fold-functions, v0.4.3
go-config, v1.1.4
go-get, v1.0.3
go-plus, v4.1.0
godoc, v0.2.0
gofmt, v1.1.6
gometalinter-linter, v1.1.0
gorename, v1.0.2
hyperclick, v0.0.36
hyperclick-love, v0.3.0
language-docker, v1.1.6
language-elm, v1.3.3
language-glsl, v2.0.1
language-haskell, v1.7.13
language-idris, v0.4.4
language-latex, v0.6.1
language-lisp, v0.2.0
language-lua, v0.9.4
language-python-django-templates, v0.1.0
language-restructuredtext, v0.13.0
language-rust, v0.4.6
language-scala, v1.1.6
language-scheme, v1.4.0
linter, v1.11.4
linter-clojure, v1.1.2
linter-elm-make, v0.4.0
linter-flake8, v1.13.0
linter-luaparse, v0.2.0
linter-scalac, v1.4.0
markdown-scroll-sync, v2.1.2
merge-conflicts, v1.4.2
navigator-godef, v1.0.3
no-syntax-highlighting-syntax, v0.2.11
project-manager, v2.9.7
python-isort, v0.0.7
python-tools, v0.6.7
scala-format, v0.1.8
select-rectangle, v1.0.2
term3, v0.22.0
tester-go, v1.0.4
todo-manager, v0.2.8
toggle-gutter, v0.2.2
wordcount, v2.6.0
# Dev
No dev packagesReacted by davidak, LiuZijia, Jacopo Farina and Jay Ng
Activity
winstliu commentedon May 4, 2016
@szabba Can you try reproducing this in safe mode (
atom --safe)? Thanks!lee-dohm commentedon May 4, 2016
Could you also include more accurate steps to reproduce the problem? That command list is quite long for "Open Atom" to be the only step 😀
szabba commentedon May 5, 2016
@50Wliu I can't say I can reproduce it without it. It wasn't there when I opened Atom the next time. In the future I'll try not to report an error unless it happens repeatably.
@lee-dohm I might've left the error notification hanging for a moment before clicking the report button. 😉
Basically, it's ok to close it (not sure if it's ok for me to do it, so I'll leave it to you).
lee-dohm commentedon May 5, 2016
Thanks for reporting the problem and thank you for pointing out that the command list is generated when the Issue is submitted, not when the dialog is displayed. That's a bug we should fix ... it could be sending us down some blind alleys 😀
I'll close this for now. Please feel free to reopen it if you run into it again 👍
jordnfk commentedon May 9, 2016
I'm still experiencing the error.
RangeError: Invalid string length
at Array.join (native)
at ReadStream. (/Users/JordanHome/Downloads/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:307:38)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:465:9)
at process._tickCallback (node.js:379:17)
exportio commentedon May 9, 2016
This happens to me when I try to open a large JSON file (350 MB)
jordnfk commentedon May 9, 2016
Have you found a work-around @samboustani
exportio commentedon May 10, 2016
@jordanshipt I'm new to Atom and this was the first file I tried opening in it. I haven't looked for a solution yet.
jonnydotgg commentedon May 23, 2016
I have just had the same error (at least, atom directed me to this bug).
I can reproduce by opening a file containing a single IP address on each line with approximately 34,000,000 lines .
jcwatson11 commentedon May 24, 2016
I am having the same issue with a 300MB SQL file opened in Atom. Please fix.
jordnfk commentedon May 24, 2016
I can take a look later tonight.
Thanks,
[image: Shipt-Logo-Screen-Color-RGB-Small.jpg]
Jordan Kerr | Lead Product Database Specialist
17 North 20th St Suite 100
Birmingham, AL 35203
www.shipt.com http://www.shipt.com/
On Tue, May 24, 2016 at 1:29 PM, Jon Watson [email protected]
wrote:
bosnjak commentedon May 30, 2016
Same issue here, 400MB text file, can't open.
15 remaining items
msemple1111 commentedon Nov 21, 2016
same issue when opening 300+mb .txt file.
Mac OS X 10.10
atom 1.11.2.
Steps to reproduce:
get 300mb+ txt file
Or generate one with this command
base64 /dev/urandom | head -c 300000000 > file.txtopen file.txt
crash
muhrifqii commentedon Jan 27, 2017
Same issue openning 1.2 GB txt file on Ubuntu 16.0.4
[Enter steps to reproduce below:]
Atom Version: 1.13.0
Electron Version: 1.3.13
System: Ubuntu 16.04.1
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
Commands
Config
{ "core": { "autoHideMenuBar": true, "disabledPackages": [ "minimap-autohide", "minimap" ], "telemetryConsent": "limited", "themes": [ "one-dark-ui", "base16-tomorrow-dark-theme" ] } }Installed Packages
erikhuizinga commentedon Feb 7, 2017
I have the same problem with a 300+MB JSON file on macOS 10.12.3 with Atom 1.13.1 x64. Happens with my default configuration (some packages) and with the
--safeswitch enabled.lzj10 commentedon Feb 24, 2017
same issue when I open a 320+MB binary file, with atom 1.14.3 x64 on win10 。
atom\app-1.14.3\resources\app.asar\node_modules\text-buffer\node_modules\pathwatcher\lib\file.js:310
Hide Stack Trace
RangeError: Invalid string length
at Array.join (native)
at ReadStream. (C:\Users\lzj19\AppData\Local\atom\app-1.14.3\resources\app.asar\node_modules\text-buffer\node_modules\pathwatcher\lib\file.js:310:38)
at emitNone (events.js:91:20)
at ReadStream.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
jacopofar commentedon Mar 15, 2017
It happens on Atom 1.15 on macOS, trying to open a 348MB text files with a few KBs for each row
jrmyr commentedon Mar 16, 2017
Same for me, here's the exact error report from Atom (opening a ~500MB file):
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
Commands
Non-Core Packages
lcjdot commentedon Apr 4, 2017
I am trying to open a sql file (528mb) to conduct a find/replace and get the error:
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
Commands
Non-Core Packages
said026 commentedon May 2, 2017
I cannot open a 1 GB log file
Atom: 1.16.0 x64
Electron: 1.3.13
OS: Linux Mint
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
Commands
Non-Core Packages
Maki711 commentedon May 31, 2017
[Enter steps to reproduce:]
Atom: 1.17.2 x64
Electron: 1.3.15
OS: WARTOP <- for some reason it shows my PC name, not Windows 8.1 x64
Thrown From: Atom Core
Stack Trace
Uncaught RangeError: Invalid string length
Non-Core Packages
MitchellCash commentedon Jun 9, 2017
Atom: 1.17.2 x64
Electron: 1.3.15
OS: Mac OS X 10.12.5
Thrown From: Atom Core
Description
Cannot open a large CSV file within Atom.
Steps to Reproduce
Stack Trace
Uncaught RangeError: Invalid string length
lee-dohm commentedon Jun 9, 2017
This crash appears to be fixed in the latest
masterwith the merge of #14435, which is currently scheduled for release in Atom v1.19.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!