Skip to content

Python analysis engine terminated due to stack overflowΒ #2108

Closed
@daenney

Description

@daenney

Environment data

  • VS Code version: 1.25.0
  • Extension version (available under the Extensions sidebar): 2018.6.0
  • OS and version: Arch Linux
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7.14
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv
  • Relevant/affected Python packages and their versions: *

Actual behavior

Extremely high CPU usage and no completions. Eventually an error is shown by VS Code informing me the server has crashed too many times and won't be restarted.

Expected behavior

Provide working completions while not launching my laptop into orbit.

Steps to reproduce:

  1. Enable the Python Analysis Engine
  2. Wait
  3. Boom

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

Starting the analysis engine.
[Info  - 12:52:20 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /home/daenney/.local/share/virtualenvs/gimme-IW0Pxo7A/bin/python
Loading files from /home/daenney/Development/personal/gimme
##########Linting Output - flake8##########
Process is terminating due to StackOverflowException.
[Info  - 12:52:24 PM] Connection to server got closed. Server will restart.
[Info  - 12:52:25 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /home/daenney/.local/share/virtualenvs/gimme-IW0Pxo7A/bin/python
Loading files from /home/daenney/Development/personal/gimme
Process is terminating due to StackOverflowException.
[Info  - 12:52:27 PM] Connection to server got closed. Server will restart.
[Info  - 12:52:28 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /home/daenney/.local/share/virtualenvs/gimme-IW0Pxo7A/bin/python
Loading files from /home/daenney/Development/personal/gimme
Process is terminating due to StackOverflowException.
[Info  - 12:52:30 PM] Connection to server got closed. Server will restart.
[Info  - 12:52:31 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /home/daenney/.local/share/virtualenvs/gimme-IW0Pxo7A/bin/python
Loading files from /home/daenney/Development/personal/gimme
Process is terminating due to StackOverflowException.
[Info  - 12:52:33 PM] Connection to server got closed. Server will restart.
[Info  - 12:52:34 PM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /home/daenney/.local/share/virtualenvs/gimme-IW0Pxo7A/bin/python
Loading files from /home/daenney/Development/personal/gimme
Process is terminating due to StackOverflowException.
[Error - 12:52:36 PM] Connection to server got closed. Server will not be restarted.

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)


TMSyntax.ts:47 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///opt/visual-studio-code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///home/daenney/.vscode/extensions/redhat.vscode-yaml-0.0.13/syntaxes/yaml.tmLanguage.json
e.register @ TMSyntax.ts:47

console.ts:136 [Extension Host] vscode-icons is active!

notificationsAlerts.ts:42 The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted.

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions