Skip to content
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

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #16234

Closed
wkrueger opened this issue Jun 2, 2017 · 2 comments
Assignees
Labels
Bug A bug in TypeScript

Comments

@wkrueger
Copy link

wkrueger commented Jun 2, 2017

TS 2.3.4
windows (10)
node 6.10.3

Code and compiler settings:
https://gist.github.com/wkrueger/b32ab6cde783ce7eb0616750a6bb4e17

Message

<--- Last few GCs --->

   23157 ms: Mark-sweep 1299.1 (1437.7) -> 1299.0 (1437.7) MB, 1115.8 / 0.0 ms [allocation failure] [GC in old
space requested].
   24253 ms: Mark-sweep 1299.0 (1437.7) -> 1299.0 (1437.7) MB, 1095.7 / 0.0 ms [allocation failure] [GC in old
space requested].
   25404 ms: Mark-sweep 1299.0 (1437.7) -> 1305.2 (1421.7) MB, 1150.4 / 0.0 ms [last resort gc].
   26555 ms: Mark-sweep 1305.2 (1421.7) -> 1311.4 (1421.7) MB, 1151.2 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 000000D32D7CFB49 <JS Object>
    1: recursiveTypeRelatedTo [C:\Users\willian.krueger\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:
~27844] [pc=00000151F9DED0C9] (this=000001F8339549A9 <JS Global Object>,source=0000030DAEBA6BD9 <a Type with ma
p 0000021301357F51>,target=00000347A7B2BF51 <a Type with map 00000213013516D1>,reportErrors=000000D32D704271 <f
alse>)
    2: isRelatedTo [C:\Users\willian.krueger\AppData\Ro...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

I tried disabling the tsconfig.json settings one by one and found out that when disabling strictNullChecks the errors stops ocurring.

@mhegazy mhegazy added the Bug A bug in TypeScript label Jun 8, 2017
@mhegazy mhegazy added this to the TypeScript 2.4.1 milestone Jun 8, 2017
@IrickNcqa
Copy link

Same issue in v2.4.1 - https://github.com/Microsoft/TypeScript/issues/16777

@sandersn
Copy link
Member

I mistakenly put all the commentary for this bug in #16165. Summary: this bug is fixed in master, probably because of improved overload checking in 2.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants