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

perpetual loading of python extension #16106

Closed
frl3 opened this issue May 1, 2021 · 13 comments
Closed

perpetual loading of python extension #16106

frl3 opened this issue May 1, 2021 · 13 comments
Assignees
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@frl3
Copy link

frl3 commented May 1, 2021

ms-python.python-unresponsive.cpuprofile.txt

On console - Developer tools under help; this is what in log file upon start of loading.

DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/3c4e3df9e89829dce27b7b5c24508306b151f30d/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout [Violation] Forced reflow while executing JavaScript took 39ms workbench.desktop.main.js:62 [Extension Host] (node:12564) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. m @ workbench.desktop.main.js:62 $logExtensionHostMessage @ workbench.desktop.main.js:1589 _doInvokeHandler @ workbench.desktop.main.js:1589 _invokeHandler @ workbench.desktop.main.js:1589 _receiveRequest @ workbench.desktop.main.js:1589 _receiveOneMessage @ workbench.desktop.main.js:1589 (anonymous) @ workbench.desktop.main.js:1589 fire @ workbench.desktop.main.js:60 fire @ workbench.desktop.main.js:76 _receiveMessage @ workbench.desktop.main.js:76 (anonymous) @ workbench.desktop.main.js:76 fire @ workbench.desktop.main.js:60 acceptChunk @ workbench.desktop.main.js:76 (anonymous) @ workbench.desktop.main.js:76 k @ workbench.desktop.main.js:2781 emit @ events.js:315 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:271 Readable.push @ _stream_readable.js:212 onStreamRead @ internal/stream_base_commons.js:186 workbench.desktop.main.js:2786 Extension Host workbench.desktop.main.js:2786 Debugger attached. workbench.desktop.main.js:626 WARN UNRESPONSIVE extension host, 'ms-python.python' took 100% of 5188.081ms, saved PROFILE here: 'file:///c%3A/Users/frl3/AppData/Local/Temp/exthost-f093b8.cpuprofile' [{…}]

exthost-f093b8-cpuprofile.txt

my VS Code infos:
Version: 1.55.2 (system setup)
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:35:57.887Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label May 1, 2021
@karthiknadig karthiknadig added triage bug Issue identified by VS Code Team member as probable bug area-editor-* User-facing catch-all and removed triage-needed Needs assignment to the proper sub-team labels May 3, 2021
@kimadeline
Copy link

Hi @frl3, thank you for reaching out!

Which version of the extension are you using? And does it happen with older versions of the extension?

@frl3
Copy link
Author

frl3 commented May 4, 2021

version 3.9.4 -
downloaded from phyton.org
installed in user AppData folder.
so it's a per user installation.

should I change the installation to full system installation - Program Files

that's the only version installed.

@kimadeline
Copy link

Hello, this is the info for the version of Python you have installed, not the version of the Python extension in VS Code.

To find your extension information, go to the "Extensions" tab in VS Code, find "Python" and click on "Copy":

image

To try out other versions of the extension, you can follow the prompts from "Extensions: Install Specific Version of Extension..." in the command palette:

image

Or you can open the extensions side bar, click on the settings for the Python extension and pick "Install Another Version...":

https://user-images.githubusercontent.com/51720070/80000627-39dacc00-8472-11ea-9755-ac7ba0acbb70.gif

@frl3
Copy link
Author

frl3 commented May 4, 2021

v2021.4.765268190

Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, and more.
Version: 2021.4.765268190
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

@frl3
Copy link
Author

frl3 commented May 4, 2021

okay,
just installed this other version

Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, and more.
Version: 2021.3.680753044
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Same response, prolonged loading, eating up my memory. Slowing down my whole desktop system.

@frl3
Copy link
Author

frl3 commented May 4, 2021

should I try another?

@kimadeline
Copy link

No that'll do for now, thanks!

@frl3
Copy link
Author

frl3 commented May 5, 2021

@kimadeline how's your analysis going?

@kimadeline
Copy link

Unfortunately we don't give out updates on work.

@frl3
Copy link
Author

frl3 commented May 6, 2021

so how will i solve this problem?

@kimadeline
Copy link

You can try using older versions of the extension until you find one that works for you while we investigate the problem you're facing.

@kimadeline
Copy link

Hi @frl3, thank you for your patience!

Checking the cpuprofile you posted, it seems like the new discovery code was endlessly looping. We fixed a few issues with it in the most recent release, could you give it a try?

If not, can you try adding the following to your global settings.json and try to activate the extension again:

"python.experiments.optOutFrom": [
        "pythonDiscoveryModule",
        "pythonDiscoveryModuleWithoutWatcher"
    ],

Thanks!

@kimadeline kimadeline added the info-needed Issue requires more information from poster label May 27, 2021
@brettcannon
Copy link
Member

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants