-
Notifications
You must be signed in to change notification settings - Fork 31k
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 hangs when switching between local login and remote desktop login #167556
Comments
same problem for a long time |
same here, but not for a long time. started to happen after most recent win11 upgrade. chrome actually had the same problem, but that one is fixed now. vscode isnt, sadly. |
Similar here |
same issue. |
very annoying |
In my case, if you wait 1-2 minutes it eventually comes back. |
weird. started the profiler through the developer tools, disconnected RDP, reconnected, waited couple mins for vscode to unfreeze, and stopped the profiler. Nothing stood out to me as "stuck" or taking a long time from the gpu or main.js thread. |
For context, this is not unique to vscode for me. The Slack desktop app (pretty sure is also web/browser based) exhibits similar behavior. |
@yo1dog That seems to point to an issue with electron or browserview then. |
I've seen this with Google Chrome too. VS Code, and Windows Terminal. For Windows Terminal I've tried their Preview and it uses different rending logic apparently. Team indicate some issues with NVIDIA -- but that has done better in haven't seen freezes. Edge surprisingly "recovers" after a bit; where as Google Chrome never does. VS Code I've affected the experimental terminal GPU rendering flag to "canvas" for now to see if that helps. This seems like a Windows/NVIDIA driver issue on desktop resizing. So, kinda seems Chromium based. |
I have a AMD card so that throws the nvidia issue out -- but could still be chromium/windows related 🤔 |
I am seeing similar behaviour as @cicorias Windows Terminal will freeze completely. Their main issue for this is microsoft/terminal#12607 -- I have disabled hardware rendering for Terminal, and it seems to help. My VSCode is also frozen when I re-attach, either via RDP, or at the machine in question, but indeed it ofter recovers after a few minutes, sometimes asking to reconnect. (I use WSL) For now I have added So far, my Edge has not yet been able to recover, but I have never been able to wait long enough. I have an nvidia in this machine. |
It’s August 22nd, 2024, and this issue is still bothering me—classic Microsoft. |
No any futher progress for this issue until now, sad and mad. |
still waiting for update... |
Update from https://issues.chromium.org/issues/328859185#comment45 :
|
No! I'm gonna use Linux. |
This issue remains unresolved, affecting both Edge browser and VSCode, which become unresponsive for long periods after using remote connections. Below is a method that might help address this problem. "I found a temporary solution for this bug: download a third-party input method, such as "Rime Input Method," and set it as the system default. This way, each time you connect via RDP, the input method will default to "Rime Input Method," which prevents the bug from occurring. You can then manually switch back to Microsoft Pinyin as needed." -- from https://issues.chromium.org/issues/328859185 po...@gmail.com |
Today, Dec.12, not even an update. |
This solution works. I have changed the default input method to Weixin Input. This problem seems disappear.
|
Not a solution for anyone prefer not installing third party IME. Since VSCode is also a Microsoft product could you ask IME team for update? |
Finally, I also adopted your method, can not wait for Microsoft |
My goodness, you have finally identified this persistent bug. It seems I am not alone in facing this issue. I have been struggling with this problem for nearly two years. Due to my work requirements, I need to use applications like VSCode and Eleterm, which are based on the Chrome engine. However, whenever I disconnect from the RDP session and reconnect later, I am forced to lose my previous work state. I have to forcibly close and restart these applications; otherwise, my mouse and keyboard remain unresponsive. I sincerely hope you can resolve this issue as soon as possible. |
This is not true. The problem occurs with Microsoft Japanese Input too. According to https://issues.chromium.org/issues/328859185#comment37 from Microsoft's developer: The root cause is in Windows TSF code. After entering this broken state, TSF drops any future IME inputs. |
In fact, firefox doesn't have this issue. So, maybe someone could see the difference between usage of TSF in these browsers. |
Hello everyone. |
Wow, thank for your answer.it is working in my computer.have good nice every day for you. |
匪夷所思的异常,但貌似能解决问题,不想安装多一个IME了。 |
I don't know if it's the same thing. I have installed multiple language input methods, including Microsoft Pinyin, Microsoft Japanese, and American English. Every time the interface gets stuck and I can't input content, I just need to change the current input method to American English to solve the problem. The keys that were originally unresponsive when pressed will be released one by one. |
This is a severe issue, but almost 3 years passed and Microsoft did nothing. Maybe most MS developers use English only and did not care about Asia languages IME? |
This is a severe issue, but almost 3 years passed and Microsoft did nothing. |
After several failures, I finally started searching and found this issue. Enabling input method compatibility indeed solves the problem of not being able to type in vscode: #167556 (comment) , but it prevents me from switching between Chinese and English (the solution is to reopen compatibility...). |
Download Sogou Input Method and completely turn off the built-in input method for a perfect solution. |
I prefer to use Rime rather than these manufacturer's input methods, as they show no respect for user privacy |
Thank you for your suggestion. However, Sogou Input Method will bypass this BUG by itself. I am not sure whether this input method is a perfect solution. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
VSCode will resize the outermost frame of the window, but will leave Explorer and code windows smaller, and will be unresponsive to mouse or keyboard input. After about 15 seconds, you'll get a popup that says:
"The window is not responding. You can reopen or close the window or keep waiting"
If you choose "Reopen", a new instance of VSCode will launch and will work fine. If you Keep Waiting, it will never come back.
The text was updated successfully, but these errors were encountered: