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

VS code freezes when typing and scrolling #97731

Closed
subash7038 opened this issue May 13, 2020 · 8 comments
Closed

VS code freezes when typing and scrolling #97731

subash7038 opened this issue May 13, 2020 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-decorations freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Milestone

Comments

@subash7038
Copy link

In the fast few days I am having very poor performance issues .Especialy when scrollling.It almost completely freezes.

@bemasher
Copy link

I think I may have the same issue. I was able to capture an instance of the lag in the developer tools profiler. After downgrading to 1.44.2, I have not been able to reproduce the issue.

image

Profile-20200513T110910.json.gz

@alexdima
Copy link
Member

I did not recognise the code, but I could see $onDidChange, which points to MainThreadDecorationsShape --

$onDidChange(handle: number, resources: UriComponents[] | null): void;

@schwab
Copy link

schwab commented May 13, 2020

Lot's of laggyness on verion 1.45.0. Didn't notice it before so the issue seems new. Something is definitely blocking the UI thread from drawing in a timely manner. The issue comes and goes, but it surely destroys develop flow. Haven't noticed any unusual cpu usage yet, but this is a 32-core thread-ripper so it takes a lot to have that be a problem.

@jrieken
Copy link
Member

jrieken commented May 14, 2020

@schwab, @subash7038 Sorry, I will not be able to help you because you have not provided actionable information.

@bemasher Thanks for the trace. This is useful. It seems like a massive decoration change happens - that is for the GIT state on the explorer, e.g. "M" for modified, "U" for untracked etc. Is this a very large workspace? Or a state with many, many pending changes or much being ignored?

@jrieken jrieken added file-decorations freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues labels May 15, 2020
@jrieken jrieken added this to the May 2020 milestone May 15, 2020
@bemasher
Copy link

@jrieken turns out that was the problem, I hadn't been paying attention that a parent directory was a git repository and had added quite a lot of test data (read: a couple hundred individual files). Adding the test data directory to .gitignore fixes this.

@alignsoft
Copy link

alignsoft commented May 20, 2020

Also noticing since the Version: 1.45.1 release everything freezes after saves for half a minute, also on switching back to the app after switching to another app, and occasionally for no discernible reason at all - everything just stops. There was no issue on this project with the previous release. Mac OS X 10.14.6

Update: following the cue on the large volume of pending changes - awcache was not in .gitignore, and was tracking 4000+ changes. Again, this hasn't been an issue in the previous VSCode releases, but adding the .awcache directory to .gitignore has resolved the lag.

Thanks!

@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label May 26, 2020
@jrieken
Copy link
Member

jrieken commented May 26, 2020

To verify:

  • run npm i @angular/cli
  • don't ignore node_modules or rename node_modules folder so that you have 5000+ changes
  • press refresh in the SCM view
  • things should not freeze 🧊

@MattGrdinic
Copy link

MattGrdinic commented Jun 1, 2020

For what it's worth I had a similar experience over the weekend. In my specific case it was when typing. I'd enter up to 4 words before the screen updated.

Did this over multiple app and system restarts. I uninstalled (On Mac, so drag to trash), downgraded to April, issue was gone. I then updated, issue came back.

Uninstalled one more time, issue gone, removed extensions (icons and VS Intellicode), updated to newest and now it seems to have resolved itself

Apologies for not getting a trace, will do so if it comes back!

PS: I had no uncommitted files during the above process.

@isidorn isidorn added the verified Verification succeeded label Jun 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug file-decorations freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

8 participants