-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Description
TypeScript Version: 2.3.3 (VS plugin)
Environment: Visual Studio 2015 update 3, Windows 7
Project Type: tsconfig.json (relevant part...)
"compilerOptions": {
"lib": [ "es2017", "dom", "dom.iterable", "webworker" ],
"module": "commonjs",
"moduleResolution": "node",
"skipDefaultLibCheck": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
]
},
// ...Project Info TFS for SCM, mixed code project (TS and C#)
tsc --diagnostics -w:
171k lines, 580 files, ~800 MB mem used, ~8 sec Check time
Visual Studio runs out of memory and crashes frequently. The behavior varies and falls into one of these cases:
- VS2015 closes without warning and a small popup with the message 'Hard Error' and an OK button is displayed
- VS2015 freezes and '(not responding)' is appended to the title bar, clicking on the window or trying to close it causes the standard Windows error report popup to be displayed
- VS2015 displays a 'Visual Studio has suspended some advanced features to improve performance.' message along the top of text editor window and VS crashes 3-10 mins later
The issue has grown worse over the last ~6 months as our team has progressively upgraded from TypeScript 2.0 - 2.3 and as our codebase has grown. This week VS2015 has been crashes every 45 - 60 mins while editing TS files. I've been monitoring devenv.exe via Task Manager and the crashes always occur when it reaches ~3.2 GBs of memory usage.
These crashes can be reproduced my me and a coworker with the proprietary codebase we work on (I also work on several small open source TypeScript projects and have not had VS2015 issues with those). I don't think I can condense the issue down to a non-proprietary repo that I'd be allowed to share with you guys so I'd love some guidance on debugging this from my end.
I have logs from running VS with logging enabled via devenv.exe /log path and would be happy to provide those logs if requested.
I attempted to follow the Dev Mode in Visual Studio wiki article several weeks ago, but couldn't get it working and found issue #14928 which indicates that dev mode no longer works.
Also tried VS Code a few weeks ago and tsserver does not have the same memory issue as VS2015, but VS Code doesn't have all the features I've grown to love in VS2015 so I'd like to stick with VS2015 and get this issue figure out.
I looked around this repository and couldn't find anything that looked like the code for the VS plugin. I'd love if we could revisit this thought #2656 (comment).
I'm ready to devote my own time to resolving this issue as it's seriously affecting my productivity! Any suggestions on what I can do for you guys to help track down this issue?