-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Lagging/freezing using VSCode Insiders in Big Sur #107103
Comments
When you press On macOS Big Sur So you can consistently see this behavior by pressing enter in the terminal, and then experience a UI stutter around 2 seconds after. You can play around directly in the developer tools by running the following: child_process = require('child_process')
async function f() {
child_process.exec('echo hi', (a, stdout, err) => console.log(stdout))
console.log('called')
}
Under normal conditions, you would expect to see Again, the bug/regression is deep into Node.JS code, so it's not clear what VSCode could/should do differently in this case, especially since this bug is only experienced on a macOS beta. A blind guess of mine is that it might be related to some entitlements or gatekeeper related code slowing down the spawning of processes heavily, but I have zero evidence that such would be the case. Furthermore, I have not been able to reproduce this behavior in a Node.JS repl, on both the same version VSCode uses, nor the latest. |
I experience the same problem using VS Code with Big Sur (beta 8). I hope it's related to the beta phase of Big Sur, and will not be the same on release. It also happens sometimes while typing, I'm not sure it's related to that same issue with the terminal, but the freeze feels pretty much the same to me. |
It seems that it's fixed with the latest Big Sur beta: 11.0 Beta (20A5384c) Or maybe with the latest VSCode update, but I think that it was fixed just after the Big Sure installation. The Code version I am running is the following: Version: 1.50.0-insider |
Maybe it's because of the insider version you are using. I still have this problem even I am on |
/duplicate #105446 |
FTR, it worked well for me with the versions I posted above (that's why I closed the issue), but it is again laggy. I saw #105446 before creating the issue and I mentioned it in the original post, however, when I created the issue the lag was affecting the editor as well. Nowadays I don't have that problem anymore, it just affects the terminal. |
I have this problem and have since the Big Sur update. It affects the entire editor, not just the terminal. Currently on 11.0 Beta (20A5395g). VSCode info: |
I have this issue also, integrated terminal is glitching and lagging .. My normal terminal VSCode info: I have Big Sur final release. |
I got the same problem. |
I am also experiencing this issue. Most recent version of studio code. |
Try this, now my terminal works faster:
and restart your VSCode |
Same here. The app freezes and you can't do any input. It last about 2-3 seconds. |
Same issue |
Worked for me after I had restarted VS Code. |
looks like those problems are because Electron hardware acceleration is broken in Bug Sur (Spotify, VSCode, Postman apps are VERY laggy because it enabled by default) |
tried everything, still everything is lagging |
After the execution, restart VSCode, the work is very fast |
Now I found my own problem reason - there is really mystic macos bug. In my case that lags are only when I use external 2k display (of course in dGPU mode, radeon pro 5500M) with non-standard color profile (downloaded from reddit). When I selected standard profile in macos display settings menu - lags were gone. And then when I tried a reddit profile again - now, no lags too. I don't understand how color profile changing can broke (and repair) hardware acceleration in v8 apps, but it may be something like hardware DRM side effect (because when that lags were, there were no GPU workload in macos activity monitor while I tried to scroll v8-app window) |
I use vscode-insiders, It doesn't work for me because of "invalid option"
|
VSCode literally slows down the entire system in my case. Once I close the app things get back to normal. Other electron apps seem to work OK, for example Trello. I'm running Big Sur 11.0.1 on a Macbook Pro. |
@yalishizhude might not be the root cause but after |
VSCode randomly freezes both in editor and terminal during daily use. This issue should be re-opened. |
Yes I think it should be opened again. I passed to Big Sur recently and didn't had any problem before. I don't think than a solution like removing a signature should be an accepted solution.
|
THANK YOU! I'm on macOS Catalina and this issue has been plaguing me for days. I would have never guessed it was my custom color profile. |
macOS big sur, MBP 13", 2018 Doesn't matter if external 4k display or the one build-in. Terminal is super slow and freezing so ofter that I started to use Terminal app. |
try to execute the following command then:
|
I have the same issue. Freezes between 1-2 seconds, very often on the whole UI.
The Please re-open the issue. |
Yes, this one helps to me on big sur 11.0.1 (20B50), the command is works for me
Visual Studio Code: Version: 1.52.0 |
the command is not works for me. big sur 11.0.1 (20B29) Version: 1.52.0 |
Petition to reopen this issue, thx. |
Problem is back after upgrading from Big Sur 11.0.1 to 11.1. |
When trying to remove the signature now, I get this: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't create output file: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer).cstemp (Permission denied) Version: 1.52.1 I tried disabling all extensions and commenting out my settings.json file. The equivalent command does work for the insiders version, but the lagging is still there. |
This problem is back after upgrading from Big sur 11.0.1 to 11.1 !!! |
Yes, I can confirm that. |
Yes, it should be opened!!!! |
Can confirm that it's also back for me after the latest Big Sur update. |
MAKE SURE TO RESTART VSCODE. I used this command and it worked great :D I thought I was the only one experiencing the lag, but after someone mentioned it's after you press 'enter,' I noticed it was the same issue as mine. Thank you. background: macbook 2015, I updated my macos to big sur 11.1 from Catalina |
Full version details
Version: 1.50.0-insiderCommit: 403a689
Date: 2020-09-18T07:11:53.303Z (2 days ago)
Electron: 9.3.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 20.1.0
Steps to Reproduce:
Notes:
I probed all the renders for the integrated terminal and nothing has changed.
I changed the runtime configuration of Code to add the following line:
It seems to work a little bit better, but still lagging.
I saw a similar issue here: #105446 but in my case it lags in more places than just the terminal.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: