-
Notifications
You must be signed in to change notification settings - Fork 501
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
VSCode UI locks up occassionally when using "Powershell: Restart Current Session" #2377
Comments
It also appears to happen when just closing the terminal with the X button, so I imagine this is tied to the shutdown process in some way. |
This is odd... I don't see how the extension could be causing VS Code to hang like this. I notice you are using insiders... I'm curious to know if you only experience this in insiders or it also happens in stable. |
I'll give stable a shot for a day, but note that @SeeminglyScience can also
repro the issue.
…On Thu, Dec 19, 2019, 3:09 PM Tyler James Leonhardt < ***@***.***> wrote:
This is odd... I don't see how the extension could be causing VS Code to
hang like this. I notice you are using insiders... I'm curious to know if
you only experience this in insiders or it also happens in stable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2377?email_source=notifications&email_token=ADUNKUXZJ5WD3YSOSS4A5FLQZP5JTA5CNFSM4J4OCEYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHLK5DI#issuecomment-567717517>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADUNKUW7C5SW3WH5LVVEHRTQZP5JTANCNFSM4J4OCEYA>
.
|
Yeah I don't use insiders, it's on stable too. @TylerLeonhardt Are you not able to reproduce it? Maybe it's a Windows thing? It happens at least 50% of the time for me. |
Happens for me too on stable release. |
Are we going to get freezing consoles/VSCode until windows 21H1? can't it be fixed sooner? Originally posted by @ili101 in PowerShell/PowerShell-RFC#238 (comment) To reproduce write |
@ili101 Oh wow nice find, I must have updated windows at the same time as the preview extension and didn't think about it. Unfortunately it's unlikely that this extension can do anything. Any code in this project is several layers of abstraction away from whatever is causing the issue. |
Hmm. Probably no way to proactively detect this and throw a toast or something that says "it's not Powershell's fault!"? :) |
microsoft/terminal#1810 references that you have to be using ConPTY for it to happen. I'm going to try unchecking this box: And seeing if it still happens. If not, then that's something that can definitely be warned about, the extension can pop up a toast with "there is a known issue with using Conpty where you may experience lockups, would you like to turn it off?" EDIT: Cure may be worse than the disease: microsoft/vscode#45693 |
Added this function to my profile so that I don't have to wait forever for code to realize it is hung. function bounceCode {get-process code* | stop-process;code} |
For update, this is stuck on microsoft/terminal#1810 until its fixed, that's the root cause it seems. |
yikes... ok. Well, I'm tempted to close this but for now, I'll mark it as a vscode-bug until I'm in a triage meeting with Sydney and Rob again. |
According to the terminal team it can be fixed in VSCode, looking for a related issue if it already exists. EDIT: New issue created as microsoft/vscode#88003 |
The new root issue is microsoft/node-pty#375 which vscode depends on. |
I just hit this issue myself. The way to differentiate this from other hangs is that the entire VSCode window will stop responding, so no responses to mouse clicks like highlighting or opening files. If I hit it again I'll get a proc dump. |
As a workaround, I wonder if using @Tyriar just so you're aware of this issue - there are a few folks on Twitter too who've complained about this issue. |
@TylerLeonhardt you can also move back to winpty to avoid it as the crash is due to conpty:
You might notice other quirks with that though. |
That sounds nice! Excited to be able to address this. |
@brwilkinson This is the first part of the solution that is now in @code. @Tyriar made it so that it no longer hard locks when the original issue occurs. At this point to recover, you just need to do the following steps:
And you should be back in business rather than having to wait for vscode to allow you to kill it. The second part of the fix will hopefully be twofold:
|
Thanks @JustinGrote any preferred environment to work in for least issues? i.e. code vs code-insiders ? |
Happens everywhere still currently, but I'd say to avoid the crash don't ever click the "trash" button on the powershell integrated terminal, especially if you have some already-entered text at the command prompt. The way to consistently reproduce it is to type 'a' at the integrated console and then click the trash icon, it will hard crash every time. |
haa I haven't had any problem trying to reproduce it 😀 ... some days getting any work done feels like wrestling an octopus 🐙 seems like there is a plan in place. .. 👍🏻 ... #3216 I'm in an endless loop between this other issue and this one. |
@JustinGrote @brwilkinson Can either of you confirm that this is still reproducing or not on the latest version of VS Code and the preview extension? We've not automated the recovery steps, but I think the UI lockups should be gone (I can't repro on my machine). |
hmmm yes and no :) let me think about it for a day... Definitely far less crashes/freezes... I mainly want to think about the following, which I am still seeing a little bit. i.e. which then goes to One thing for sure I am not currently losing any productivity over this... using powershell preview extension in both Code and Insiders. |
@andschwa UI full lockups are gone due to PTY updates but they've basically just been masked. It's easy to reproduce, just type 'a' into integrated console and kill the console The PTY handler will crash, you have to restart it, and then you also have to coordinate the restart of the integrated console after. I think @Tyriar is still working on the PTY crash part. Maybe @TylerLeonhardt can help with a press for resources on the vscode side for this tricky issue :) Video.mp4 |
Is this in a particular environment? I've tested on my Mac and it doesn't repro. Screen.Recording.2021-04-28.at.3.33.13.PM.mov |
I'm on Windows Insider, able to do it in both stable and insiders for years (that demo was just a few minutes ago). I don't think it's explicity OS specific, it just may require a different character to reproduce. I think this is the most current upstream issue: |
Oh...I see. IMHO terminal support on Windows is still...beta. Heck, even the Terminal app on Windows is in preview (still? I think). Thanks for the update! |
@JustinGrote The bug you linked appears now resolved. Is this still reproducing? |
I can no longer reproduce with the "a and then trash icon" method, so hopefully we are good! @Tyriar thanks so much for finally helping put this long standing aggravating issue to bed. |
Issue Description
VSCode locks up on occasion when using powershell: restart session. It looks like it happens before the PSES loads. No debug was used in this attempt.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
##Issue Type: Performance Issue
Latest Powershell Preview: Use the command "Powershell: Restart Current Session". The freezing is intermittent but I have been able to reproduce on two separate computers now.
Extension version: 2019.12.0
VS Code version: Code - Insiders 1.42.0-insider (241d4048aabc31db0baed66bb3d58cf3210d981d, 2019-12-17T10:43:45.626Z)
OS version: Windows_NT x64 10.0.19041
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: