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

"Electron" and "Code help (renderer)" using all my CPU and not rendering my file #142036

Closed
novitae opened this issue Feb 2, 2022 · 6 comments
Closed
Assignees

Comments

@novitae
Copy link

novitae commented Feb 2, 2022

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

  • VS Code Version: 1.63.2
  • OS Version: macOS 11.1

Steps to Reproduce:

  1. Open a python file that is more than 50 lines
  2. There you go

I was coding python when suddenly this happened. My Mac starts overheating, and vscode stopped rendering color syntax for python.

So I looked at the task manager, and I saw:


(Electron, from /Applications/Visual Studio Code.app/Contents/MacOS/Electron, used 95% of my CPU)

10 minutes after doing nothing just listening to my Mac burning, all came back to normal.


Then a single change of character in the file, and it's starting burning again.
So I downgraded to 1.62.3, and the EXACT same thing happened, but now, the process that was making burning my computer and not rendering anything was Code helper (renderer).

🆘

@lramos15
Copy link
Member

lramos15 commented Feb 2, 2022

Have you tried disabling your extensions? This can be done with --disable-extensions CLI https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions

@novitae
Copy link
Author

novitae commented Feb 2, 2022

Have you tried disabling your extensions? This can be done with --disable-extensions CLI https://code.visualstudio.com/docs/editor/command-line#_working-with-extensions

This work in term of not making my computer burn, but it terms of render, I don't have the syntax highlight, and I absolutely need it because it is very diffult to code without.

@novitae
Copy link
Author

novitae commented Feb 2, 2022

Update: It seems that it is doing this bug for python files larger than a certain size.
A 13600 chars file is loading, but a 14700 chars file isn't loading (the size limit seems to be between these sizes).
Once the file too heavy has started to be launched, the bug will last until the end of the burning computer time (~10 min). And as I said, if I touch something in the too heavy file, its going again for 10 minutes.

@novitae
Copy link
Author

novitae commented Feb 3, 2022

It seems I'm not the only one having such issues, some people are complaining about it too.
A lot are telling it comes from a certain extension. After trying to disable one-by-one, it seems it is Pylance for me. Probably the most important I need for coding in python ...

@novitae
Copy link
Author

novitae commented Feb 3, 2022

microsoft/pylance-release#201 (comment) after all it might come only from pylance

@novitae
Copy link
Author

novitae commented Feb 3, 2022

It seems the problem will be fixed very soon
microsoft/pylance-release#2314

@novitae novitae closed this as completed Feb 3, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants
@lramos15 @novitae and others