Repository navigation
Conversation
…erer crashes When the OS or user kills the whole Electron tree, NetworkService and GPU emit process-gone(killed) and are correctly suppressed, then the renderer emits the same shape milliseconds later and was recorded as a genuine crash (13 false reports, F0BMK043Q2V et al). Correlate the events through a short sibling-kill window instead of widening the exit-code suppression list, so Windows exit 1 and Linux 61696 stay reportable on their own. Field offsets run -0.08s to +0.10s, so a solitary renderer kill waits for the window to settle before it persists. The suppression carries a siblingKills count on the existing process_gone_suppressed breadcrumb. Suppression is scoped to the crash *report* only. Renderer recovery still reloads: bundles F0BMQTGDEGN and F0BNCBF8Q00 show the sibling-kill shape where the reload restored the window and the same main process ran on for 37s/136s. Gating the reload there would have left a blank window with no reload, no recovery prompt, and no report, since scheduleRendererRecovery bails before arming the timer that owns the exhausted-recovery prompt. Co-authored-by: Orca <help@stably.ai>
📝 WalkthroughWalkthroughThe crash reporter now tracks recent killed child processes within a bounded two-second window. Renderer kill events wait through a settle interval before persistence. Matching sibling kills suppress renderer teardown reports and add sibling counts to breadcrumbs. Solitary renderer kills remain reportable. Classification accepts an optional sibling-kill count, and tests cover process ordering, exit-code matching, recovery, timer cleanup, and kill-window reset behavior. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/main/crash-reporting/process-gone-classification.ts (1)
96-102: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winShorten incident-specific comments.
Keep the invariant in code. Move field bundle IDs, timestamps, rates, and lifetime evidence to incident documentation.
src/main/crash-reporting/process-gone-classification.ts#L96-L102: retain only the recovery invariant.src/main/crash-reporting/process-gone-classification.test.ts#L430-L432: remove bundle references; the test name already states the behavior.src/main/crash-reporting/process-gone-recorder.ts#L84-L86: retain the coalescing rationale without the incident rate.src/main/crash-reporting/process-gone-recorder.test.ts#L370-L372: remove the child-first incident timeline.src/main/crash-reporting/process-gone-recorder.test.ts#L421-L422: remove the renderer-first incident timeline.As per coding guidelines, comments must be concise, limited to non-obvious information, and preferably one line.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a856443b-fde7-4c92-8bdf-75eb574f5368
📒 Files selected for processing (5)
src/main/crash-reporting/process-gone-classification.test.tssrc/main/crash-reporting/process-gone-classification.tssrc/main/crash-reporting/process-gone-recorder.test.tssrc/main/crash-reporting/process-gone-recorder.tssrc/main/crash-reporting/process-tree-kill-window.ts
| export function observeProcessGoneKill(kill: TrackedKill): void { | ||
| trackedKills.push(kill) | ||
| if (trackedKills.length > MAX_TRACKED_KILLS) { | ||
| trackedKills = trackedKills.slice(-MAX_TRACKED_KILLS) | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Keep only child kills in the bounded ring.
recordProcessGoneCrash sends every killed source here, but countSiblingProcessTreeKills reads only child entries. Renderer entries can evict matching child kills from the 16-entry ring. A later renderer event can then be reported instead of suppressed.
Ignore non-child observations. Add a regression test with matching child kills followed by 16 renderer kills.
Proposed fix
export function observeProcessGoneKill(kill: TrackedKill): void {
+ if (kill.source !== 'child') {
+ return
+ }
trackedKills.push(kill)
if (trackedKills.length > MAX_TRACKED_KILLS) {
trackedKills = trackedKills.slice(-MAX_TRACKED_KILLS)
}
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| export function observeProcessGoneKill(kill: TrackedKill): void { | |
| trackedKills.push(kill) | |
| if (trackedKills.length > MAX_TRACKED_KILLS) { | |
| trackedKills = trackedKills.slice(-MAX_TRACKED_KILLS) | |
| } | |
| export function observeProcessGoneKill(kill: TrackedKill): void { | |
| if (kill.source !== 'child') { | |
| return | |
| } | |
| trackedKills.push(kill) | |
| if (trackedKills.length > MAX_TRACKED_KILLS) { | |
| trackedKills = trackedKills.slice(-MAX_TRACKED_KILLS) | |
| } |
…er report
Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports
whose renderer only died alongside a sibling Chromium child that died at the same
instant:
F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1
F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1
GPU crashed/-1 +180ms
process-gone-classification.ts classifies each event in isolation:
isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable
churn, and `if (reason !== 'killed') return true` then reports the renderer half as
a genuine renderer crash before any cross-source signal exists. Triage reads
"renderer crashed" for what died with three other processes.
process-gone-sibling-correlation keeps a bounded ring of child deaths, populated
before the suppression early-return so churn-suppressed siblings stay visible, and
matches a renderer death against child deaths sharing its failure signature.
What the timing can and cannot support:
- The window is asymmetric. 1s of lookback (a child that died first can plausibly
have taken the renderer with it), but only 250ms of lookahead: a child dying well
after the renderer is at least as likely to be an effect of it — Chromium tearing
down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a
symmetric window would retro-label a genuine lone crash as collateral.
- crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest
1.4.184 cluster is an external taskkill /T where renderer and children are
co-victims; no sibling caused anything there.
- The verdict is not derived from timing alone. A host with a child looping at the
observed 1459/min drops a death into every window, so crashAttribution is set only
when the nearest sibling is within 250ms and no identity repeats. Looser or
repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets,
siblingProcessDeathRepeats) with no attribution.
- The signature match buckets `crashed` with `abnormal-exit` and gates on the exit
code only on win32. Both fixtures are win32, where every process in a collateral
pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality
gate would mean this never fires on macOS or Linux.
The report stays reportable and gains evidence rather than being suppressed
(#14667). Both arrival orders are covered without delaying persistence: a sibling
that dies first is folded into the initial record, a sibling that dies after amends
the record already on disk through attachDetails, the same way the minidump
signature does. Late amends are capped at two per report and skipped when the
rendered evidence is unchanged, so a crash-looping child cannot rewrite the store
during renderer recovery, and a failed amend now leaves a
sibling_attribution_attach_failed breadcrumb instead of vanishing.
Relationship to #12484: it is still OPEN and adds process-tree-kill-window.ts, the
same ring/lookback bookkeeping with a 250ms settle, patching the same recorder
hunks with the opposite policy (suppress the killed/1 renderer report instead of
keeping it). #14667 is test-only — it pinned the keep-the-report policy in tests, it
did not remove a shipped implementation. #12484 has to be closed or rebased out
before this lands.
…blaming the renderer (#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to #12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). #14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. #12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift (cherry picked from commit 6103b78)
|
Closing per maintainer decision. The objection: "A genuine renderer crash can be swallowed by coincidence." That is the correct read — the suppression keys on a timing window, so a real renderer crash that happens to land inside it is silently dropped. Trading a false-positive class for a false-negative class is not a good trade for crash reporting. Context for anyone finding this later: the process-tree-kill cluster this targeted was the largest in every scan of #orca-crashes (roughly 40 of 66, then 42, then again in the 1.4.188 batch). #15251 (merged 2026-08-25) covers the sibling-death correlation half without needing a suppression window. This PR also conflicted in policy with merged #14667, and had been untouched since 2026-08-04. |
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
…blaming the renderer (stablyai#15251) * fix(crash-reporting): correlate concurrent process deaths on a renderer report Two 1.4.184 reports (a326935a, 1862f316) are renderer "crashed"/-1 crash reports whose renderer only died alongside a sibling Chromium child that died at the same instant: F0BQMB30GJX network.mojom.NetworkService crashed/-1 -21ms -> renderer crashed/-1 F0BRPP8TC0Y audio.mojom.AudioService crashed/-1 -2ms -> renderer crashed/-1 GPU crashed/-1 +180ms process-gone-classification.ts classifies each event in isolation: isRecoverableChromiumChildProcess discards the utility/GPU halves as recoverable churn, and `if (reason !== 'killed') return true` then reports the renderer half as a genuine renderer crash before any cross-source signal exists. Triage reads "renderer crashed" for what died with three other processes. process-gone-sibling-correlation keeps a bounded ring of child deaths, populated before the suppression early-return so churn-suppressed siblings stay visible, and matches a renderer death against child deaths sharing its failure signature. What the timing can and cannot support: - The window is asymmetric. 1s of lookback (a child that died first can plausibly have taken the renderer with it), but only 250ms of lookahead: a child dying well after the renderer is at least as likely to be an effect of it — Chromium tearing down the dead renderer's channels, or renderer_recovery_reload at +264ms — and a symmetric window would retro-label a genuine lone crash as collateral. - crashAttribution is 'concurrent-process-deaths', not a causal claim. The largest 1.4.184 cluster is an external taskkill /T where renderer and children are co-victims; no sibling caused anything there. - The verdict is not derived from timing alone. A host with a child looping at the observed 1459/min drops a death into every window, so crashAttribution is set only when the nearest sibling is within 250ms and no identity repeats. Looser or repeating deaths still ship as evidence (siblingProcessDeathCount, signed offsets, siblingProcessDeathRepeats) with no attribution. - The signature match buckets `crashed` with `abnormal-exit` and gates on the exit code only on win32. Both fixtures are win32, where every process in a collateral pair reports crashed/-1; POSIX surfaces a per-process wait status, so an equality gate would mean this never fires on macOS or Linux. The report stays reportable and gains evidence rather than being suppressed (stablyai#14667). Both arrival orders are covered without delaying persistence: a sibling that dies first is folded into the initial record, a sibling that dies after amends the record already on disk through attachDetails, the same way the minidump signature does. Late amends are capped at two per report and skipped when the rendered evidence is unchanged, so a crash-looping child cannot rewrite the store during renderer recovery, and a failed amend now leaves a sibling_attribution_attach_failed breadcrumb instead of vanishing. Relationship to stablyai#12484: it is still OPEN and adds process-tree-kill-window.ts, the same ring/lookback bookkeeping with a 250ms settle, patching the same recorder hunks with the opposite policy (suppress the killed/1 renderer report instead of keeping it). stablyai#14667 is test-only — it pinned the keep-the-report policy in tests, it did not remove a shipped implementation. stablyai#12484 has to be closed or rebased out before this lands. * chore: remove merge hook formatting drift
What this fixes
Crash signature:
rendererrender-process-gonereason="killed"— win32exitCode 1(Chromium'sbase::win::kProcessKilledExitCode, i.e. an externalTerminateProcess/taskkill /F), linuxexitCode 9(SIGKILL).Coverage: this is work item #2 of the 127-report crash batch, the 13-report
G6-killedfalse-crash cluster (population A, 10 reports = whole tree killed; population B, 3 reports = isolated kill of a frozen renderer). Every one of the 13 is a false crash report — nothing in Orca faulted. This change directly suppresses the 10 in population A. The 3 in population B have no sibling child kills, so the sibling correlation does not fire for them and they keep being reported today; see Trade-offs.Root cause. When the OS or the user kills the whole Electron process tree (Task Manager "End task",
taskkill /F /T, an installer's app-kill, session logout,kill -9), Chromium's Network Service, the GPU process and the renderer each emit an independentrender-process-gonewith the samereasonand the sameexitCode, milliseconds apart. Orca classifies each event in isolation:src/main/crash-reporting/process-gone-classification.ts:70—isRecoverableChromiumChildProcess(...)correctly suppresses the GPU andnetwork.mojom.NetworkServicehalves as recoverable child churn, and in doing so throws away the only evidence that the whole tree is going down.src/main/crash-reporting/process-gone-classification.ts:79-85(onorigin/main) — the renderer event then falls throughexitCode === 15 || isWindowsControlTerminationExitCode(exitCode)at:79(WINDOWS_CONTROL_TERMINATION_EXIT_CODESat:4holds0xC000013Aand0x40010004but not1) and returnstrueat:85,return !(source === 'renderer' && expectedTeardown === 'renderer-reload'). There is no correlation between sources, so a renderer kill 84 ms after two suppressed sibling kills is recorded as a genuine renderer crash and posted to the crash channel.src/main/index.ts:671-678—getExpectedTeardownScopecan only return'app-shutdown'when Orca itself initiated the quit (isQuitting || isQuittingForUpdate()), so an externally-killed tree always looks unexpected.The fix correlates the events instead of widening the exit-code suppression list:
src/main/crash-reporting/process-tree-kill-window.ts(new, 56 lines) — a 16-entry ring of recentkilledevents;countSiblingProcessTreeKillscounts child kills with an identicalreason+exitCodeinsidePROCESS_TREE_KILL_WINDOW_MS = 2_000.src/main/crash-reporting/process-gone-recorder.ts:105-116— the ring is populated before the early return for suppressed child events, so the GPU/NetworkService halves are recorded even though they are not reported.src/main/crash-reporting/process-gone-classification.ts:81— new optionalsiblingChildKillsinput; arenderer+killedevent withsiblingChildKills > 0returnsfalse.src/main/crash-reporting/process-gone-recorder.ts:136-144— field offsets between the first and last event of one tree kill run -0.08 s to +0.10 s, i.e. the renderer can arrive before its children, so persistence of a rendererkilledreport is deferred byPROCESS_TREE_KILL_SETTLE_MS = 250and the sibling count is re-checked when the timer fires. Both orderings are caught. The timer isunref()'d.siblingKillscount on the existingprocess_gone_suppressedbreadcrumb, so the evidence survives into the next bundle.Windows exit 1 and Linux 61696 are not blanket-suppressed — the deliberate assertions at
process-gone-classification.test.ts:261-271and:296-323still pass, so genuinely solitary kills (populations B and C) stay reportable.Representative reports in the Slack crash channel:
F0BMK043Q2V)F0BMVQ3640H)F0BMMN2NM3N)Fix evidence
1. Red without the source fix
Scratch worktree at the branch commit, source files reverted to
origin/main:(
process-tree-kill-window.tsis a brand-new module with noorigin/maincounterpart, so it is left in place — deleting it too only produces a module-resolution error, not a behavioural failure. With it left in place the reverted call sites simply never consult it, and the tests fail on real assertions.)The verbatim payload the reverted code hands to
store.recordfor the F0BMK043Q2V timeline — this is exactly the false report users see in the channel:Scratch worktree removed afterwards with
git worktree remove --force; nogit stashwas used at any point.2. Green with the fix (same tests, on the branch)
3. Regression suite — the whole touched module
src/main/crash-reporting/is the only directory this branch touches.Typecheck and lint:
Windows verification: the unit suite was verified on Windows 11 26200 (13 files / 108 tests green). The 4
src/main/windowfailures on that machine are pre-existing onorigin/main— they are theclipboard-file-copytests, and this branch does not touchsrc/main/windowat all. No other pre-existing failures were observed in the touched module on macOS or Windows.4. Field data (verbatim from the crash bundles)
F0BMK043Q2V.txt(win32 10.0.26200, 1.4.164) — Network Service, GPU and renderer die with the samekilled/1inside 84 ms; the first two are suppressed and the third becomes a crash report:The renderer's own heap in that report is
usedHeapMB: 34, totalHeapMB: 38, heapLimitMB: 4192— nowhere near a limit. Nothing faulted; the tree was killed and the app relaunched 6.4 s later.F0BMVQ3640H.txt(win32 10.0.26200, 1.4.167) — the opposite ordering, which is why the 250 ms settle timer exists. The renderer event lands first and the children follow +5 ms and +41 ms later:F0BMMN2NM3N.txt(linux 6.8.0-136, 1.4.164) — the same shape on Linux with raw wait status 9 (SIGKILL):Why the reload is deliberately left alone. Two bundles show the sibling-kill shape where the recovery reload actually worked and the same main process kept running:
Gating the reload on the same signal (as the original plan sketched) would have left those users staring at a blank window with no reload, no recovery prompt and no report, because
scheduleRendererRecoverybails before arming the timer that owns the exhausted-recovery prompt. Suppression here is scoped to the crash report only.ELI5
Imagine a building with a receptionist (the main process) and three workers: the window-washer (renderer), the electrician (GPU) and the phone operator (network service). When the building's fire alarm evacuates everyone at once, the receptionist gets three separate "so-and-so left" notes within a tenth of a second. The receptionist already knows that the electrician and the phone operator wander off all the time, so those notes go in the bin. But the window-washer leaving is unusual, so the receptionist files an incident report: "the window-washer collapsed at his post."
He didn't collapse. The building was evacuated. But because each note was read on its own, nobody noticed that all three left through the same door at the same second.
This change gives the receptionist a two-second memory. Before filing an incident report about the window-washer, he checks whether anyone else left the same way in the last two seconds. If they did, it was an evacuation, not a collapse — no report. And because the notes sometimes arrive out of order, he waits a quarter of a second before filing, in case the other notes are still on their way. If the window-washer really did collapse alone, no other notes arrive, the quarter-second passes, and the report is filed exactly as before.
One thing he still does either way: send someone to reopen the window. Filing a report and reopening the window are different jobs, and stopping the false report shouldn't stop the repair.
Trade-offs
Not "none". Concretely:
reasonandexitCode, its report is suppressed. In the 22-reportG6-killedgroup no bundle shows that shape, but it is a real possibility, especially on a host with a Chromium child crash-loop. Mitigation shipped: theprocess_gone_suppressedbreadcrumb now carriessiblingKills, so a suppressed event is still visible in the next bundle from that host and the pattern is greppable.exit 1kills of a renderer whose 60 s heartbeat had already stalled 55 s / 164 s / 2000 s earlier — i.e. a frozen or OS-suspended renderer that a user then killed with "End task". They have no sibling kills, so they still file a crash report. They are still false, and they arguably deserve their own classification ("unresponsive renderer terminated") driven off the heartbeat gap rather than the sibling ring. Known follow-up.killedreport is now persisted 250 ms later than before. If the main process itself dies inside that window, the report is never written. For the whole-tree case that is the point. For a solitary renderer kill immediately followed by a main-process death, a report that used to be written is now lost. There is no way to have both orderings covered and zero delay.trackedKillsinprocess-tree-kill-window.ts), reset only byresetProcessTreeKillWindowForTest. Entries age out by the 2 s window predicate and the 16-entry cap rather than by a sweep, so a stale entry can sit in the array until it is pushed out. It is bounded and never grows, but it is not per-window or per-launch state.shouldRecoverRendererAfterProcessGonesoscheduleRendererRecoverystops reloading into a dying tree. That was not done, and the reasoning is in a comment atprocess-gone-classification.ts:96-102plus a regression test. The field evidence above (F0BMSSVEE8J, F0BM2KXSQ79) shows the reload is the only thing that recovers those users; gating it would trade one lost report for a permanently blank window. Known follow-up if someone later wants to skip the reload: it needs a positive signal that the main process is also going down, not the sibling count.61696still renders as an opaque61696rather thanexited(241)in the channel. That is diagnostics for the other (genuine, still-unexplained) Linux cluster — population C, 7 reports — and is deliberately out of scope here. Known follow-up.taskkill /F /PID <renderer> <gpu> <network>against a packaged build has not been run. The exit code1behaviour comes from the field bundles, not from a local repro.Adversarial review
2 independent adversarial review rounds were run against this branch. Each round used a fresh reviewer with no memory of the prior round — no shared context, no summary of earlier findings, re-deriving the defect and the fix from the diff and the field bundles.
kProcessKilledExitCode = 1toWINDOWS_CONTROL_TERMINATION_EXIT_CODES(which would have blanket-suppressed every Windowsexit 1and broken the deliberate assertions atprocess-gone-classification.test.ts:261-271/:296-323), the 250 ms settle timer for the reversed ordering seen inF0BMVQ3640H, and the comment atprocess-gone-classification.ts:96-102explaining why suppression stays scoped to the crash report so the renderer recovery reload still runs./perfskill review verdict: no regression. The added work on the process-gone path is one array push plus a linear scan of at most 16 entries, and the only new timer is a single 250 msunref()'dsetTimeoutper rendererkilledevent — a path that fires at most a handful of times in the life of a process. The pre-existingrecordCoalescedDurableCrashBreadcrumbcoalescing onprocess_gone_suppressed(which exists because a network-service crash loop was observed at 1459/min) is preserved unchanged by the refactor intorecordSuppressedProcessGone.Made with Orca 🐋