microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.98k stars 29.53k forks source link

VSCode crashing with large XML and Markdown files. #162842

Open RCcola1987 opened 2 years ago

RCcola1987 commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes/No

System Specs: Windows 10 pro 64bit 1909 128gb ram

VScode info Version: 1.71.2 (user setup) Commit: 74b1f979648cc44d385a2286793c226e611f59e7 Date: 2022-09-14T21:03:37.738Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.18363 Sandboxed: No

Steps to Reproduce:

  1. Open File
  2. Either allow VScode to remove bad line ends or run a plugin on file

File is 1.01 gb and 15,261,586 lines

rebornix commented 2 years ago

Can you try to experiment with running VS Code with a large memory cap code --max-memory to see if it fixes the problem?

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

RCcola1987 commented 2 years ago

How does it not meet the guidelines?

RCcola1987 commented 2 years ago

With a large memory pool i get error The window has crashed (reason: 'oom', code:'-536870904') it is also still crashing at the same amount of memory used.

rebornix commented 2 years ago

@RCcola1987 did you try with a larger max-memory (larger than the file size) and see if it helps?

RCcola1987 commented 2 years ago

Even when you set the max memory to 64gb it will still get to like 7gb and then crash. The file is only 1.01gb.

jiangying000 commented 1 year ago

Same issue, I open a 4g sql, give code --max-memory=12280mb. But code said It didn't recognize this parameter and crashed with oom soon

heartacker commented 8 months ago

?