Skip to content

Renderer freezes after opening 2GB or larger files #42839

Closed

Description

@rebornix
  • VSCode Version: Stable/Insiders
  • OS Version: macOS

Steps to Reproduce:

  1. Open a 1.5GB file (with Line Model or Piece Tree)
  2. It opens successfully (say the machine has enough memory)
  3. Open a 2.1 GB file
  4. It freezes after 1+ mins.

As we load the whole file to memory, it exceeds the memory limit of v8 process. We can expose max_old_space_size flag in cli then users can increase the limit themselves.

Activity

  1. added
    editor-textbuffer
    workbench-editors
    on Feb 2, 2018
  2. rebornix commented on Feb 2, 2018

    @rebornix
    ContributorAuthor

    Benjamin Pasero (@bpasero) correct me if I'm wrong, but it seems that when we run Code --js-flags="abc", js-flags is not passed to the renderer process so we need to explicitly have this option in cli.

  3. bpasero commented on Feb 3, 2018

    @bpasero
    Contributor

    Peng Lyu (@rebornix) it should be passed on to the renderer, e.g. when I add --js-flags=harmony I see how that flag is passed on to the renderer when I check with ps aux. See also https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md

    However, if we wanted to introduce a command line option to make this easier for the user, it can be done also programmatically via app.commandLine.appendSwitch (before the on-ready event).

  4. added a commit that references this issue on Feb 6, 2018
    1c2bd7f
  5. added
    freeze-slow-crash-leak
    on Feb 10, 2018
  6. added a commit that references this issue on Feb 13, 2018
    50a1deb
  7. added a commit that references this issue on Feb 14, 2018
    37ced1a
  8. locked and limited conversation to collaborators on Mar 31, 2018
  9. added 2 commits that reference this issue on Sep 6, 2026
    8cb3b72
    6d5f819
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

editor-textbufferfreeze-slow-crash-leakworkbench-editors

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions