Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28769

Assert (followed by crash) inside IAssistProcessor::start() triggered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • Qt Creator 10.0.0
    • Qt Creator 10.0.0-beta1
    • Editors
    • None
    • Linux/X11
    • 229348853 (10.0), fbcf0fb3b (10.0)

    Description

      The assert was introduced in https://codereview.qt-project.org/c/qt-creator/qt-creator/+/442620.

      Call stack:

      1  TextEditor::IAssistProcessor::start                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           iassistprocessor.cpp      28   0x7fffbc417265 
      2  TextEditor::CodeAssistantPrivate::requestProposal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             codeassistant.cpp         211  0x7fffbc3f3bf1 
      3  TextEditor::CodeAssistantPrivate::invoke                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      codeassistant.cpp         124  0x7fffbc3f34f1 
      4  TextEditor::CodeAssistant::invoke                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             codeassistant.cpp         558  0x7fffbc3f575c 
      5  TextEditor::TextEditorWidget::invokeAssist                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    texteditor.cpp            8561 0x7fffbc557454 
      6  CppEditor::CppEditorWidget::invokeTextEditorWidgetAssist                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      cppeditorwidget.cpp       1410 0x7fff82dc7608 
      7  ClangCodeModel::Internal::ClangdFollowSymbol::Private::handleGotoImplementationResult(LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, decltype(nullptr)> const&)                                                                                                                                                                                                                                                                                                                                                                                                                         clangdfollowsymbol.cpp    437  0x7fff807bc102 
      8  operator()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    clangdfollowsymbol.cpp    261  0x7fff807b95d1 
      9  std::__invoke_impl<void, ClangCodeModel::Internal::ClangdFollowSymbol::Private::sendGotoImplementationRequest(const Utils::Link&)::<lambda(const Response&)>&, LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, std::nullptr_t>>(std::__invoke_other, struct {...} &)                                                                                                                                                                                                                                                                                                                     invoke.h                  61   0x7fff807bf249 
      10 std::__invoke_r<void, ClangCodeModel::Internal::ClangdFollowSymbol::Private::sendGotoImplementationRequest(const Utils::Link&)::<lambda(const Response&)>&, LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, std::nullptr_t>>(struct {...} &)                                                                                                                                                                                                                                                                                                                                             invoke.h                  111  0x7fff807be776 
      11 std::_Function_handler<void(LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, std::nullptr_t>), ClangCodeModel::Internal::ClangdFollowSymbol::Private::sendGotoImplementationRequest(const Utils::Link&)::<lambda(const Response&)>>::_M_invoke(const std::_Any_data &, LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, std::nullptr_t> &&)                                                                                                                                                                                                                           std_function.h            290  0x7fff807bdbab 
      12 std::function<void (LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, decltype(nullptr)>)>::operator()(LanguageServerProtocol::Response<LanguageServerProtocol::GotoResult, decltype(nullptr)>) const                                                                                                                                                                                                                                                                                                                                                                                      std_function.h            590  0x7fffbc1284e5 
      13 LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}::operator()(LanguageServerProtocol::JsonRpcMessage const&) const                                                                                                                                                                                                                                                                                                               jsonrpcmessages.h         366  0x7fffbc12346d 
      14 std::__invoke_impl<void, LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}&, LanguageServerProtocol::JsonRpcMessage const&>(std::__invoke_other, LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}&, LanguageServerProtocol::JsonRpcMessage const&) invoke.h                  61   0x7fffbc12ea23 
      15 std::__invoke_r<void, LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}&, LanguageServerProtocol::JsonRpcMessage const&>(LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}&, LanguageServerProtocol::JsonRpcMessage const&)                         invoke.h                  111  0x7fffbc12d2f8 
      16 std::_Function_handler<void (LanguageServerProtocol::JsonRpcMessage const&), LanguageServerProtocol::Request<LanguageServerProtocol::GotoResult, decltype(nullptr), LanguageServerProtocol::TextDocumentPositionParams>::responseHandler() const::{lambda(LanguageServerProtocol::JsonRpcMessage const&)#1}>::_M_invoke(std::_Any_data const&, LanguageServerProtocol::JsonRpcMessage const&)                                                                                                                                                                                                                 std_function.h            290  0x7fffbc12abc0 
      17 std::function<void (LanguageServerProtocol::JsonRpcMessage const&)>::operator()(LanguageServerProtocol::JsonRpcMessage const&) const                                                                                                                                                                                                                                                                                                                                                                                                                                                                          std_function.h            590  0x7fffa41d6f99 
      18 LanguageClient::ClientPrivate::handleResponse                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 client.cpp                1757 0x7fffa41b3f30 
      19 LanguageClient::Client::handleMessage                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         client.cpp                1601 0x7fffa41b3073 
      20 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<LanguageServerProtocol::JsonRpcMessage const&>, void, void (LanguageClient::Client:: *)(LanguageServerProtocol::JsonRpcMessage const&)>::call                                                                                                                                                                                                                                                                                                                                                                                               qobjectdefs_impl.h        135  0x7fffa420778d 
      21 QtPrivate::FunctionPointer<void (LanguageClient::Client:: *)(LanguageServerProtocol::JsonRpcMessage const&)>::call<QtPrivate::List<LanguageServerProtocol::JsonRpcMessage const&>, void>                                                                                                                                                                                                                                                                                                                                                                                                                      qobjectdefs_impl.h        172  0x7fffa41fb440 
      22 QtPrivate::QSlotObject<void (LanguageClient::Client:: *)(LanguageServerProtocol::JsonRpcMessage const&), QtPrivate::List<LanguageServerProtocol::JsonRpcMessage const&>, void>::impl                                                                                                                                                                                                                                                                                                                                                                                                                          qobjectdefs_impl.h        383  0x7fffa41ef3a5 
      23 QtPrivate::QSlotObjectBase::call                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              qobjectdefs_impl.h        363  0x7ffff52998c3 
      24 doActivate<false>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             qobject.cpp               3979 0x7ffff5314a9c 
      25 QMetaObject::activate                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         qobject.cpp               4039 0x7ffff530ae73 
      26 LanguageClient::InterfaceController::messageReceived                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          client.moc                194  0x7fffa41b85b2 
      27 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<LanguageServerProtocol::JsonRpcMessage>, void, void (LanguageClient::InterfaceController:: *)(LanguageServerProtocol::JsonRpcMessage const&)>::call                                                                                                                                                                                                                                                                                                                                                                                         qobjectdefs_impl.h        135  0x7fffa42064cf 
      28 QtPrivate::FunctionPointer<void (LanguageClient::InterfaceController:: *)(LanguageServerProtocol::JsonRpcMessage const&)>::call<QtPrivate::List<LanguageServerProtocol::JsonRpcMessage>, void>                                                                                                                                                                                                                                                                                                                                                                                                                qobjectdefs_impl.h        172  0x7fffa41fa520 
      29 QtPrivate::QSlotObject<void (LanguageClient::InterfaceController:: *)(LanguageServerProtocol::JsonRpcMessage const&), QtPrivate::List<LanguageServerProtocol::JsonRpcMessage>, void>::impl                                                                                                                                                                                                                                                                                                                                                                                                                    qobjectdefs_impl.h        383  0x7fffa41ee869 
      30 QtPrivate::QSlotObjectBase::call                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              qobjectdefs_impl.h        363  0x7ffff52998c3 
      31 QMetaCallEvent::placeMetaCall                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 qobject.cpp               608  0x7ffff5301c8d 
      32 QObject::event                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                qobject.cpp               1378 0x7ffff5302f05 
      33 QApplicationPrivate::notify_helper                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            qapplication.cpp          3315 0x7ffff6d40f74 
      34 QApplication::notify                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          qapplication.cpp          3266 0x7ffff6d40d66 
      35 QCoreApplication::notifyInternal2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             qcoreapplication.cpp      1026 0x7ffff52783e5 
      36 QCoreApplication::sendEvent                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   qcoreapplication.cpp      1442 0x7ffff5278f83 
      37 QCoreApplicationPrivate::sendPostedEvents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     qcoreapplication.cpp      1804 0x7ffff5279eda 
      38 QCoreApplication::sendPostedEvents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            qcoreapplication.cpp      1663 0x7ffff52797a8 
      39 postEventSourceDispatch                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       qeventdispatcher_glib.cpp 243  0x7ffff56b3ec0 
      40 g_main_context_dispatch                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      0x7ffff3bd5d3b 
      41 ??                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           0x7ffff3c2a6c8 
      42 g_main_context_iteration                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     0x7ffff3bd33e3 
      43 QEventDispatcherGlib::processEvents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           qeventdispatcher_glib.cpp 393  0x7ffff56b4782 
      44 QXcbGlibEventDispatcher::processEvents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        qxcbeventdispatcher.cpp   96   0x7ffff0f8764c 
      45 QEventLoop::processEvents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     qeventloop.cpp            100  0x7ffff528c745 
      46 QEventLoop::exec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              qeventloop.cpp            182  0x7ffff528cab4 
      47 QCoreApplication::exec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        qcoreapplication.cpp      1347 0x7ffff5278d50 
      48 QGuiApplication::exec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         qguiapplication.cpp       1859 0x7ffff5ebecea 
      49 QApplication::exec                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            qapplication.cpp          2595 0x7ffff6d3df7d 
      50 main                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          main.cpp                  794  0x5555555639d0 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            jkobus Jarek Kobus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes