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

The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted. #5134

Closed
chloyster opened this issue Apr 5, 2019 · 7 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@chloyster
Copy link

  • VS Code version: 1.33.0
  • Extension version: 2019.3.6352
  • OS and version: Ubuntu 18.10, Kernel: 4.18.0-17-generic
  • Python version: 3.6.7

Expected behaviour

Python file opened, server starts with no crashes. Intellisense works properly

Actual behaviour

Python file opened. Python tools server crashes 5 times within 3 minutes and is not restarted anymore. Intellisense does not work

Steps to reproduce:

  1. Open python file with python extension installed

Logs

Starting Microsoft Python language server.
[Info - 1:42:18 PM] GetCurrentSearchPaths /usr/bin/python3
[Info - 1:42:18 PM] Python search paths:
[Info - 1:42:18 PM] /usr/lib/python3.6
[Info - 1:42:18 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:18 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:18 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:18 PM] /usr/lib/python3/dist-packages
[Info - 1:42:18 PM] Configuration search paths:
[Info - 1:42:18 PM] /usr/lib/python36.zip
[Info - 1:42:18 PM] /usr/lib/python3.6
[Info - 1:42:18 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:18 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:18 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:18 PM] /usr/lib/python3/dist-packages
[Info - 1:42:18 PM] /usr/bin
[Info - 1:42:19 PM] Microsoft Python Language Server version 0.2.43.0
[Info - 1:42:19 PM] Initializing for /usr/bin/python3

Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info - 1:42:20 PM] Connection to server got closed. Server will restart.
##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

[Info - 1:42:21 PM] GetCurrentSearchPaths /usr/bin/python3
[Info - 1:42:21 PM] Python search paths:
[Info - 1:42:21 PM] /usr/lib/python3.6
[Info - 1:42:21 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:21 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:21 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:21 PM] /usr/lib/python3/dist-packages
[Info - 1:42:21 PM] Configuration search paths:
[Info - 1:42:21 PM] /usr/lib/python36.zip
[Info - 1:42:21 PM] /usr/lib/python3.6
[Info - 1:42:21 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:21 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:21 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:21 PM] /usr/lib/python3/dist-packages
[Info - 1:42:21 PM] /usr/bin
[Info - 1:42:22 PM] Microsoft Python Language Server version 0.2.43.0
[Info - 1:42:22 PM] Initializing for /usr/bin/python3

Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info - 1:42:22 PM] Connection to server got closed. Server will restart.
[Info - 1:42:23 PM] GetCurrentSearchPaths /usr/bin/python3
[Info - 1:42:23 PM] Python search paths:
[Info - 1:42:23 PM] /usr/lib/python3.6
[Info - 1:42:23 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:23 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:23 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:23 PM] /usr/lib/python3/dist-packages
[Info - 1:42:23 PM] Configuration search paths:
[Info - 1:42:23 PM] /usr/lib/python36.zip
[Info - 1:42:23 PM] /usr/lib/python3.6
[Info - 1:42:23 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:23 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:23 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:23 PM] /usr/lib/python3/dist-packages
[Info - 1:42:23 PM] /usr/bin
[Info - 1:42:24 PM] Microsoft Python Language Server version 0.2.43.0
[Info - 1:42:24 PM] Initializing for /usr/bin/python3

Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info - 1:42:25 PM] Connection to server got closed. Server will restart.
[Info - 1:42:26 PM] GetCurrentSearchPaths /usr/bin/python3
[Info - 1:42:26 PM] Python search paths:
[Info - 1:42:26 PM] /usr/lib/python3.6
[Info - 1:42:26 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:26 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:26 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:26 PM] /usr/lib/python3/dist-packages
[Info - 1:42:26 PM] Configuration search paths:
[Info - 1:42:26 PM] /usr/lib/python36.zip
[Info - 1:42:26 PM] /usr/lib/python3.6
[Info - 1:42:26 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:26 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:26 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:26 PM] /usr/lib/python3/dist-packages
[Info - 1:42:26 PM] /usr/bin
[Info - 1:42:26 PM] Microsoft Python Language Server version 0.2.43.0
[Info - 1:42:26 PM] Initializing for /usr/bin/python3

Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Info - 1:42:27 PM] Connection to server got closed. Server will restart.
[Info - 1:42:28 PM] GetCurrentSearchPaths /usr/bin/python3
[Info - 1:42:28 PM] Python search paths:
[Info - 1:42:28 PM] /usr/lib/python3.6
[Info - 1:42:28 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:28 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:28 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:28 PM] /usr/lib/python3/dist-packages
[Info - 1:42:28 PM] Configuration search paths:
[Info - 1:42:28 PM] /usr/lib/python36.zip
[Info - 1:42:28 PM] /usr/lib/python3.6
[Info - 1:42:28 PM] /usr/lib/python3.6/lib-dynload
[Info - 1:42:28 PM] /home/chris/.local/lib/python3.6/site-packages
[Info - 1:42:28 PM] /usr/local/lib/python3.6/dist-packages
[Info - 1:42:28 PM] /usr/lib/python3/dist-packages
[Info - 1:42:28 PM] /usr/bin
[Info - 1:42:29 PM] Microsoft Python Language Server version 0.2.43.0
[Info - 1:42:29 PM] Initializing for /usr/bin/python3

Unhandled Exception: System.ObjectDisposedException: The CancellationTokenSource has been disposed.
at System.Threading.CancellationTokenSource.ThrowObjectDisposedException()
at Microsoft.Python.Analysis.Analyzer.PythonAnalyzerSession.b__22_0()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ThreadPoolWorkQueue.Dispatch()
[Error - 1:42:29 PM] Connection to server got closed. Server will not be restarted.
##########Linting Output - pylint##########


Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

extensionHost.ts:311 [Extension Host] debugger listening on port 51568
extensionService.ts:802 Couldn't find message for key python.snippet.launch.unitTests.description.
_logMessageInConsole @ extensionService.ts:802
console.ts:134 [Extension Host] (node:7205) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:134
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py>, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Detection of Python Interpreter for Command python3.7 and args  failed
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 10
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking support of .NET, Class name = u, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 5
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: <Uri:/home/chris/Documents/CalPoly/CSC-476/lab-1-crgix>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Get language server folder name, Class name = g, , Return Value: "languageServer.0.2.43"
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Starting Language Server, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking support of .NET, Class name = u, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Arg 2: <argument cannot be serialized for logging>, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from windowsRegistry
console.ts:134 [Extension Host] Python Extension: Rule = settings, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from settings
console.ts:134 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, <No Resource>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */python
console.ts:134 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python
console.ts:134 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = f, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: undefined, Return Value: <Return value cannot be serialized for logging>
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}
console.ts:134 [Extension Host] Python Extension: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown","displayName":"Python 3.6.7 64-bit"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: setGlobalInterpreter, Class name = g, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.7-final","major":3,"minor":6,"patch":7,"prerelease":["final"],"build":[],"version":"3.6.7-final"},"sysPrefix":"/usr","fileHash":"a58b0a2cdf3cb97ff7652e48a97fcd4a9afe0bfbbb4aaa6c4b547696792415d0bff37a1f11de23ebda15028aa400ee2ebba6a8e5faaca486f1d245bced17782c","type":"Unknown"}, Arg 2: undefined, Return Value: false
console.ts:134 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from currentPath
console.ts:134 [Extension Host] Python Extension: Rule = system, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from system
console.ts:134 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule
console.ts:134 [Extension Host] Python Extension: Executing next rule from cachedInterpreters
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: autoSelectInterpreter, Class name = g, Arg 1: undefined, Return Value: undefined
console.ts:134 [Extension Host] Python Extension: Current value for rule workspaceEnvs is nothing
console.ts:134 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false
console.ts:134 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true
console.ts:134 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined
console.ts:134 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined
notificationsAlerts.ts:40 The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted.
onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, extension-output-#3
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix/compile.py
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
console.ts:134 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/chris/Documents/CalPoly/CSC-476/lab-1-crgix
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 5, 2019
@chloyster
Copy link
Author

chloyster commented Apr 7, 2019

I was able to find the cause of the error. I discovered that it only happened in a certain project I had, so I went through and tried deleting files to see if they were the cause. And I ended up deleting the content of my python file, and then the server would start. This is the entirety of the file.

`print("section .text")
print("global our_code_starts_here")
print("our_code_starts_here:")

myFile = open('input.txt', 'r')

line = myFile.readline()

myList = line.split(" ")

num1 = myList[0]

if (len(myList) == 1):
print(" mov eax, " + num1)
print (" ret")
else:
num2 = myList[2]
print(" mov eax, " + num1)
print(" mov ebx, " + num2)
print(" add eax, ebx")
print(" ret")`

This somehow causes the server to crash

Edit: It is this line in particular that is causing it. (I went through one by one uncommenting to find the bad line)

myFile = open('input.txt', 'r')

@DonJayamanne DonJayamanne added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. needs upstream fix bug Issue identified by VS Code Team member as probable bug labels Apr 8, 2019
@ghost ghost removed triage-needed Needs assignment to the proper sub-team labels Apr 8, 2019
@chloyster
Copy link
Author

The newest stable release of the python language server seems to have fixed the bug.

Thank you

@ghost ghost removed the needs upstream fix label Apr 17, 2019
@ahnaf-rafi
Copy link

Hi sorry to post this here as a comment, but this issue seems to have started up again with the following specs:

  • VS Code version: 1.33.1
  • Extension version: 2019.3.6558
  • OS and version: Ubuntu 19.04, Kernel: 5.0.0-13-generic
  • Python version: 3.7.3

This is without any prompting, no real project files to speak of. The .py file I opened which set this off was working fine under Ubuntu 18.10, and is a #%%-delimited jupyter notebook file which I run in the interactive window - highly doubt the file is the cause of the issue.

@chloyster
Copy link
Author

@ahnafalrafi you should check out the issue that was opened in reference to this one, because that's where all the work was done to fix the issue.

microsoft/python-language-server#909

Check if the error you are getting matches that one, because there are many reasons why the error could occur. If the error is different you should open a new issue.

If you go to output, python, you should see what they actual error is.

@DonJayamanne
Copy link

@ahnafalrafi If you are seeing this error again, please create a new issue.

@Sevody
Copy link

Sevody commented Apr 23, 2019

Hi sorry to post this here as a comment, but this issue seems to have started up again with the following specs:

  • VS Code version: 1.33.1
  • Extension version: 2019.3.6558
  • OS and version: Ubuntu 19.04, Kernel: 5.0.0-13-generic
  • Python version: 3.7.3

This is without any prompting, no real project files to speak of. The .py file I opened which set this off was working fine under Ubuntu 18.10, and is a #%%-delimited jupyter notebook file which I run in the interactive window - highly doubt the file is the cause of the issue.

I got this error too. In my case, it is because my python project has a sklearn floder which contains too much training file, and it make python tool crash. So I set python.linting.ignorePatterns for this floder and it work!!

@ahnaf-rafi
Copy link

Ah okay will do - took a look at the output for python, its about libssl

@lock lock bot locked as resolved and limited conversation to collaborators May 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants