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

Extension causes high cpu load #24715

Closed
lgutierrezr opened this issue Jan 13, 2025 · 6 comments
Closed

Extension causes high cpu load #24715

lgutierrezr opened this issue Jan 13, 2025 · 6 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@lgutierrezr
Copy link

lgutierrezr commented Jan 13, 2025

  • Issue Type: Performance
  • Extension Name: python
  • Extension Version: 2024.23.2025011101
  • OS Version: Windows_NT x64 10.0.19045
  • VS Code version: 1.96.2

ms-python.python-unresponsive.cpuprofile.txt

Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 13, 2025
@karthiknadig karthiknadig self-assigned this Jan 13, 2025
@karthiknadig
Copy link
Member

@lgutierrezr Do you see anything in the Output > Python logs? or the Developer Tools logs (Help > Toggle Developer Tools)

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 13, 2025
@lgutierrezr
Copy link
Author

"workbench.html:1 Access to fetch at 'https://www.vscode-unpkg.net/_gallery/ms-python/python/latest' from origin 'vscode-file://vscode-app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status."

Image

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 13, 2025
@karthiknadig
Copy link
Member

That looks like it is VS Code core trying to find the latest version of python extension. That error is not originating from the python extension. If that is the only issue, see if you can manually update python extension or disable update and see if that works.

@github-actions github-actions bot added the info-needed Issue requires more information from poster label Jan 13, 2025
@lgutierrezr
Copy link
Author

I will try to update manually, I will let you know if the problem persists.

@github-actions github-actions bot removed the info-needed Issue requires more information from poster label Jan 13, 2025
@lgutierrezr
Copy link
Author

I reinstalled the extensions, upgraded to the latest version of VScode. upgraded from python 3.11.7 to 3.13.1 and had to install “Microsoft Visual C++ 14.0 which was in Microsoft C++ Build Tools” from VS 2022. Now VSCode and its extensions are without performance issues.

PS: It's a bit weird that in this update I had to do it manually. But everything is back to normal.

Thank you @karthiknadig

@lgutierrezr
Copy link
Author

I have already reported the problem to the 3 extensions I had! thank you very much for your prompt attention! I close the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants