Skip to content

Renderer freezes after opening 2GB or larger files #42839

@rebornix

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.

Metadata

Metadata

Assignees

Labels

editor-textbufferEditor text bufferfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesworkbench-editorsManaging of editor widgets in workbench window

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions