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

Window freezes when reopening a source file with large collapsed blocks #121160

Closed
jtanx opened this issue Apr 13, 2021 · 1 comment
Closed

Window freezes when reopening a source file with large collapsed blocks #121160

jtanx opened this issue Apr 13, 2021 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@jtanx
Copy link

jtanx commented Apr 13, 2021

  • VS Code Version: 1.55.1
  • OS Version: Windows 10 20H2

Steps to Reproduce:

  1. Open this source file: uninames_data.zip
  2. Collapse all the blocks, like so: image
  3. Close the file
  4. Reopen the file -> it will freeze / slow down significantly here for a long time

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

@aeschli
Copy link
Contributor

aeschli commented Oct 19, 2021

Profiled this and found that all the time is spent in the TextMate tokenizer.

The reason could be that the viewport spans so many lines (42 - 32487) so the optimisation we have for unfolded content are not working.

image

@aeschli aeschli assigned alexdima and unassigned aeschli Oct 19, 2021
@alexdima alexdima added bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues labels Oct 19, 2021
@alexdima alexdima added this to the October 2021 milestone Oct 19, 2021
@hediet hediet added the verified Verification succeeded label Oct 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2021
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 freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants
@hediet @alexdima @jtanx @aeschli and others