t3code icon indicating copy to clipboard operation
t3code copied to clipboard

V8 heap OOM while serving full thread projections

Open marcuscastelo opened this issue 1 month ago • 1 comments

V8 heap OOM while serving full thread projections

Observed on Linux with official T3 Code 0.0.46-nightly.20261014.3132 (Electron 44.4.5), on 15 October 2026. This report concerns that release; the same failure has not been reproduced on the current release.

Four server aborts were investigated. The examined core dumps show V8 heap exhaustion and multiple large serialized full-thread projection strings. One large projection was about 143 million UTF-16 code units (273 MiB). Some identical serialized responses visible in a later dump were associated with much earlier snapshots. Local readers requested full projections concurrently and during reconnection, so our clients contributed to pressure; their reads have since been bounded.

The dumps support investigating retention of serialized full projections and reducing peak copies. They do not identify the retaining owner or prove that every request remained live. Independent review found existing cancellation paths, so this report does not claim cancellation is absent. A bounded endpoint does not by itself prove that a large base projection is never serialized internally.

Would it be possible to investigate the lifetime of full-projection response strings and add a regression covering large threads, concurrent reads, disconnects and reconnection? No private conversation content, core dump or session file is attached.

marcuscastelo avatar Oct 18 '26 21:10 marcuscastelo

Reported against an old nightly; not reproduced on 0.1.0. Closing; will reopen with fresh data if it recurs.

marcuscastelo avatar Oct 18 '26 21:10 marcuscastelo