Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.8.0-rc1
-
None
-
-
257df2e4b8ca6d3e3407e0f4d5ee1ecbde965652 (qt-creator/qt-creator/4.8)
Description
I have python 3.7 installed and installed all kinds of packages related to the python-language-server via pip. After then uninstalling the mypy package, the language server does not start up, anymore and in fact crashes Qt Creator after 5 start attempts.
Output in General Messages view:
LanguageClient Python: Initialize error: pkg_resources.DistributionNotFound: The 'mypy' distribution was not found and is required by the application LanguageClient Python: Unexpectedly finished. Restarting in 5 seconds.
... repeats 5 times
Application output (of the IDE):
QProcess::start: Process is already running QProcess::start: Process is already running QProcess::start: Process is already running QProcess::start: Process is already running QProcess::start: Process is already running
triggered by LanguageClient::StdIOClient::start(void)
Backtrace:
009bbe8c 51c75e83 Qt5Cored!std::_Load_relaxed_4(unsigned long * _Tgt = 0xfeeefeee)+0x7 [c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.16.27023\include\xatomic.h @ 1341] 009bbe9c 51c785af Qt5Cored!std::_Atomic_load_4(unsigned long * _Tgt = 0xfeeefeee, std::memory_order _Order = memory_order_relaxed (0n0))+0x23 [c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.16.27023\include\xatomic.h @ 1360] 009bbebc 51c7c304 Qt5Cored!std::atomic_load_explicit(struct std::_Atomic_int * _Atom = 0xfeeefeee, std::memory_order _Order = memory_order_relaxed (0n0))+0x2f [c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.16.27023\include\xxatomic @ 495] 009bbed0 51c7183d Qt5Cored!std::_Atomic_int::load(std::memory_order _Order = memory_order_relaxed (0n0))+0x14 [c:\program files (x86)\microsoft visual studio\2017\buildtools\vc\tools\msvc\14.16.27023\include\xxatomic @ 629] 009bbedc 51c7c2e0 Qt5Cored!QAtomicOps<int>::load<int>(struct std::atomic<int> * _q_value = 0xfeeefeee)+0xd [c:\users\alportal\dev\qt5\qtbase\src\corelib\thread\qatomic_cxx11.h @ 228] 009bbeec 51c7a301 Qt5Cored!QBasicAtomicInteger<int>::load(void)+0x10 [c:\users\alportal\dev\qt5\qtbase\src\corelib\thread\qbasicatomic.h @ 103] 009bbefc 51c72fb0 Qt5Cored!QtPrivate::RefCount::deref(void)+0x11 [c:\users\alportal\dev\qt5\qtbase\src\corelib\tools\qrefcount.h @ 66] 009bbf18 0e92df33 Qt5Cored!QByteArray::~QByteArray(void)+0x30 [c:\users\alportal\dev\qt5\qtbase\src\corelib\tools\qbytearray.h @ 476] 009bbf24 0e8743b5 LanguageServerProtocold4!LanguageServerProtocol::BaseMessage::~BaseMessage(void)+0x13 009bbfd0 0e87678a LanguageClientd4!LanguageClient::BaseClient::parseData(class QByteArray * data = 0x009bc020)+0x2e5 [c:\users\alportal\dev\tqtc-qtc-super\qtcreator\src\plugins\languageclient\baseclient.cpp @ 759] 009bc038 0e88f0ea LanguageClientd4!LanguageClient::StdIOClient::readOutput(void)+0xfa [c:\users\alportal\dev\tqtc-qtc-super\qtcreator\src\plugins\languageclient\baseclient.cpp @ 834] 009bc044 0e87bdd4 LanguageClientd4!QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (<function> * f = 0x0e876690, class LanguageClient::StdIOClient * o = 0x18362ac8, void ** arg = 0x009bc1ec)+0xa [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 152] 009bc058 0e89331e LanguageClientd4!QtPrivate::FunctionPointer<void (<function> * f = 0x0e876690, class LanguageClient::StdIOClient * o = 0x18362ac8, void ** arg = 0x009bc1ec)+0x14 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 185] 009bc080 51f93685 LanguageClientd4!QtPrivate::QSlotObject<void (int which = 0n1, class QtPrivate::QSlotObjectBase * this_ = 0x18370f58, class QObject * r = 0x18362ac8, void ** a = 0x009bc1ec, bool * ret = 0x00000000)+0x5e [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 414] 009bc0a4 51fc8301 Qt5Cored!QtPrivate::QSlotObjectBase::call(class QObject * r = 0x18362ac8, void ** a = 0x009bc1ec)+0x25 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 394] 009bc1bc 51fc7d81 Qt5Cored!QMetaObject::activate(class QObject * sender = 0x18362b3c, int signalOffset = 0n9, int local_signal_index = 0n6, void ** argv = 0x009bc1ec)+0x571 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 3765] 009bc1d4 51edfaca Qt5Cored!QMetaObject::activate(class QObject * sender = 0x18362b3c, struct QMetaObject * m = 0x5238bc58, int local_signal_index = 0n6, void ** argv = 0x009bc1ec)+0x21 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 3631] 009bc1f8 51ee0c22 Qt5Cored!QProcess::readyReadStandardOutput(struct QProcess::QPrivateSignal _t1 = struct QProcess::QPrivateSignal)+0x2a [c:\users\alportal\dev\qt5\qtbase\src\corelib\.moc\debug\moc_qprocess.cpp @ 366] 009bc254 51ee05e8 Qt5Cored!QProcessPrivate::tryReadFromChannel(struct QProcessPrivate::Channel * channel = 0x18370c30)+0x252 [c:\users\alportal\dev\qt5\qtbase\src\corelib\io\qprocess.cpp @ 1071] 009bc264 51eddd6a Qt5Cored!QProcessPrivate::_q_canReadStandardOutput(void)+0x18 [c:\users\alportal\dev\qt5\qtbase\src\corelib\io\qprocess.cpp @ 1082] 009bc284 51fc83f4 Qt5Cored!QProcess::qt_static_metacall(class QObject * _o = 0x18362b3c, QMetaObject::Call _c = InvokeMetaMethod (0n0), int _id = 0n10, void ** _a = 0x009bc378)+0x13a [c:\users\alportal\dev\qt5\qtbase\src\corelib\.moc\debug\moc_qprocess.cpp @ 207] 009bc3a4 51fc7d81 Qt5Cored!QMetaObject::activate(class QObject * sender = 0x18371838, int signalOffset = 0n3, int local_signal_index = 0n1, void ** argv = 0x00000000)+0x664 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 3778] 009bc3bc 520f6879 Qt5Cored!QMetaObject::activate(class QObject * sender = 0x18371838, struct QMetaObject * m = 0x525980e0, int local_signal_index = 0n1, void ** argv = 0x00000000)+0x21 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 3631] 009bc3d8 51f00bc8 Qt5Cored!QWindowsPipeReader::readyRead(void)+0x19 [c:\users\alportal\dev\qt5\qtbase\src\corelib\.moc\debug\moc_qwindowspipereader_p.cpp @ 170] 009bc3e4 51f011ca Qt5Cored!QWindowsPipeReader::emitPendingReadyRead(void)+0x28 [c:\users\alportal\dev\qt5\qtbase\src\corelib\io\qwindowspipereader.cpp @ 306] 009bc3f0 51f00f04 Qt5Cored!QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,void (<function> * f = 0x51c3a92a, class QWindowsPipeReader * o = 0x18371838, void ** arg = 0x1bcddb38)+0xa [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 152] 009bc404 51f0124e Qt5Cored!QtPrivate::FunctionPointer<void (<function> * f = 0x51c3a92a, class QWindowsPipeReader * o = 0x18371838, void ** arg = 0x1bcddb38)+0x14 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 185] 009bc42c 51f93685 Qt5Cored!QtPrivate::QSlotObject<void (int which = 0n1, class QtPrivate::QSlotObjectBase * this_ = 0x1830db70, class QObject * r = 0x18371838, void ** a = 0x1bcddb38, bool * ret = 0x00000000)+0x5e [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 414] 009bc450 51fd033f Qt5Cored!QtPrivate::QSlotObjectBase::call(class QObject * r = 0x18371838, void ** a = 0x1bcddb38)+0x25 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobjectdefs_impl.h @ 394] 009bc470 51fc9a02 Qt5Cored!QMetaCallEvent::placeMetaCall(class QObject * object = 0x18371838)+0x2f [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 507] *** WARNING: Unable to verify checksum for C:\Users\alportal\dev\qt5\qtbase\lib\Qt5Widgetsd.dll 009bc834 535298cf Qt5Cored!QObject::event(class QEvent * e = 0x1806ed20)+0x102 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qobject.cpp @ 1250] 009bc858 53524dea Qt5Widgetsd!QApplicationPrivate::notify_helper(class QObject * receiver = 0x18371838, class QEvent * e = 0x1806ed20)+0x12f [c:\users\alportal\dev\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 3752] 009bd2c0 51f7eb8f Qt5Widgetsd!QApplication::notify(class QObject * receiver = 0x18371838, class QEvent * e = 0x1806ed20)+0x56a [c:\users\alportal\dev\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 3109] 009bd304 51f7ce49 Qt5Cored!QCoreApplication::notifyInternal2(class QObject * receiver = 0x18371838, class QEvent * event = 0x1806ed20)+0xef [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1061] 009bd314 51f800de Qt5Cored!QCoreApplication::sendEvent(class QObject * receiver = 0x18371838, class QEvent * event = 0x1806ed20)+0x29 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1451] 009bd3ac 52024d24 Qt5Cored!QCoreApplicationPrivate::sendPostedEvents(class QObject * receiver = 0x00000000, int event_type = 0n0, class QThreadData * data = 0x00131560)+0x34e [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1800] *** WARNING: Unable to verify checksum for C:\Users\alportal\dev\qt5\qtbase\plugins\platforms\qwindowsd.dll 009bd3c8 50c5e650 Qt5Cored!QEventDispatcherWin32::sendPostedEvents(void)+0x24 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 1092] 009bd3d4 520231cb qwindowsd!QWindowsGuiEventDispatcher::sendPostedEvents(void)+0x10 [c:\users\alportal\dev\qt5\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 82] 009bd4b4 73f8bf1b Qt5Cored!qt_internal_proc(struct HWND__ * hwnd = 0x001507e0 0+0+129x36 'QEventDispatcherWin32_Internal_Widget1371804927', unsigned int message = 0x401, unsigned int wp = 0, long lp = 0n0)+0x4fb [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 247] WARNING: Stack unwind information not available. Following frames may be wrong. 009bd4e0 73f883ea USER32!AddClipboardFormatListener+0x49b 009bd5c8 73f87c9e USER32!DispatchMessageW+0x97a 009bd644 73f87a80 USER32!DispatchMessageW+0x22e 009bd650 5202395c USER32!DispatchMessageW+0x10 009bf35c 50c5e628 Qt5Cored!QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x45c [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qeventdispatcher_win.cpp @ 640] 009bf374 51f79b50 qwindowsd!QWindowsGuiEventDispatcher::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x28 [c:\users\alportal\dev\qt5\qtbase\src\platformsupport\eventdispatchers\qwindowsguieventdispatcher.cpp @ 74] 009bf390 51f79d61 Qt5Cored!QEventLoop::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x50 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qeventloop.cpp @ 139] 009bf3fc 51f7cc54 Qt5Cored!QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag> flags = class QFlags<enum QEventLoop::ProcessEventsFlag>)+0x161 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qeventloop.cpp @ 225] *** WARNING: Unable to verify checksum for C:\Users\alportal\dev\qt5\qtbase\lib\Qt5Guid.dll 009bf464 52a73bf8 Qt5Cored!QCoreApplication::exec(void)+0x144 [c:\users\alportal\dev\qt5\qtbase\src\corelib\kernel\qcoreapplication.cpp @ 1364] 009bf46c 53524879 Qt5Guid!QGuiApplication::exec(void)+0x18 [c:\users\alportal\dev\qt5\qtbase\src\gui\kernel\qguiapplication.cpp @ 1780] *** WARNING: Unable to verify checksum for qtcreator.exe 009bf474 00f698d2 Qt5Widgetsd!QApplication::exec(void)+0x9 [c:\users\alportal\dev\qt5\qtbase\src\widgets\kernel\qapplication.cpp @ 2910] 009bfa3c 00f73a3d qtcreator!main(int argc = 0n4, char ** argv = 0x001145b0)+0x2a32 [c:\users\alportal\dev\tqtc-qtc-super\qtcreator\src\app\main.cpp @ 625] 009bfa70 00f727ae qtcreator!WinMain(struct HINSTANCE__ * __formal = 0x00f60000, struct HINSTANCE__ * __formal = 0x00000000, char * __formal = 0x0010acd1 "-settingspath c:\temp\lspcrash "-qmljsdebugger=port:62632,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector"", int __formal = 0n10)+0xad [c:\users\alportal\dev\qt5\qtbase\src\winmain\qtmain_win.cpp @ 104] 009bfa88 00f726c7 qtcreator!invoke_main(void)+0x1e [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 107] 009bfae4 00f7256d qtcreator!__scrt_common_main_seh(void)+0x157 [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 009bfaec 00f72808 qtcreator!__scrt_common_main(void)+0xd [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 331] 009bfaf4 76e38484 qtcreator!WinMainCRTStartup(void)+0x8 [d:\agent\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_winmain.cpp @ 17] 009bfb08 776d302c KERNEL32!BaseThreadInitThunk+0x24 009bfb50 776d2ffa ntdll!RtlValidSecurityDescriptor+0x11c 009bfb60 00000000 ntdll!RtlValidSecurityDescriptor+0xea
QT_LOGGING_RULES=qtc.languageclient.*=true
qtc.languageclient.client: initializing language server "Python" qtc.languageclient.messages: StdIOClient send data: qtc.languageclient.messages: Content-Length: 598 {"id":"{e76053a5-0159-4a09-80c7-bcee3eed755b}","jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItem":{},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"dynamicRegistration":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":false}},"workspace":{"workspaceFolders":true}},"processId":1300,"rootUri":null,"trace":"off"}} qtc.languageclient.messages: StdIOClient std err: qtc.languageclient.messages: 2018-12-04 17:53:09,086 UTC - ERROR - jsonrpc.endpoint - Failed to handle request {e76053a5-0159-4a09-80c7-bcee3eed755b} Traceback (most recent call last): File "c:\python37\lib\site-packages\jsonrpc\endpoint.py", line 113, in consume self._handle_request(message['id'], message['method'], message.get('params')) File "c:\python37\lib\site-packages\jsonrpc\endpoint.py", line 182, in _handle_request handler_result = handler(params) File "c:\python37\lib\site-packages\jsonrpc\dispatchers.py", line 23, in handler return method(**(params or {})) File "c:\python37\lib\site-packages\pyls\python_ls.py", line 156, in m_initialize self.config = config.Config(rootUri, initializationOptions or {}, processId) File "c:\python37\lib\site-packages\pyls\config\config.py", line 48, in __init__ entry_point.load() File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2323, in load self.require(*args, **kwargs) File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 2346, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) File "c:\python37\lib\site-packages\pkg_resources\__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'mypy' distribution was not found and is required by the application qtc.languageclient.messages: StdIOClient std out: qtc.languageclient.messages: Content-Length: 1440 Content-Type: application/vscode-jsonrpc; charset=utf8 {"jsonrpc": "2.0", "id": "{e76053a5-0159-4a09-80c7-bcee3eed755b}", "error": {"code": -32602, "message": "pkg_resources.DistributionNotFound: The 'mypy' distribution was not found and is required by the application", "data": {"traceback": [" File \"c:\\python37\\lib\\site-packages\\jsonrpc\\endpoint.py\", line 113, in consume\n self._handle_request(message['id'], message['method'], message.get('params'))\n", " File \"c:\\python37\\lib\\site-packages\\jsonrpc\\endpoint.py\", line 182, in _handle_request\n handler_result = handler(params)\n", " File \"c:\\python37\\lib\\site-packages\\jsonrpc\\dispatchers.py\", line 23, in handler\n return method(**(params or {}))\n", " File \"c:\\python37\\lib\\site-packages\\pyls\\python_ls.py\", line 156, in m_initialize\n self.config = config.Config(rootUri, initializationOptions or {}, processId)\n", " File \"c:\\python37\\lib\\site-packages\\pyls\\config\\config.py\", line 48, in __init__\n entry_point.load()\n", " File \"c:\\python37\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2323, in load\n self.require(*args, **kwargs)\n", " File \"c:\\python37\\lib\\site-packages\\pkg_resources\\__init__.py\", line 2346, in require\n items = working_set.resolve(reqs, env, installer, extras=self.extras)\n", " File \"c:\\python37\\lib\\site-packages\\pkg_resources\\__init__.py\", line 778, in resolve\n raise DistributionNotFound(req, requirers)\n"]}}}
Attachments
For Gerrit Dashboard: QTCREATORBUG-21635 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
247415,2 | LSP: fix crash after last server restart attempt | 4.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |