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
{{ message }}
Repository navigation
bug(pty): MSVC assertion crash on close — remove_pty_baton(baton->id) #50
When Electron exits without calling ptyManager.killAll(), node-pty's libuv async handles (called "batons") are still pending as the Node.js runtime tears down. The remove_pty_baton assertion fires because node-pty attempts to clean up those handles in a partially-destroyed state.
Fix
Call ptyManager.killAll() as the first step in the will-quit handler, before any other teardown runs. This gives node-pty time to complete its cleanup before the process exits.
Activity
Merge PR amirlehmam#51: kill all PTYs on will-quit to prevent MSVC as…