Skip to content

OOM typescript, mac m1+. #58274

Closed
Closed

Description

🔎 Search Terms

I tried to find similar typescript OOM in issue github and on the Internet.

🕗 Version & Regression Information

typescript - 5.2.2
macos - macOS Ventura 13.6
chip - Apple M2

This problem appeared with typescript 5+, updating to the latest version of typescript does not prevent the error. Regressing to version 4 of typescript solves this problem. Also, this problem is reproduced only on macs with m1 processor and higher.

⏯ Playground Link

💻 Code

🙁 Actual behavior

Typescript is flowing with OOM errors.

🙂 Expected behavior

Working properly with memory.

Additional information about the issue

I am running eslint on a specific area where the ts/ts files with the react application are located. As a result, the process kills with a memory error - that is, OOM occurs.

Below I provide two snapshots with memory, both to be made after using garbage collector. To see exactly which typescript objects are leaking, it is enough to compare these reports.

Below I attach a link to google drive with snapshot memory. It was not possible to attach this archive directly to the github issue due to the larger file size. - https://drive.google.com/file/d/1XHJCz79eAwBKiHDS2-vtpcR--7b_xF_Z/view?usp=drive_link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Needs InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions