This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Python seg fault at startup while using scikit-learn #341
Closed
Description
Environment data
- VS Code version: 1.28.2
- Python Extension version (available under the Extensions sidebar): 2018.9.2
- Microsoft Python Language Server version 0.1.50.0
- OS and version: Mac OS 10.14
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.2 and 3.7
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
- Relevant/affected Python packages and their versions: scikit-learn 0.20
Actual behavior
Mac OS throws an error "Python quit unexpectedly" upon startup of vscode and a project that is using sklearn. Posting this here because crash report says parent process is Microsoft Language Server.
Expected behavior
No error.
Steps to reproduce:
Make a file with the following:
from sklearn.cluster import KMeans
if __name__=="__main__":
km = KMeans()
Open it in a fresh run of vscode
Wait 30 secs... Python process crashes but vscode is still running and then everything works normally afterwards.
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
none
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
none
Mac OS Crash Report (incomplete):
Process: Python [97430]
Path: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.6.2 (3.6.2)
Code Type: X86-64 (Native)
Parent Process: Microsoft.Python.LanguageServer [96518]
Responsible: Python [97430]
User ID: 501
Date/Time: 2018-11-02 14:15:18.028 +0100
OS Version: Mac OS X 10.14 (18A391)
Report Version: 12
Anonymous UUID: D66954B1-5A32-38C1-E910-41CD6726D5DF
Sleep/Wake UUID: 0F04EC0C-0277-4914-8CF4-DFBBE7ECC81F
Time Awake Since Boot: 570000 seconds
Time Since Wake: 220 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [97430]
VM Regions Near 0x8:
-->
__TEXT 0000000100000000-0000000100001000 [ 4K] r-x/rwx SM=COW /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _k_means_elkan.cpython-36m-darwin.so 0x000000011cddb2bf __pyx_pf_7sklearn_7cluster_14_k_means_elkan_12__defaults__ + 47
1 sparsefuncs_fast.cpython-36m-darwin.so 0x0000000113ccb3c0 __Pyx_CyFunction_get_kwdefaults + 48
2 org.python.python 0x0000000100767500 _PyObject_GenericGetAttrWithDict + 144
3 org.python.python 0x00000001007e84bc builtin_getattr + 92
4 org.python.python 0x00000001007637c8 _PyCFunction_FastCallDict + 552
5 org.python.python 0x00000001007ec5e4 call_function + 612
6 org.python.python 0x00000001007edfe4 _PyEval_EvalFrameDefault + 5604
7 org.python.python 0x00000001007ec32e fast_function + 606
8 org.python.python 0x00000001007ec5cb call_function + 587
9 org.python.python 0x00000001007edfe4 _PyEval_EvalFrameDefault + 5604
10 org.python.python 0x00000001007eb9a0 _PyEval_EvalCodeWithName + 2720
11 org.python.python 0x00000001007ec1ab fast_function + 219
12 org.python.python 0x00000001007ec5cb call_function + 587
13 org.python.python 0x00000001007ee506 _PyEval_EvalFrameDefault + 6918
Metadata
Metadata
Assignees
Labels
No labels