Analysis OOM (exit 137 at ~4 GB) on large TypeScript graphs

Đang mở
#2,916 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@espetro đang làm issue này rồi.

Từ ngày 3/11/2026.

  • #2944 của @espetro — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
12/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reading linked pull request #2944 to see what it already changes, since the work has moved there. The reproduction is compiling bin.ts (full server graph) with scriptc 0.4.7 under a 4 GB memory limit until it exits 137. Done would mean either streaming analysis that caps per-file type-graph retention, or a documented per-entrypoint compile path that stays under the limit. The issue does not name the specific files to change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Analyzing a large TypeScript graph OOMs (exit 137) around 4 GB RSS. T3 Code's bin.ts full graph / provider-acp-registry coverage is the evidence; a 4 GB sandbox is not enough for one-shot analysis of that entry.

Expected

Either:

  • streaming / incremental analysis that caps per-file type-graph retention, or
  • a documented, supported way to compile per-entrypoint with an explicit module list so the full graph is never in memory at once.

The shipping strategy for T3 is per-entrypoint builds regardless (acp-mcp-bridge, acp-mcp-call). Streaming analysis is quality-of-life, not a Phase 0 blocker.

Actual (0.4.7)

scriptc analysis of bin.ts (full server graph) is killed at ~4 GB (exit 137).

Workaround for downstream

Compile per entrypoint. Do not pass the whole server as one program.

Evidence

Plan E7.

Ngôn ngữ chính
TypeScript
Star
6.5k
Fork
212
Merge trung bình
13 giờ 46 phút
Pull request đã merge (30 ngày)
787

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vercel-labs/scriptc

Tất cả issue của vercel-labs/scriptc

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.