Open connor4312 opened 2 months ago
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 https://github.com/microsoft/vscode/issues/225160#issuecomment-2293757400
@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 ?
windowsUseConptyDll
enabledThat'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
Windows Performance Recorder
from system start menuCPU usage, Disk I/O activity, File I/O activity, Registry I/O activity, Handle usage
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,
windowsUseConptyDll
on the vscode-copilot repoOpenConsole.exe
process will be created for each of the npm tasksCopilot extension
OpenConsole.exe
process is leaked and end up locking the resources folderI 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 🙂
I saw this just now:
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
just to validate this scenario can you check if update fails when you don't have any debugging session.
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.
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.