Title: JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript · GitHub
Open Graph Title: JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript
X Title: JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript
Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript
Open Graph Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript
X Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript
Opengraph URL: https://github.com/microsoft/TypeScript
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JavaScript heap out of memory after upgrading to 4.3","articleBody":"# Bug Report\r\n\r\n### 🔎 Search Terms\r\n\r\nMemory\r\n\r\n### 🕗 Version & Regression Information\r\n\r\nAfter upgrading to 4.3.2 I get a \"JavaScript heap out of memory\" exception when i try to run `tsc`. Downgrading to 4.2.4 does not yield the same error.\r\n\r\n```\r\n\u003c--- Last few GCs --->\r\n\r\n[43233:0x108008000] 75872 ms: Scavenge 2043.5 (2049.9) -> 2043.0 (2049.9) MB, 6.6 / 0.0 ms (average mu = 0.119, current mu = 0.127) allocation failure \r\n[43233:0x108008000] 75927 ms: Scavenge 2043.8 (2049.9) -> 2043.3 (2050.2) MB, 6.5 / 0.0 ms (average mu = 0.119, current mu = 0.127) allocation failure \r\n[43233:0x108008000] 75986 ms: Scavenge 2044.0 (2050.2) -> 2043.5 (2050.4) MB, 7.0 / 0.0 ms (average mu = 0.119, current mu = 0.127) 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: 0x100930c99]\r\nSecurity context: 0x390dbb3008a1 \u003cJSObject>\r\n 1: getIntersectionType(aka getIntersectionType) [0x390df5b65bb9] [/.../node_modules/typescript/lib/tsc.js:~47588] [pc=0x1a0124246ed4](this=0x390d982804a9 \u003cundefined>,0x390d7a08df51 \u003cJSArray[18]>,0x390d982804a9 \u003cundefined>,0x390d982804a9 \u003cundefined>)\r\n 2: getCrossProductIntersections(aka getCrossProductIntersections) [0...\r\n\r\nFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\r\n 1: 0x10007e9b3 node::Abort() [/usr/local/bin/node]\r\n 2: 0x10007eb37 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]\r\n 3: 0x100176337 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]\r\n 4: 0x1001762d3 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]\r\n 5: 0x1002fa485 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]\r\n 6: 0x1002fbb54 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/local/bin/node]\r\n 7: 0x1002f8a27 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]\r\n 8: 0x1002f6a0d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]\r\n 9: 0x1002f58c1 v8::internal::Heap::HandleGCRequest() [/usr/local/bin/node]\r\n10: 0x1002bac3f v8::internal::StackGuard::HandleInterrupts() [/usr/local/bin/node]\r\n11: 0x1005f7b6c v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [/usr/local/bin/node]\r\n12: 0x100930c99 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit [/usr/local/bin/node]\r\n13: 0x1a0124246ed4\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nIt crashed.\r\n\r\n### 🙂 Expected behavior\r\n\r\nNo crash\r\n","author":{"url":"https://github.com/dagstuan","@type":"Person","name":"dagstuan"},"datePublished":"2021-05-27T11:35:54Z","url":"https://github.com/microsoft/TypeScript/issues/44299"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:7ef5d786-6f0b-7c31-7a2c-c384ae0668c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94D2:10531B:123C18E:174080A:6B01602B |
| html-safe-nonce | 04db261d91b1106231fa1ea578e2a5d311e5fc842c5271ec3e36423381ac4a5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEQyOjEwNTMxQjoxMjNDMThFOjE3NDA4MEE6NkIwMTYwMkIiLCJ2aXNpdG9yX2lkIjoiNzUxMjc5MTQ0Nzc1NDU5NjM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 016fbd13df248cf1e4dc8ea9aecf0a809ddd68baa14ac26e96e0f28302695dc5 |
| hovercard-subject-tag | repository:20929025 |
| 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/microsoft/TypeScript/issues/44299 |
| twitter:image | https://opengraph.githubassets.com/bbc0aefe3463f4dbe35f5ce5690f7790cf136a646140fe01bc9564548d4726b9/microsoft/TypeScript |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bbc0aefe3463f4dbe35f5ce5690f7790cf136a646140fe01bc9564548d4726b9/microsoft/TypeScript |
| og:image:alt | TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - JavaScript heap out of memory after upgrading to 4.3 · Issue #44299 · microsoft/TypeScript |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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