-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conpty process blocked update on Windows #225719
Comments
Upon killing the processes hold the lock and taking the update, the restored terminals show as disconnected, and I could not create new terminals until I restarted vscode: Edit: so far 4 for 4 on hitting this each time I update Insiders Originally posted by @connor4312 in #225160 (comment) |
@connor4312 I am looking to repro but maybe I am missing some steps, can you confirm. Is there any particular set of terminal commands that trigger this issue ?
|
That's right. But specifically, I usually have the vscode-copilot repo open which has its long running watch tasks, so that may also be a part of it. |
Didn't have any luck with the copilot repo as well, can you try the following steps before applying the next update
|
Thanks, sent! |
Thanks for the profile, based on the process lifetimes I was able to backtrack the steps that might repro the issue and I now have a reliable repro,
I feel the scenario during the update might have been the same, @connor4312 just to validate this scenario can you check if update fails when you don't have any debugging session. |
I updated Insiders today without a debugging session and didn't run into the issue 🙂 |
This broke my Insiders build today, I think I tried to cancel setup when the issue happened and then I opened Insiders again to see if that would work without digging out LockHunter. The update failed and then gave the "antivirus might have interfered with the update" error, and I had to reinstall Insiders at that point. |
Today and for the mid-day Insiders yesterday I was much more careful about the update
This does happen even when there is no debugging session active. In both cases I had the task terminals open for Copilot Chat, so I suspect maybe task reconnection logic is related to this issue |
@deepak1556 was going to check this out when he's free 🙏 |
Didn't have much cycles this milestone due to my vacation, I will look into this in the next debt week. |
By the way I've been seeing this every day since I have been debugging copilot chat simulations |
Starting with today's insider this issue should be fixed, please selfhost again with |
@connor4312 the openconsole.exe process should have an associated client process running that would be keeping it from exiting, like node.js process or something (these are process that you spawn from the integrated terminal). Can you check the process tree to see what process are associated with the running openconsole process, it would give a hint on how to repro the issue on my side. Thanks! |
Will do next time I hit this |
Thanks for checking, yes can you share the dump file to [email protected] Looks like having the job handle microsoft/node-pty#755 would be the right fix given we force close application with background updates and the pty agent process would be unable to drain data from the openconsole process in this case. I actually reverted that change for a more graceful shutdown on the pty side microsoft/node-pty@667e93f. If the minidump shows that to be the case, I will go ahead and bring back this fix. |
Some more updates from the discussion
Learnt that we can inspect the following variable
To identify the clients that are holding onto the openconsole process. @connor4312 would you be able to collect a full process dump, I would like to find the root cause of this issue before pushing any workarounds. To get a full memory dump, you can use https://learn.microsoft.com/en-us/sysinternals/downloads/procdump
|
I attempted to update Insiders today using the usual "apply update and restart" action and ran into the following error. It looks like some console-related processes blocked update. No VS Code windows were open.
The command line of the process doing the blocking was:
I am using the new
windowsUseConptyDll
setting, if that matters.The text was updated successfully, but these errors were encountered: