Title: Infinite build regression in 3.2+ · Issue #29326 · microsoft/TypeScript · GitHub
Open Graph Title: Infinite build regression in 3.2+ · Issue #29326 · microsoft/TypeScript
X Title: Infinite build regression in 3.2+ · Issue #29326 · microsoft/TypeScript
Description: TypeScript Version: 3.2.1 - 3.3.0-dev.20190108 Search Terms: infinite, build, memory Code this is something I need help to narrow down Expected behavior: project built successfully as it is done in TSC 3.1.6 and below Actual behavior: no...
Open Graph Description: TypeScript Version: 3.2.1 - 3.3.0-dev.20190108 Search Terms: infinite, build, memory Code this is something I need help to narrow down Expected behavior: project built successfully as it is done in...
X Description: TypeScript Version: 3.2.1 - 3.3.0-dev.20190108 Search Terms: infinite, build, memory Code this is something I need help to narrow down Expected behavior: project built successfully as it is done in...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29326
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infinite build regression in 3.2+","articleBody":"**TypeScript Version:** 3.2.1 - 3.3.0-dev.20190108\r\n\r\n**Search Terms:**\r\ninfinite, build, memory\r\n\r\n**Code**\r\n\r\nthis is something I need help to narrow down\r\n\r\n**Expected behavior:**\r\n\r\nproject built successfully as it is done in TSC 3.1.6 and below\r\n\r\n**Actual behavior:**\r\n\r\nnode.exe allocates memory in ~300Mb chunks and release about 280Mb of it repeatedly leading to OOM after some time\r\nIssue occurs after `error check` stage, because if project has build errors, it stops after errors repored.\r\n\r\n** tsconfig **\r\n\r\ntsconfig:\r\n```json\r\n{\r\n \"extends\": \"../tsconfig\",\r\n \"include\": [\r\n \"../definitions/ts/*.d.ts\"\r\n ],\r\n \"files\": [\r\n \"../definitions/includes.ts\",\r\n \"../external/root.ts\",\r\n \"root.ts\"\r\n ],\r\n \"compilerOptions\": {\r\n \"types\": [ \"jquery\", \"kendo-ui\", \"jstimezonedetect\" ]\r\n }\r\n}\r\n```\r\nparent tsconfig:\r\n```json\r\n{\r\n \"compileOnSave\": false,\r\n \"compilerOptions\": {\r\n \"typeRoots\": [ \"../../../../node_modules/@types/\" ],\r\n \"noEmitOnError\": true,\r\n \"noUnusedLocals\": true,\r\n \"noUnusedParameters\": true,\r\n \"removeComments\": true,\r\n \"target\": \"es5\",\r\n \"strict\": true,\r\n \"noImplicitReturns\": true,\r\n \"noFallthroughCasesInSwitch\": true,\r\n \"forceConsistentCasingInFileNames\": true,\r\n \"noErrorTruncation\": true,\r\n \"allowJs\": true,\r\n \"lib\": [\r\n \"dom\",\r\n \"es5\"\r\n ],\r\n \"stripInternal\": true,\r\n \"declaration\": false,\r\n \"jsx\": \"react\",\r\n \"jsxFactory\": \"Templates.compile\"\r\n }\r\n}\r\n```\r\nGuys, I think I need some help narrowing down this issue/repro. I can attach to build using debugger, but because it looks like some iterative process and call stack doesn't give me any idea where to look as I'm not really familiar with tsc internals - I think I need some directions what I should check.\r\n\r\nRandom stacktraces:\r\n```\r\n at updateLineCountAndPosFor (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:11048:42)\r\n at Object.write (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:11066:17)\r\n at writePunctuation (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84291:20)\r\n at emitTypeLiteral (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82616:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82003:32)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\r\n at emitFunctionType (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82574:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81995:32)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\"\r\n```\r\n```\r\n at writeTrailingSemicolon (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84293:40)\r\n at emitPropertySignature (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82476:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81971:32)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\r\n at emitNodeList (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84233:21)\r\n at emitList (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84108:13)\r\n at emitTypeLiteral (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82615:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82003:32)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\"\r\n```\r\n```\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81931:38)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\r\n at emitNodeList (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84233:21)\r\n at emitList (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:84108:13)\r\n at emitTypeLiteral (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82615:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82003:32)\r\n at emit (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81882:13)\r\n at emitFunctionType (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:82574:13)\r\n at pipelineEmitWithHint (c:\\Perforce\\node_modules\\typescript\\lib\\typescript.js:81995:32)\"\r\n```","author":{"url":"https://github.com/MaceWindu","@type":"Person","name":"MaceWindu"},"datePublished":"2019-01-09T16:15:19Z","url":"https://github.com/microsoft/TypeScript/issues/29326"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:91799038-eaf5-bd47-efac-33459c7ad493 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B834:21BD98:19B6348:2092C34:6B018373 |
| html-safe-nonce | e78a18a58519e629f3f241092418bc433d234305fb8d331981db2aab0132028a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODM0OjIxQkQ5ODoxOUI2MzQ4OjIwOTJDMzQ6NkIwMTgzNzMiLCJ2aXNpdG9yX2lkIjoiNTgyMDg0ODYzMTIxNjk2NDQ2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0f7e8f8db95c8296bfbd79de62dfa6521cbf481166aa9505f2d1f0b4a0a2098b |
| hovercard-subject-tag | issue:397444714 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/29326/issue_layout |
| twitter:image | https://opengraph.githubassets.com/92f7e5baf5d68e34df98b4e19ed79b7f0ff55532ac598946003d39306a327728/microsoft/TypeScript/issues/29326 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/92f7e5baf5d68e34df98b4e19ed79b7f0ff55532ac598946003d39306a327728/microsoft/TypeScript/issues/29326 |
| og:image:alt | TypeScript Version: 3.2.1 - 3.3.0-dev.20190108 Search Terms: infinite, build, memory Code this is something I need help to narrow down Expected behavior: project built successfully as it is done in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MaceWindu |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width