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.

Uncaught RangeError: Invalid string length #11690

Closed

Description

@szabba
  1. 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 packages

Activity

  1. winstliu commented on May 4, 2016

    @winstliu
    Contributor

    @szabba Can you try reproducing this in safe mode (atom --safe)? Thanks!

  2. lee-dohm commented on May 4, 2016

    @lee-dohm
    Contributor

    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 😀

  3. szabba commented on May 5, 2016

    @szabba
    Author

    @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).

  4. lee-dohm commented on May 5, 2016

    @lee-dohm
    Contributor

    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 👍

  5. jordnfk commented on May 9, 2016

    @jordnfk

    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)

  6. exportio commented on May 9, 2016

    @exportio

    This happens to me when I try to open a large JSON file (350 MB)

  7. jordnfk commented on May 9, 2016

    @jordnfk

    Have you found a work-around @samboustani

  8. exportio commented on May 10, 2016

    @exportio

    @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.

  9. jonnydotgg commented on May 23, 2016

    @jonnydotgg

    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 .

  10. jcwatson11 commented on May 24, 2016

    @jcwatson11

    I am having the same issue with a 300MB SQL file opened in Atom. Please fix.

  11. jordnfk commented on May 24, 2016

    @jordnfk

    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:

    I am having the same issue with a 300MB SQL file opened in Atom. Please
    fix.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #11690 (comment)

  12. bosnjak commented on May 30, 2016

    @bosnjak

    Same issue here, 400MB text file, can't open.

  13. 15 remaining items

  14. msemple1111 commented on Nov 21, 2016

    @msemple1111

    same issue when opening 300+mb .txt file.
    Mac OS X 10.10
    atom 1.11.2.

    Steps to reproduce:

    1. get 300mb+ txt file
      Or generate one with this command base64 /dev/urandom | head -c 300000000 > file.txt

    2. open file.txt

    3. crash

  15. muhrifqii commented on Jan 27, 2017

    @muhrifqii

    Same issue openning 1.2 GB txt file on Ubuntu 16.0.4

    [Enter steps to reproduce below:]

    1. ope the .txt file
    2. crash

    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

    At /usr/share/atom/resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:310
    
    RangeError: Invalid string length
        at Array.join (native)
        at ReadStream.<anonymous> (/usr/share/atom/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)
    

    Commands

    Config

    {
      "core": {
        "autoHideMenuBar": true,
        "disabledPackages": [
          "minimap-autohide",
          "minimap"
        ],
        "telemetryConsent": "limited",
        "themes": [
          "one-dark-ui",
          "base16-tomorrow-dark-theme"
        ]
      }
    }

    Installed Packages

    # User
    atom-clock, v0.1.3 (active)
    autocomplete-python, v1.8.28 (active)
    file-icons, v2.0.12 (active)
    git-plus, v7.2.0 (active)
    highlight-selected, v0.12.0 (active)
    language-gradle, v0.0.3 (active)
    language-kotlin, v0.5.0 (active)
    language-latex, v1.0.0 (active)
    latex-autocomplete, v1.0.0 (active)
    latex-completions, v0.3.2 (active)
    linter-write-good, v0.8.0 (active)
    markdown-writer, v2.6.3 (active)
    minimap, v4.26.7 (inactive)
    minimap-autohide, v0.10.1 (inactive)
    atom-dark-syntax, v0.28.0 (inactive)
    atom-dark-ui, v0.53.0 (inactive)
    atom-light-syntax, v0.29.0 (inactive)
    atom-light-ui, v0.46.0 (inactive)
    base16-tomorrow-dark-theme, v1.4.0 (active)
    base16-tomorrow-light-theme, v1.4.0 (inactive)
    one-dark-ui, v1.8.2 (active)
    one-light-ui, v1.8.2 (inactive)
    one-dark-syntax, v1.6.0 (inactive)
    one-light-syntax, v1.6.0 (inactive)
    solarized-dark-syntax, v1.1.1 (inactive)
    solarized-light-syntax, v1.1.1 (inactive)
    about, v1.7.2 (active)
    archive-view, v0.62.0 (active)
    autocomplete-atom-api, v0.10.0 (active)
    autocomplete-css, v0.14.1 (active)
    autocomplete-html, v0.7.2 (active)
    autocomplete-plus, v2.33.1 (active)
    autocomplete-snippets, v1.11.0 (active)
    autoflow, v0.29.0 (inactive)
    autosave, v0.23.2 (active)
    background-tips, v0.26.1 (active)
    bookmarks, v0.43.2 (active)
    bracket-matcher, v0.85.1 (active)
    command-palette, v0.39.1 (inactive)
    deprecation-cop, v0.55.1 (active)
    dev-live-reload, v0.47.0 (active)
    encoding-selector, v0.22.0 (active)
    exception-reporting, v0.40.0 (active)
    find-and-replace, v0.204.5 (inactive)
    fuzzy-finder, v1.4.0 (active)
    git-diff, v1.2.0 (active)
    go-to-line, v0.31.2 (inactive)
    grammar-selector, v0.48.2 (active)
    image-view, v0.60.0 (active)
    incompatible-packages, v0.26.1 (active)
    keybinding-resolver, v0.35.0 (active)
    line-ending-selector, v0.5.1 (active)
    link, v0.31.2 (inactive)
    markdown-preview, v0.159.1 (active)
    metrics, v1.1.2 (active)
    notifications, v0.65.1 (active)
    open-on-github, v1.2.1 (inactive)
    package-generator, v1.0.2 (inactive)
    settings-view, v0.244.0 (active)
    snippets, v1.0.4 (active)
    spell-check, v0.68.5 (active)
    status-bar, v1.6.0 (active)
    styleguide, v0.48.0 (active)
    symbols-view, v0.113.1 (inactive)
    tabs, v0.103.1 (active)
    timecop, v0.33.2 (active)
    tree-view, v0.211.1 (active)
    update-package-dependencies, v0.10.0 (active)
    welcome, v0.35.1 (active)
    whitespace, v0.35.0 (active)
    wrap-guide, v0.39.0 (active)
    language-c, v0.54.0 (active)
    language-clojure, v0.22.1 (active)
    language-coffee-script, v0.48.1 (active)
    language-csharp, v0.13.0 (active)
    language-css, v0.40.1 (active)
    language-gfm, v0.88.0 (active)
    language-git, v0.15.0 (active)
    language-go, v0.43.0 (active)
    language-html, v0.47.1 (active)
    language-hyperlink, v0.16.1 (active)
    language-java, v0.24.0 (active)
    language-javascript, v0.122.0 (active)
    language-json, v0.18.3 (active)
    language-less, v0.29.6 (active)
    language-make, v0.22.2 (active)
    language-mustache, v0.13.0 (active)
    language-objective-c, v0.15.1 (active)
    language-perl, v0.37.0 (active)
    language-php, v0.37.3 (active)
    language-property-list, v0.8.0 (active)
    language-python, v0.45.1 (active)
    language-ruby, v0.70.2 (active)
    language-ruby-on-rails, v0.25.1 (active)
    language-sass, v0.57.0 (active)
    language-shellscript, v0.23.0 (active)
    language-source, v0.9.0 (active)
    language-sql, v0.25.0 (active)
    language-text, v0.7.1 (active)
    language-todo, v0.29.1 (active)
    language-toml, v0.18.1 (active)
    language-xml, v0.34.12 (active)
    language-yaml, v0.27.1 (active)
    
    # Dev
    No dev packages
  16. erikhuizinga commented on Feb 7, 2017

    @erikhuizinga

    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 --safe switch enabled.

  17. lzj10 commented on Feb 24, 2017

    @lzj10

    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)

  18. jacopofar commented on Mar 15, 2017

    @jacopofar

    It happens on Atom 1.15 on macOS, trying to open a 348MB text files with a few KBs for each row

    /Applications/Atom.app/Contents/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.<anonymous> (/Applications/Atom.app/Contents/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)
    
  19. jrmyr commented on Mar 16, 2017

    @jrmyr

    Same for me, here's the exact error report from Atom (opening a ~500MB file):

    [Enter steps to reproduce:]

    1. ...
    2. ...

    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

    At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:310
    
    RangeError: Invalid string length
        at Array.join (native)
        at /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)
    

    Commands

    Non-Core Packages

    minimap-split-diff 0.3.6 
    split-diff 1.2.0 
    Sublime-Style-Column-Selection 1.7.4 
    xml-tools 0.2.1 
    
  20. lcjdot commented on Apr 4, 2017

    @lcjdot

    I am trying to open a sql file (528mb) to conduct a find/replace and get the error:
    [Enter steps to reproduce:]

    1. ...
    2. ...

    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

    At /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/node_modules/pathwatcher/lib/file.js:310
    
    RangeError: Invalid string length
        at Array.join (native)
        at /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)
    

    Commands

    Non-Core Packages

    
    
  21. said026 commented on May 2, 2017

    @said026

    I cannot open a 1 GB log file

    1. Open log file
    2. Crash

    Atom: 1.16.0 x64
    Electron: 1.3.13
    OS: Linux Mint
    Thrown From: Atom Core

    Stack Trace

    Uncaught RangeError: Invalid string length

    At /opt/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:310
    
    RangeError: Invalid string length
        at Array.join (native)
        at /app.asar/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)
    

    Commands

    Non-Core Packages

    language-scala 1.1.8 
    react 0.16.2 
    
  22. Maki711 commented on May 31, 2017

    @Maki711

    [Enter steps to reproduce:]

    1. Select a db.sql that is 416MB big
    2. Crash with the error...

    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

    At C:\Users\Maki\AppData\Local\atom\app-1.17.2\resources\app\node_modules\pathwatcher\lib\file.js:314
    
    RangeError: Invalid string length
        at Array.join (native)
        at ReadStream.<anonymous> (~/AppData/Local/atom/app-1.17.2/resources/app/node_modules/pathwatcher/lib/file.js:314:1)
        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)
    

    Non-Core Packages

    busy-signal 1.4.1 
    intentions 1.1.2 
    linter 2.1.4 
    linter-ui-default 1.6.0 
    markdown-pdf 1.5.0 
    markdown-preview-plus 2.4.9 
    
  23. MitchellCash commented on Jun 9, 2017

    @MitchellCash

    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

    1. Download Australian Company Dataset http://data.gov.au/dataset/7b8656f9-606d-4337-af29-66b89b2eeefb/resource/a1df019f-cb11-43e8-8d5d-0f830115c8a6/download/company201706.zip
    2. Unzip the file, which will show a CSV which is 286 MB on disk
    3. Open CSV in Atom

    Stack Trace

    Uncaught RangeError: Invalid string length

    At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:314
    
    RangeError: Invalid string length
        at Array.join (native)
        at ReadStream.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:314:1)
        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)
    
  24. lee-dohm commented on Jun 9, 2017

    @lee-dohm
    Contributor

    This crash appears to be fixed in the latest master with the merge of #14435, which is currently scheduled for release in Atom v1.19.

  25. 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!

  26. 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