Skip to content
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

v1.87.2 CPU Usage #208902

Open
totalhack opened this issue Mar 27, 2024 · 8 comments
Open

v1.87.2 CPU Usage #208902

totalhack opened this issue Mar 27, 2024 · 8 comments
Assignees

Comments

@totalhack
Copy link

Does this issue occur when all extensions are disabled?: Yes

Version: 1.87.2
Commit: 863d258
Date: 2024-03-08T15:14:59.643Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.0-1018-oem

Steps to Reproduce:

  1. Open vscode.
  2. Observe your CPU usage.

I just updated to 1.87.2 and this is new behavior. If I close vscode CPU usage drops to ~1-2%, with it open its hovering around 25% across all cores/threads.

image

@gjsjohnmurray
Copy link
Contributor

gjsjohnmurray commented Mar 27, 2024

Does the Start Extension Bisect command help you identify an extension causing this?

I just noticed you said that it happens with all extensions disabled.

@totalhack
Copy link
Author

totalhack commented Mar 27, 2024 via email

@totalhack
Copy link
Author

Note that the issue was still present when I downgraded to 1.86.2.

@msakrejda
Copy link

I'm also seeing similar behavior. Extension Bisect (what a cool feature! I did not know about it before) told me it was not an extension. Here's my Code info:

Version: 1.87.2
Commit: 863d258
Date: 2024-03-08T15:14:59.643Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.0-26-generic

(Notably, I'm also on Linux.)

For me, this happens when I engage completion features with Ctrl+Space. The CPU sits at ~100% for minutes and eventually comes down. Code is also using a terabyte (!) of virtual memory.

This seems to happen in my React code, but not in my Rails, Rust, or Go code.

@msakrejda
Copy link

Curiously, code-insiders also has the issue, but the interface remains usable (whereas code completion features hang on the release version when this happens).

Version: 1.88.0-insider
Commit: 9e0b3f3
Date: 2024-03-27T21:46:06.351Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.5.0-26-generic

@msakrejda
Copy link

I tried to add a performance trace as suggested here, but I seem to be running into this bug, which is only fixed in Electron 29.

@msakrejda
Copy link

I also tried downgrading to 1.85.2, as suggested above, and that also fixes the issue for me.

@msakrejda
Copy link

For what it's worth, I also started seeing the problem with 1.85.2. However, I rebooted my system and Code is now working fine. Idle CPU usage is minimal, and completions are responsive (once the system is initialized). I've upgraded back to 1.87.2, and things are still fine.

I think there's still something fishy here, since CPU usage was unreasonable and I don't think I did anything wrong to get into that state, but it's nice to know at least there's a workaround. If a reboot does not fix the original problem, maybe what I was seeing was only vaguely related. If that's the case, sorry for the noise; if the problem comes back, I might try to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants