René's URL Explorer Experiment


Title: [7.0 regression] Unbounded type relation expansion during variance computation causes OOM · Issue #64423 · microsoft/TypeScript · GitHub

Open Graph Title: [7.0 regression] Unbounded type relation expansion during variance computation causes OOM · Issue #64423 · microsoft/TypeScript

X Title: [7.0 regression] Unbounded type relation expansion during variance computation causes OOM · Issue #64423 · microsoft/TypeScript

Description: 🔎 Search Terms typescript 7.0.2 tsc noEmit out of memory typescript-go checker Relater recursiveTypeRelatedTo memory typescript 7 silent typecheck hang 🕗 Version & Regression Information The project was using TypeScript 7.0.2 when tsc --...

Open Graph Description: 🔎 Search Terms typescript 7.0.2 tsc noEmit out of memory typescript-go checker Relater recursiveTypeRelatedTo memory typescript 7 silent typecheck hang 🕗 Version & Regression Information The projec...

X Description: 🔎 Search Terms typescript 7.0.2 tsc noEmit out of memory typescript-go checker Relater recursiveTypeRelatedTo memory typescript 7 silent typecheck hang 🕗 Version & Regression Information The pr...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/64423

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[7.0 regression] Unbounded type relation expansion during variance computation causes OOM","articleBody":"### 🔎 Search Terms\n\n- `typescript 7.0.2 tsc noEmit out of memory`\n- `typescript-go checker Relater recursiveTypeRelatedTo memory`\n- `typescript 7 silent typecheck hang`\n\n### 🕗 Version & Regression Information\n\nThe project was using TypeScript 7.0.2 when `tsc --noEmit` stopped returning and consumed increasing memory. We switched the primary compiler dependency to TypeScript 6.0.3 and kept 7.0.2 installed as an npm alias so we could run both versions on the **same source tree and configuration**. TypeScript 6.0.3 completes successfully; 7.0.2 runs out of memory under a 6 GiB virtual-address limit.\n\nWe have not bisected TypeScript 7 releases, so we cannot identify the first affected TypeScript 7 version. The original uncapped run did not complete; the bounded failure described below is reproducible.\n\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\nThis is a private React 19/TypeScript project with TSX application code, types, E2E tests, and Vite/Playwright configuration. Relevant `tsconfig.json` settings (excerpt, **not** a standalone reproduction):\n\n```json\n{\n  \"compilerOptions\": {\n    \"strict\": true,\n    \"jsx\": \"react-jsx\",\n    \"moduleResolution\": \"bundler\",\n    \"skipLibCheck\": true,\n    \"composite\": true,\n    \"incremental\": true,\n    \"noEmit\": true\n  }\n}\n```\n\nThe config includes `src/**/*`, `types/**/*`, and `e2e/**/*`, plus config files, and excludes `node_modules` and the local rendering dependency. The project's typecheck script is `tsc --noEmit`. With dependencies installed in this private project, these commands compare both compilers on the same checkout (the alias `typescript7` points to `typescript@7.0.2`):\n\n```sh\nnode_modules/typescript/bin/tsc --noEmit --pretty false --incremental false --composite false\n\nprlimit --as=6442450944 -- node_modules/typescript7/bin/tsc --noEmit --pretty false --incremental false --composite false\n\nprlimit --as=6442450944 -- node_modules/typescript7/bin/tsc --noEmit --noCheck --pretty false --incremental false --composite false\n```\n\nBoth full-check commands disable incremental/composite mode to avoid build-cache effects. The `prlimit` cap prevents the native TypeScript 7 binary from exhausting the host's memory.\n\n\n### 🙁 Actual behavior\n\nTypeScript 7.0.2 produces no compiler progress, diagnostic, or error output while memory grows; the original uncapped run never returned. The developer also observed **no compiler output even with verbose logging enabled**. In a bounded run, the first output appears only when the Go runtime runs out of memory:\n\n```text\nruntime: out of memory: cannot allocate 4194304-byte block (5082873856 in use)\nfatal error: out of memory\n```\n\nWith a 6 GiB virtual-address limit, the TypeScript 7 check exited with status 2 after about 36 seconds and roughly 4.8 GiB peak RSS (three runs). The same source tree completed under TypeScript 6.0.3 without diagnostics.\n\n\n### 🙂 Expected behavior\n\nThe full TypeScript 7 typecheck should finish or report actionable diagnostics without exhausting available memory on a project that TypeScript 6 checks successfully. If it cannot finish, it should not silently consume memory without producing useful output.\n\n\n### Additional information about the issue\n\nEnvironment: Linux x64, 8 available CPUs, 15 GiB physical memory, 8 GiB swap, Node.js v26.8.0-alpha.0.0.0. TypeScript 7.0.2 uses its native Linux x64 Go compiler.\n\nMeasurements used `/usr/bin/time -f 'elapsed=%e max_rss_kb=%M exit=%x'` with a 90-second timeout. The TypeScript 6 run had no address-space cap; the TypeScript 7 runs had a 6 GiB virtual-address cap.\n\n| Compiler / mode    | Elapsed |      Peak RSS | Result                                    |\n| ------------------ | ------: | ------------: | ----------------------------------------- |\n| 6.0.3, full check  | 47.87 s | 2,868,588 KiB | Exit 0, no diagnostics                    |\n| 7.0.2, full check  | 36.48 s | 5,026,492 KiB | Exit 2, out of memory; reproduced 3 times |\n| 7.0.2, `--noCheck` |  1.42 s |   685,224 KiB | Exit 0                                    |\n\nThe `--noCheck` result suggests the expensive work happens during semantic checking. The Go traceback includes repeated `github.com/microsoft/typescript-go/internal/checker.(*Relater).recursiveTypeRelatedTo` frames and `checker.(*Checker).getDiagnostics` calls. We have not determined whether this is a leak or unusually expensive type relations. No public minimal repro is available yet because the project is private.\n","author":{"url":"https://github.com/Amatewasu","@type":"Person","name":"Amatewasu"},"datePublished":"2026-09-24T09:51:20Z","url":"https://github.com/microsoft/TypeScript/issues/64423"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9fe82127-5b88-cad7-aa51-ce5536187185
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE026:3CBB3E:162AC46:1C2CD90:6B017757
html-safe-nonce960f79824fba63c2cfeb31ac80b0b4efe4120cca3fc43120afae53d91f6e495e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDI2OjNDQkIzRToxNjJBQzQ2OjFDMkNEOTA6NkIwMTc3NTciLCJ2aXNpdG9yX2lkIjoiMjE1NTk2Mjc1Mjc1NjE4NDkxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb83ad329b40e2a829cfe77c13f3fe5cd47f62c37a25bb70fe02f36ea65afdad3
hovercard-subject-tagissue:5566488569
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/64423/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a01ec6c8d6425e8bc2275f08f3834745222535b60320ed8e29e170ef223ccaf1/microsoft/TypeScript/issues/64423
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a01ec6c8d6425e8bc2275f08f3834745222535b60320ed8e29e170ef223ccaf1/microsoft/TypeScript/issues/64423
og:image:alt🔎 Search Terms typescript 7.0.2 tsc noEmit out of memory typescript-go checker Relater recursiveTypeRelatedTo memory typescript 7 silent typecheck hang 🕗 Version & Regression Information The projec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAmatewasu
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/64423#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F64423
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F64423
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/64423
Reloadhttps://github.com/microsoft/TypeScript/issues/64423
Reloadhttps://github.com/microsoft/TypeScript/issues/64423
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/64423
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/64423
#65548https://github.com/microsoft/TypeScript/pull/65548
#64528https://github.com/microsoft/TypeScript/pull/64528
[7.0 regression] Unbounded type relation expansion during variance computation causes OOMhttps://github.com/microsoft/TypeScript/issues/64423#top
#65548https://github.com/microsoft/TypeScript/pull/65548
#64528https://github.com/microsoft/TypeScript/pull/64528
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
https://github.com/Amatewasu
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Sep 24, 2026https://github.com/microsoft/TypeScript/issues/64423#issue-5566488569
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Sep 24, 2026https://github.com/microsoft/TypeScript/issues/64423#issuecomment-5818775324
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
on Sep 24, 2026https://github.com/microsoft/TypeScript/issues/64423#event-31776716565
https://github.com/Amatewasu
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Sep 25, 2026https://github.com/microsoft/TypeScript/issues/64423#issuecomment-5828271795
https://github.com/Amatewasu
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Sep 25, 2026https://github.com/microsoft/TypeScript/issues/64423#issuecomment-5828937397
Minimal reproductionhttps://github.com/microsoft/TypeScript/issues/64423#minimal-reproduction
https://codesandbox.io/s/7xxcd5https://codesandbox.io/s/7xxcd5
https://codesandbox.io/s/k8nxjghttps://codesandbox.io/s/k8nxjg
https://github.com/Amatewasu
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Sep 28, 2026https://github.com/microsoft/TypeScript/issues/64423#issuecomment-5870461095
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 5, 2026https://github.com/microsoft/TypeScript/issues/64423#event-32495779137
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/bd456af6e35d4a42bb0bb2c01f814e7f0f9ccc96
bd456afhttps://github.com/Amatewasu/TypeScript/commit/bd456af6e35d4a42bb0bb2c01f814e7f0f9ccc96
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 20, 2026https://github.com/microsoft/TypeScript/issues/64423#event-33763175944
Skip combined-constraint check while measuring varianceshttps://github.com/Amatewasu/TypeScript/commit/5b7db18ccc61e90b44dd23d2c21690ae24b9d83c
https://docs.github.com/articles/closing-issues-via-commit-messages
5b7db18https://github.com/Amatewasu/TypeScript/commit/5b7db18ccc61e90b44dd23d2c21690ae24b9d83c
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/f326b555d594de2c1bf44d891b3a915bf7e4bd48
https://docs.github.com/articles/closing-issues-via-commit-messages
f326b55https://github.com/Amatewasu/TypeScript/commit/f326b555d594de2c1bf44d891b3a915bf7e4bd48
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 26, 2026https://github.com/microsoft/TypeScript/issues/64423#event-34244421356
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 27, 2026https://github.com/microsoft/TypeScript/issues/64423#event-34382414880
Skip combined-constraint check while measuring varianceshttps://github.com/Amatewasu/TypeScript/commit/ee7a83cfc96d246a4958421c3107682071040cec
https://docs.github.com/articles/closing-issues-via-commit-messages
ee7a83chttps://github.com/Amatewasu/TypeScript/commit/ee7a83cfc96d246a4958421c3107682071040cec
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/ee6b93d3415273eac06a187d0fe3a54fb45d5c85
https://docs.github.com/articles/closing-issues-via-commit-messages
ee6b93dhttps://github.com/Amatewasu/TypeScript/commit/ee6b93d3415273eac06a187d0fe3a54fb45d5c85
https://github.com/Amatewasu
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 27, 2026https://github.com/microsoft/TypeScript/issues/64423#issuecomment-6446103670
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Oct 29, 2026https://github.com/microsoft/TypeScript/issues/64423#event-34599474721
Skip combined-constraint check while measuring varianceshttps://github.com/Amatewasu/TypeScript/commit/e8e1c1de60ba86702e4d62e3692406f4056f4457
https://docs.github.com/articles/closing-issues-via-commit-messages
e8e1c1dhttps://github.com/Amatewasu/TypeScript/commit/e8e1c1de60ba86702e4d62e3692406f4056f4457
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/fd22d9519fb6eefa1315c629edc34232e0d76360
https://docs.github.com/articles/closing-issues-via-commit-messages
fd22d95https://github.com/Amatewasu/TypeScript/commit/fd22d9519fb6eefa1315c629edc34232e0d76360
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Nov 6, 2026https://github.com/microsoft/TypeScript/issues/64423#event-35354425996
Skip combined-constraint check while measuring varianceshttps://github.com/Amatewasu/TypeScript/commit/8167685e4b7c671bc9124648b38274d006cf9818
https://docs.github.com/articles/closing-issues-via-commit-messages
8167685https://github.com/Amatewasu/TypeScript/commit/8167685e4b7c671bc9124648b38274d006cf9818
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/9fe4fefaba48397c73f8ee6ef51ebaaed4c117c0
https://docs.github.com/articles/closing-issues-via-commit-messages
9fe4fefhttps://github.com/Amatewasu/TypeScript/commit/9fe4fefaba48397c73f8ee6ef51ebaaed4c117c0
philogicaehttps://github.com/philogicae
on Nov 6, 2026https://github.com/microsoft/TypeScript/issues/64423#event-35360706624
fix: unblock the web typecheck with TypeScript 7.1.0-beta and bump pn…https://github.com/philogicae/kaneo/commit/96d959178a14783e28ec58621dcd788b5e80cd1e
96d9591https://github.com/philogicae/kaneo/commit/96d959178a14783e28ec58621dcd788b5e80cd1e
Alexis Delrieu (Amatewasu)https://github.com/Amatewasu
on Nov 12, 2026https://github.com/microsoft/TypeScript/issues/64423#event-35950655694
Skip combined-constraint check while measuring varianceshttps://github.com/Amatewasu/TypeScript/commit/d93edbe16ae4fce92488a53bd2bab2ad0b12f24a
https://docs.github.com/articles/closing-issues-via-commit-messages
d93edbehttps://github.com/Amatewasu/TypeScript/commit/d93edbe16ae4fce92488a53bd2bab2ad0b12f24a
Add regression test for the effective-constraint chase during varianc…https://github.com/Amatewasu/TypeScript/commit/b08d68c34bc9f21fec2c2bd45f880c188340158e
https://docs.github.com/articles/closing-issues-via-commit-messages
b08d68chttps://github.com/Amatewasu/TypeScript/commit/b08d68c34bc9f21fec2c2bd45f880c188340158e
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/64423
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/64423
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.