Qt Creator crash in code completion

  • Hi,

    I've been using Qt Creator all day every day for two years, but all of a sudden I am getting an easily repeatable (for me) crash in Qt Creator. When I start to type a member (foo.b) then creator hangs and crashes. This only happens with objects from a certain library, mostly it still works. Disabling code completion is a deal breaker for me. I'll have to jump ship to Vim or emacs if I can't sort this out. There is no debug output, but here's the backtrace. I'm using Qt Creator 3.1.1 (Qt 4.8.6 (GCC 4.8.2)) on Fedora 20. Any ideas?

    #0 0x00007fcb9e6f0184 in CPlusPlus::Name::isAnonymousNameId() const ()
    from /usr/lib64/qtcreator/plugins/QtProject/../../libCPlusPlus.so.1
    #1 0x00007fcb9ea82678 in CppTools::Internal::CppCompletionAssistProcessor::addClassMembersToCompletion(CPlusPlus::Scope*, bool) () from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #2 0x00007fcb9ea86979 in CppTools::Internal::CppCompletionAssistProcessor::completeClass(CPlusPlus::ClassOrNamespace*, bool) () from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #3 0x00007fcb9ea8944b in CppTools::Internal::CppCompletionAssistProcessor::completeMember(QListCPlusPlus::LookupItem const&) () from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #4 0x00007fcb9ea8b033 in CppTools::Internal::CppCompletionAssistProcessor::startCompletionInternal(QString, unsigned int, unsigned int, QString const&, int) () from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #5 0x00007fcb9ea8b4a9 in CppTools::Internal::CppCompletionAssistProcessor::startCompletionHelper() ()
    from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #6 0x00007fcb9ea8b8d7 in CppTools::Internal::CppCompletionAssistProcessor::perform(TextEditor::IAssistInterface const*) () from /usr/lib64/qtcreator/plugins/QtProject/libCppTools.so
    #7 0x00007fcb9fd00dbc in TextEditor::Internal::ProcessorRunner::run() ()
    from /usr/lib64/qtcreator/plugins/QtProject/libTextEditor.so
    #8 0x00007fcbc09eb6bf in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
    #9 0x00007fcbc0759f33 in start_thread () from /lib64/libpthread.so.0
    #10 0x00007fcbbfc62ded in clone () from /lib64/libc.so.6

  • Moderators

    This is definitely worth reporting on the bug tracker, especially since you say it is reproducible. Please report it using "these":https://qt-project.org/wiki/ReportingBugsInQt instructions.

Log in to reply