-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Integrated Terminal Lags Intermittently #105446
Comments
It seems like
is taking a long time. |
Benchmarking this call, it takes on average 800ms. It doesn't make sense, but this seems to be a |
I have been having this issue as well with the insiders build of vscode |
@deepak1556 do you know why an |
Some further notes for reference: Monkey patching
to be
Edit: I was wrong, still exhibits the behavior, weird. |
+1 UPDATE:
|
It also occurred with me after updating to Big Sur Beta, I think it is about the beta. |
Some further insights: I have done some debugging with Edit: |
@davidzech Don't you think this might be a bug from the macOS kernel then? |
+1 for having this issue; only remember seeing this issue after upgrading to Big Sur. Happy to run some debugging if anyone has any ideas. Thanks. |
@Adam2Marsh Have you built locally? To my surprise, I ran my tests on An useful bisection perhaps. Edit 2: VSCodium also doesn't exhibit this behavior for me. |
@davidzech |
Thanks for narrowing down the issue @davidzech , we do use a custom electron build for the stable and insiders while we use https://electronjs.org/ releases for the OSS build. But I don't see any patches around the child_process code path. Can you run the test on following electron builds, you can extract and run the electron binary, toggle developer tools from the View menu |
FYI the root cause has already been tracked down and being fixed in libuv/electron, see: |
To piggyback on what @marcello3d said, this was affecting our own Electron app, so we built a custom version of Electron using that libuv patch and it solved the issue for us. Hopefully this will be merged upstream soon, but in the meantime, other developers can try building Electron with that patch. |
Thanks @marcello3d @pdesantis for the work on fix. Just to update, whenever upstream releases a new version with the patch vscode will update to it. Also we didn't build the patch internally because it was too late in the current January iteration to get enough testing before stable release I see that the issue is getting side tracked again, will lock until further updates. |
The libuv fix has been backported internally and is available in latest insiders, please verify if this issue is fixed. Thanks! |
\closedWith ff85144 |
This bug has been fixed in to the latest release of VS Code Insiders! @davidzech, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text Happy Coding! |
I got an update of the non-insiders today, and no issues that I could see either, weird.. |
oh thank God this was driving me crazy, thank you for fixing 🙏🏻 |
so, what's the correct way of undoing Guess we need to sign the app again. But with which key? |
@ay0o the update should have installed a new signed binary |
is this distributed to everyone or just in a beta channel? |
I've received the update today and I can feel the improvement ! |
I’m running version 1.53.2 and I still see a significant lag when opening new terminal panes. I ran the I think the issue hasn’t been solved for me. Am I doing something wrong? |
@leafac the fix is available in the insiders builds only as of now. Switch to insiders builds or stick to the |
@flash-gordon: Ah, I had misunderstood the previous comments and I thought the fix was generally available. Thanks for the clarification 👍 |
Heads up, the fix was reverted upstream: libuv/libuv#3050 (comment) I'm not sure what that means for VSCode or if this issue should be reopened? I guess maybe it depends on how Electron handles this. |
FYI, the fix is reverted in electron but I have added workarounds for the failing test cases mentioned in the libuv repo while it is being investigated, so I have not reverted the fix internally for vscode. |
Steps to Reproduce:
Spam random keys until lag is experiencedPress enter, then continuously type (anything) for about 2 seconds.Does this issue occur when all extensions are disabled?: Yes
This occurs on a public beta build of macOS 11. I've confirmed the same issue on two different MacBook Pro's on the same OS version, and same VS Code version.
Attached is a performance profile. You can see the spike in the integrated terminal response time at around 23000ms - 24000ms
Profile-20200826T124154.json.zip
The text was updated successfully, but these errors were encountered: