-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Terminal makes VS code unresponsive #40502
Comments
@ytimenkov https://code.visualstudio.com/docs/extensions/debugging-extensions visit that site watch under profiling that will give you all needed insights in the chrome dev console |
@frank-dspeed I will try. However last time I tried to investigate issue with VS code engine itself (#31481) integrated profiler didn't help. |
Happened again. When VS code hangs it doesn't respond at all, so there is no way to open profiler. After few mouse clicks I got a message box asking whether I want to restart VS code because it is unresponsive. Got this call stack from Process Explorer (from thread which consumed 10% CPU):
|
@Tyriar Any suggestions else i would say this is not so easy debug able as it can be related also to external software. we would need to reproduce that on other installations so we need to collect user data maybe some how?
|
One thing comes to my mind: I run tmux via ssh and could be related to how it renders (I.e. many ascii- sequences for colours or cursor movement). Mintty was quite sluggish as well when I attached to the session. |
Are people having this issue all on VMs? VMs are known to have issues with GPU rendering and the terminal is now rendered that way. I suggest trying to close all VS Code windows and then relaunching using |
Code itself runs on the host, terminal runs ssh. |
@ytimenkov did you try relaunching code using |
I thought it is required for vm... Stupid question: if --disable-gpu works, what it tells us? |
@ytimenkov if |
@Tyriar i think that needs to get documented in the readme under something like known issues as such gpu issues will happen to tons of people but they don't report that as they are not as qualifyed as @ytimenkov to report the exact problem |
Another repro in #40886 |
Same problem here. Mine is HIGHLY reproduce-able. I just hold down the enter key in the terminal until it scrolls and then crashes -- every time. (~50 carriage returns) [main 2:24:06 PM] Starting VS Code |
code --status Version: Code 1.19.1 (0759f77, 2017-12-19T09:46:23.884Z) |
Coincident with the crash, I noticed this separate process spike up to ~30%: This is a corporate machine and this process is a piece of the Digital Agent (aka Big Brother) stuff my IT folks run in the background. Is that process just observing the crash? Or causing it? |
@DanT-Git this is probally observing it. I come to that result because of Windows Internal API's but it would be nice to know what it does or logs. You should Consult your IT and Post back here the Result. As we can't Reproduce that issue as HIGLY as you :) without the Software it could be all Kind of stuff. The Key Problem here is the Userland a Operating system layer that is shared. I Think the most logical thing for this issue to let it end is that we need to Create a ISSUE for vscode Unikernel Support so we Eliminate The Userland and let vscode be the user land. So we should Create a Issue to get vscode Running to make it simple on NodeOS if we can reproduce such hanging there we are save that it is a vscode and not a userland issue. |
@frank-dspeed I'm a bit confused by your comment, what is unikernel, userland and nodeos? |
@Tyriar A Operating system is based on layers the userland is the layer that holds stuff to execute Applications i Would Suggest to simply google all 3 words and get familar with that its worth! As this is what will be the future of security and deployment. It will solve many problems Example for a UserLand is for example all After Init and the Init Process it self. Its Called userland because the user can at this state send commands to the cpu and hardware. The Normal Operating systems like Linux are Userlands sitting on top of a Kernel. This abstractions make things Complicated as they Share Stuff. Simply belive me its worth googling this terms maybe you know docker or moby? This are at present Unikernel like Concepts. A Unikernel is a Compiled Kernel that runs a Application on a Single Machine and only got drivers and bindings for this one Application without the Concepts of Users or shells. So your Application is the Only thing running as Operating System Directly. |
Mirage is a Unikernel but as we are using NodeJS we have NodeOS https://github.com/NodeOS/NodeOS
|
@Tyriar as your at microsoft maybe you can get this running
|
@Tyriar I'm having this problem as well. VS Code basically freezes (no crash) when I maximize my terminal. I'd be happy to supply logs if I just get some rundown on exactly what you need. Reading this thread I get no clear picture what you would expect. |
@thernstig you're probably seeing this #42999 |
@Tyriar Thanks for the reference, but I cannot see how that issue is related. When I increase the size of the integrated terminal (dragging the delimiter upwards or maximize) it gets to a certain point where memory and gpu runs amok. It still responds, albeit very slow (seconds). So I do not even need to maximize the integrated terminal. It's happens every time as soon as it is increased about more than half the Y-axis of my screen. Note that this also only started happening for me in the integrated terminal refactoring which I believe was 1.17. |
@thernstig ah, sounds like #36913 / #44416 then. |
I'm getting very sluggish behavior in integrated terminal: ~2 secs / letter typed. Also, it gets to the point I can't switch back to an editorGroup, I'm hung on focus to terminal. I'm able to reproduce this by changing the value for "terminal.integrated.shell.windows" in user-settings. Specifically by commenting out one pointing to cmd, and uncommenting another line pointing to git bash: Now create a new terminal of the new type. Run a command. Still should run smooth. A restart seems to fix it. But it would be nice to deploy multiple terminal types in one session. For reference: Windows latest: Recently added a .code-workspace with commented out "terminal.integrated.shell.windows" setting. |
After some upgrade (1.17 or so, probably related with terminal refactoring) I've noticed that terminal sometimes just hangs.
(If it matters, I run VirtualBox linux VM and run heavy compilation inside, piping compiler output via SSH).
Now I've ran Process Monitor and it showed that 1 CPU core was utilized by "System" process and code --type=gpu-process took 7-9% while nothing was really rendered in terminal (I ran top this time).
When I tried new "status" command it didn't work as advertised:
Maybe there is some interference with other programs I have to have installed ("antivirus"), but still VS Code behavior is odd.
The problem comes time to time (especially under heavy load), so please tell how I can gather more information.
The text was updated successfully, but these errors were encountered: