Title: tsc crash with node OOM · Issue #30050 · microsoft/TypeScript · GitHub
Open Graph Title: tsc crash with node OOM · Issue #30050 · microsoft/TypeScript
X Title: tsc crash with node OOM · Issue #30050 · microsoft/TypeScript
Description: TypeScript Version: 3.4.0-dev.20190222 Search Terms: Crash, OOM, infinite Code Across a few files - self-contained repro at https://github.com/jdhuntington/tsc-repro Expected behavior: This is a trimmed down repro of an issue encountered...
Open Graph Description: TypeScript Version: 3.4.0-dev.20190222 Search Terms: Crash, OOM, infinite Code Across a few files - self-contained repro at https://github.com/jdhuntington/tsc-repro Expected behavior: This is a tr...
X Description: TypeScript Version: 3.4.0-dev.20190222 Search Terms: Crash, OOM, infinite Code Across a few files - self-contained repro at https://github.com/jdhuntington/tsc-repro Expected behavior: This is a tr...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/30050
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsc crash with node OOM","articleBody":"**TypeScript Version:** 3.4.0-dev.20190222\r\n\r\n**Search Terms:** Crash, OOM, infinite\r\n\r\n**Code**\r\n\r\nAcross a few files - self-contained repro at https://github.com/jdhuntington/tsc-repro\r\n\r\n**Expected behavior:**\r\nThis is a trimmed down repro of an issue encountered in a larger project. It is not expected to compile successfully, but should print several error messages.\r\n\r\n**Actual behavior:**\r\n\r\n`tsc` runs for several minutes comsuming 100%. Eventually the node\r\nprocess exits with this error:\r\n\r\n \u003c--- Last few GCs --->\r\n \r\n [64465:0x102803200] 227795 ms: Scavenge 1369.9 (1422.5) -> 1368.9 (1422.5) MB, 1.5 / 0.0 ms (average mu = 0.181, current mu = 0.142) allocation failure\r\n [64465:0x102803200] 227799 ms: Scavenge 1369.9 (1422.5) -> 1368.9 (1422.5) MB, 1.5 / 0.0 ms (average mu = 0.181, current mu = 0.142) allocation failure\r\n [64465:0x102803200] 227803 ms: Scavenge 1369.9 (1422.5) -> 1368.9 (1423.0) MB, 1.5 / 0.0 ms (average mu = 0.181, current mu = 0.142) allocation failure\r\n \r\n \r\n \u003c--- JS stacktrace --->\r\n \r\n ==== JS stack trace =========================================\r\n \r\n 0: ExitFrame [pc: 0x1360ab75be3d]\r\n 1: StubFrame [pc: 0x1360ab72236e]\r\n Security context: 0x3c72e589e6e1 \u003cJSObject>\r\n 2: slice [0x3c72e5886d09](this=0x3c72e4502959 \u003cJSArray[8]>,0)\r\n 3: /* anonymous */(aka /* anonymous */) [0x3c72e4502a11] [/private/var/folders/dx/dq3cr7h55q98bgm8t_ypkqp40000gn/T/interactive.Y0po3Zfl/tsc-repro/node_modules/typescript/lib/tsc.js:~32890] [pc=0x1360ac240071](this=0x3c725b0026f1 \u003cundefined>,t=0x3c7250d...\r\n \r\n FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\r\n 1: 0x10003b125 node::Abort() [/Users/jdh/local/n/bin/node]\r\n 2: 0x10003b32f node::OnFatalError(char const*, char const*) [/Users/jdh/local/n/bin/node]\r\n 3: 0x1001a8e85 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/jdh/local/n/bin/node]\r\n 4: 0x1005742a2 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/jdh/local/n/bin/node]\r\n 5: 0x100576d75 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/Users/jdh/local/n/bin/node]\r\n 6: 0x100572c1f v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/Users/jdh/local/n/bin/node]\r\n 7: 0x100570df4 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Users/jdh/local/n/bin/node]\r\n 8: 0x10057d68c v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/Users/jdh/local/n/bin/node]\r\n 9: 0x10057d70f v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/Users/jdh/local/n/bin/node]\r\n 10: 0x10054d054 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/jdh/local/n/bin/node]\r\n 11: 0x1007d4f24 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/jdh/local/n/bin/node]\r\n 12: 0x1360ab75be3d\r\n zsh: abort ./node_modules/.bin/tsc --pretty --target es5 --outDir lib-commonjs --module\r\n\r\n\r\n**Related Issues:** #29597 , #29326\r\n","author":{"url":"https://github.com/jdhuntington","@type":"Person","name":"jdhuntington"},"datePublished":"2019-02-22T18:43:15Z","url":"https://github.com/microsoft/TypeScript/issues/30050"}
| 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:45ac0ab1-052b-b48d-fb9a-a369be2d37c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E26C:317608:23A50A0:2D1E0E2:6B017D3D |
| html-safe-nonce | 46b2e118ae8aec886db6e20964c9ebdb7f487e650f6683873fc0e7da7c46ac0e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjZDOjMxNzYwODoyM0E1MEEwOjJEMUUwRTI6NkIwMTdEM0QiLCJ2aXNpdG9yX2lkIjoiOTUwNTY4MDMwNjcxMzA2MDQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4a72dae8713c9aab42908f4213584a046cf805bbcc412ef4d4ce031721e96602 |
| hovercard-subject-tag | issue:413529400 |
| 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/30050/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1de5cb113d5b3557c43aecbd23fb950ec5b5408911277cd18225be9c20da8dc/microsoft/TypeScript/issues/30050 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1de5cb113d5b3557c43aecbd23fb950ec5b5408911277cd18225be9c20da8dc/microsoft/TypeScript/issues/30050 |
| og:image:alt | TypeScript Version: 3.4.0-dev.20190222 Search Terms: Crash, OOM, infinite Code Across a few files - self-contained repro at https://github.com/jdhuntington/tsc-repro Expected behavior: This is a tr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jdhuntington |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width