Skip to content

tsserver crashes with "heap out of memory" #1309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Xapphire13 opened this issue Jul 10, 2017 · 2 comments
Closed

tsserver crashes with "heap out of memory" #1309

Xapphire13 opened this issue Jul 10, 2017 · 2 comments

Comments

@Xapphire13
Copy link

Xapphire13 commented Jul 10, 2017

tsserver keeps crashing on my machine when I notice there are a large number of static analysis tasks running (the count in the bottom right of the task bar).

This is the error:

Last output from tsserver:
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Error: exited with code: 3
at ChildProcess.exitHandler (C:\Users\******\.atom\packages\atom-typescript\dist\client\client.js:175:58)
at ChildProcess.g (events.js:286:16)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

In addition to this, the TypeScript atom plugin doesn't restart the server when it needs to:
image

This leads to my needing to restart atom.

Package version: 11.0.6
Atom: 1.18.0 x64
OS: Win 10 x64

@ZuBB
Copy link

ZuBB commented Sep 14, 2017

@guncha @lierdakil imo this is a duplicate of #1255

@lierdakil
Copy link
Collaborator

Seems like it. Closing as duplicate of #1255. Feel free to yell at me if you think I'm wrong.

Basically, the resolution of all 'out of memory'-type errors seems to boil down to https://sandersn.github.io/manual/Workarounds-for-Out-of-Memory-Crashes.html, and if that doesn't help, file an issue on https://github.com/Microsoft/TypeScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants