You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
patch node-pty's Windows conpty_console_list_agent so AttachConsole failures fall back to the shell PID instead of throwing
refresh the pnpm patch hash in the lockfile
Repro / validation
Reproduced locally on Windows with current 1.4.33 code: pnpm dev rendered Orca, but stderr showed node-pty/lib/conpty_console_list_agent.js throwing Error: AttachConsole failed during startup cleanup.
Reduced repro with Electron-as-Node + node-pty.spawn(...).kill() printed the same helper stack before the patch.
After the patch, the reduced repro exits cleanly with no helper stack.
After the patch, pnpm dev with a fresh ORCA_DEV_USER_DATA_PATH rendered Orca; Playwright confirmed the window identity matched this worktree; stderr scan found no AttachConsole failed / conpty_console_list_agent stack.
Related to #2997. I did not reproduce the exact 0xc0000374 heap-corruption crash, but this fixes the Windows ConPTY helper failure reproduced locally in the same startup area.
Update from the original reporter (#2997). I tested the merged fix on
version 1.4.35.0 and the crash persists. Crucially, comparing the
WER reports before and after the fix shows the StackHash is byte-for-byte
identical, which means the heap corruption is happening at the exact
same point in the call stack — the fix has not touched the code path
that's actually crashing.
Comparison: WER signatures before vs. after the fix
The BucketId differs only because Windows includes the app version in
the bucket. The StackHash and StackHash-derived AdditionalInfo are
identical, so it's the same crash.
Loaded-modules diff (potentially useful)
In 1.4.33, the crashing process had loaded the DirectX/MediaFoundation
stack before dying: d3d11.dll, dxgi.dll, dxcore.dll, directxdatabasehelper.dll, D3D10Warp.dll, Microsoft.Internal.WarpPal.dll, dcomp.dll, mf.dll, mfplat.dll, MFCORE.DLL, RTWorkQ.DLL.
In 1.4.35none of those modules are loaded at crash time. Only CoreUIComponents.dll was added. This suggests the crash in 1.4.35 is
hitting earlier in startup than in 1.4.33 — before the graphics/MF
stack is brought up — yet still ends up at the same ntdll offset with
the same StackHash, and with conpty.node already loaded.
Last known good version: 1.4.3 (still stable on rollback)
Happy to share the full Report.wer files and the .dmp if useful.
The dump should let you see the actual call stack going into ntdll —
might point at a different allocation/free path in node-pty than the
one the PR targeted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
conpty_console_list_agentsoAttachConsolefailures fall back to the shell PID instead of throwingRepro / validation
1.4.33code:pnpm devrendered Orca, but stderr showednode-pty/lib/conpty_console_list_agent.jsthrowingError: AttachConsole failedduring startup cleanup.node-pty.spawn(...).kill()printed the same helper stack before the patch.pnpm devwith a freshORCA_DEV_USER_DATA_PATHrendered Orca; Playwright confirmed the window identity matched this worktree; stderr scan found noAttachConsole failed/conpty_console_list_agentstack.Related to #2997. I did not reproduce the exact
0xc0000374heap-corruption crash, but this fixes the Windows ConPTY helper failure reproduced locally in the same startup area.