Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

vsc spins forever and python-language-server eats all my memory #529

Closed
fenchu opened this issue Jan 10, 2019 · 4 comments
Closed

vsc spins forever and python-language-server eats all my memory #529

fenchu opened this issue Jan 10, 2019 · 4 comments

Comments

@fenchu
Copy link

fenchu commented Jan 10, 2019

vsc v1.30.2, windows10
ms-python.python v2018.12.1
python 3.7.2 via -m venv

From time to time if I press ctrl+mouseclick to follow a code, like here it was just on json.dump.
(doesnt matter if it is basic modules or
the animation below the folders goes indefinitely and Microsoft.Python.Language.Server.exe
start eating memory, until all my 32GB has been eaten up around 100MB minute.
CPU around 20-25% (But ist a quite fast I7-7900)

Below is a snapshot just after it started happening:
vsc_pythonlanguageserve_neverstops

I then just kill the language Server and then ctrl+click is snappy again.

This has occured for me since summer almost daily.

On linux with same code, vsc, same plugins and same python, but using pyenv instead of venv,
Never any problems.

@fenchu
Copy link
Author

fenchu commented Jan 10, 2019

When I kill a growing process stacktrace looks like this (there is no stacktrace if I kill it while it is fine, just restarts)

Error: Connection got disposed.
	at Object.dispose (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:67379)
	at Object.dispose (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:155149)
	at module.exports.t.LanguageClient.handleConnectionClosed (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:155324)
	at module.exports.t.LanguageClient.handleConnectionClosed (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:8677)
	at t (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:153626)
	at e.module.exports.e.invoke (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:188056)
	at e.module.exports.e.fire (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:188927)
	at H (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:59709)
	at e.module.exports.e.invoke (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:188056)
	at e.module.exports.e.fire (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:188927)
	at t.module.exports.e.fireClose (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:220061)
	at Socket.<anonymous> (C:\Users\morten.sensio\.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:220484)
	at emitOne (events.js:116:13)
	at Socket.emit (events.js:211:7)
	at Pipe.Socket._destroy.cb._handle.close [as _onclose] (net.js:554:12)

@Moshikol
Copy link

same here vscode 1.30.2 python 3.6.4 windows 10.
image

@jakebailey
Copy link
Member

Closing this, since #479/#495/#330 are closed. The new LS should not have this behavior.

@MikhailArkhipov
Copy link

0.2.16 is now available on beta channel.

"python.analysis.downloadChannel": "beta"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants