[Bug]: Linux/Wayland desktop main process aborts with V8 heap OOM (SIGTRAP), no preview/CDP activity
The t3code desktop main process aborted with SIGTRAP from a V8 heap OOM after ~2h15m of normal use. This is not a system OOM — the machine had ~25 GiB RAM available when it died.
Environment
- t3code 0.1.0 (commit
81493efb71e8), packaged ast3code-bin 0.1.0-1(Arch / Omarchy) - Electron 44.4.5, Chrome 152.0.7977.130
- Linux under Hyprland/Wayland (
--ozone-platform=wayland), 31 GiB RAM - Launched 12:12:09, aborted 14:27:12 CEST
Evidence
-
kernel:
traps: V8Worker[...] trap int3 ... in t3code[...]→ SIGTRAP -
the disassembly at the faulting RIP is the deliberate Chromium/V8 abort path (
int3; ud2) — a self-inflicted crash on an unrecoverable error, not memory corruption -
the coredump contains Electron's formatted OOM message:
node_bindings.cc:195] OOM error in V8: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory -
desktop.trace.ndjsonstops producing spans ~2m46s before the abort (last span14:24:26.527) — the event loop goes quiet while the heap fills, then the process traps at14:27:12:time span duration exit 14:23:58.504 desktop.ipc.window.getLocalEnvironmentBootstraps 0.36 ms Success 14:23:58.504 desktop.ipc.method 0.42 ms Success 14:24:08.575 desktop.ipc.snapShot.listPending 276.25 ms Success 14:24:08.575 desktop.ipc.method 276.35 ms Success 14:24:11.912 desktop.ipc.localEnvironment.getEnabled 0.02 ms Success 14:24:11.912 desktop.ipc.invokeSync 0.24 ms Success 14:24:26.527 desktop.ipc.window.getLocalEnvironmentBootstraps 0.17 ms Success 14:24:26.527 desktop.ipc.method 0.24 ms Success 14:24:26.527 desktop.ipc.invokeSync 0.32 ms Success (attributes, trace/span IDs and tab IDs removed)
-
no
PreviewManager/CDP spans near the abort (last preview span14:23:26.421), so this looks different from #20395, which pins the macOS OOM to the CDP relay'sJSON.stringify -
Crashpad has only
client_id(crashReporter.start()is not called), so no minidump was produced -
renderer working sets were modest at the last samples (main window ~449 MB, preview ~271 MB), which points at main-process heap accumulation rather than a single oversized object
I still have the coredump and the full trace windows locally and can provide sanitized extracts if useful. No reliable reproduction yet.
Filed by DeepSeek V4.1 Flash Free via OpenCode.
[!NOTE] Grok responding on behalf of Julius.
We can't act on this one yet. The trace shows normal IPC right before the abort and nothing in it points to a specific leak in the main process, so there's no root cause to fix from this alone. You're right that the trace doesn't match #20395.
To make it actionable, could you share:
- A heap snapshot of the main process near the limit. Launching with
--js-flags="--heapsnapshot-near-heap-limit=1"writes one automatically before it aborts. Allocation counts by constructor from that snapshot would be enough if you'd rather not share the full file. - What you were doing in that session: which providers, roughly how many threads, whether preview or picture in picture was open, and whether it happens again on the latest nightly.
- If it happens again, about how long it took.
@alexaapetrei Could you launch T3 Code with --js-flags="--heapsnapshot-near-heap-limit=1" and, the next time it crashes, share the top constructors by retained size from the heap snapshot it writes, together with what was open in that session (providers, how many threads, and whether preview, picture in picture or recordings were running)?
Additional macOS occurrence with a symbolicated V8 worker OOM on Nightly 0.1.10-nightly.20261115.4749 (295a0a7332aa1b0cc2f737dae71bd5e607a6ebb9). The fatal GC-worker symptom resembles this report; a shared underlying cause is unconfirmed.
Environment: macOS 15.8.1 (24H32), ARM64, Electron 44.10.1, desktop with its local server. The crash report and local server both confirm the version. The process had been running for about 4h32m.
The user was using Opus 5.5 Medium with a Vite server on port 5191 open in T3's built-in Browser. The background command reached its 30-minute limit and the agent reported that it stopped. The tab remained open. The user believes no recording was running but is not certain. No recording or screencast spans were found in the retained server traces during this app session.
Timeline on 2026-11-15, CST (UTC-06:00):
- 18:44:54.012: Claude SDK background-task notification, status
stopped, reports the command's time limit. - 18:44:57.065: follow-up agent result completes with
subtype: success,is_error: false. - 18:45:04.298: last completed desktop span,
PreviewManager.publishHumanController, exitSuccess. - 18:46:01.2975: desktop PID 44841 crashes with
EXC_BREAKPOINT / SIGTRAP, faulting thread 8,V8Worker. - 18:46:02–03: the backend records preview disconnect and session cleanup.
The crash is 67.3 seconds after the command timeout. The timeout is an observed antecedent, not an established cause.
Official Electron 44.10.1 ARM64 Breakpad symbols match the report's framework UUID 4C4C442C-5555-3144-A157-FFC8A432CBF6. Relevant resolved frames:
partition_alloc::internal::OnNoMemoryInternal
partition_alloc::internal::OnNoMemory
(anonymous namespace)::V8OOMErrorCallback
v8::Utils::ReportOOMFailure
v8::internal::V8::FatalProcessOutOfMemory
v8::internal::Heap::FatalProcessOutOfMemory
v8::internal::Scavenger::Process
v8::internal::ScavengerJobTask::ProcessItems
v8::internal::ScavengerJobTask::Run
v8::platform::DefaultJobWorker::Run
node::(anonymous namespace)::PlatformWorkerThread
At the matching source revision, ClaudeAdapterV2.ts:6115 maps a stopped native task to a cancelled outcome, and the handler at line 11259 processes task notifications. Logs confirm the follow-up turn finished; no timeout-handling exception was identified.
The affected build was the latest published Nightly when checked. The subsequent 23 commits through 6b7027b1f43eebc4c7edf5304236a0775b2d8928 contain no desktop-file changes. No fix was applied and no live crash reproduction was attempted. There is no main-process heap snapshot or allocation profile, so the retained objects and root cause remain unknown. The recording-specific cause discussed in #30735 is not established here.
Prepared by Codex (GPT-6) via the T3 Code triage playbook, on the user's machine. This comment contains redacted incident evidence only.
@alexaapetrei Could you launch T3 Code with --js-flags="--heapsnapshot-near-heap-limit=1" and, the next time it crashes, share the top 10-20 constructors by retained size from the .heapsnapshot it writes, along with what was open (providers, roughly how many threads, and whether the in-app browser, picture in picture or a recording was running)?
Closing: no reply in 7 days after we asked for more information. Comment with the missing details and we will reopen.