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

Qt Creator 5 hangs when closing a qml file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 5.0.0
    • Quick / QML Support
    • None
    • Linux/X11

    Description

      Got a deadlock inside of Qt Creator when closing a .qml file in Qt Multimedia (using Ctrl+W). Stack trace below:

       

       

      (gdb) bt
      
      #0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x912f8b0) at ../sysdeps/nptl/futex-internal.h:183
      #1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x912f860, cond=0x912f888) at pthread_cond_wait.c:508
      #2  __pthread_cond_wait (cond=0x912f888, mutex=0x912f860) at pthread_cond_wait.c:638
      #3  0x00007f8e3c195613 in QWaitCondition::wait(QMutex*, QDeadlineTimer) ()
         from /home/lars/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #4  0x00007f8e3c18e751 in QThread::wait(QDeadlineTimer) ()
         from /home/lars/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #5  0x00007f8ddef83f0d in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #6  0x00007f8ddef84149 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #7  0x00007f8ddef80961 in QmlJSEditor::QmlJSEditorDocument::~QmlJSEditorDocument() ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #8  0x00007f8ddef80979 in QmlJSEditor::QmlJSEditorDocument::~QmlJSEditorDocument() ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #9  0x00007f8e042e7f0e in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #10 0x00007f8e04308f9b in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #11 0x00007f8e04309049 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #12 0x00007f8e042e98fb in TextEditor::TextEditorWidget::~TextEditorWidget() ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #13 0x00007f8ddefcb263 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #14 0x00007f8e042f6731 in TextEditor::BaseTextEditor::~BaseTextEditor() ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #15 0x00007f8ddefcaed7 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #16 0x00007f8e103fa63f in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCore.so
      #17 0x00007f8e103fadc4 in Core::EditorManager::closeDocuments(QList<Core::IDocument*> const&, bool) ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCore.so
      #18 0x00007f8e103fb611 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libCore.so
      ...
      
      
      (gdb) thread 50
      [Switching to thread 50 (Thread 0x7f8d8d7fa700 (LWP 8556))]
      (gdb) bt
      #0  __GI___xstat (vers=1, name=0x7f8c548d9298 "/home/lars/dev/dev-android/qtbase/qml/Qt/test.1.-", buf=0x7f8d8d7f92e0)
          at ../sysdeps/unix/sysv/linux/wordsize-64/xstat.c:35
      #1  0x00007f8e3c30df5d in QFileSystemEngine::fillMetaData(QFileSystemEntry const&, QFileSystemMetaData&, QFlags<QFileSystemMeta
      Data::MetaDataFlag>) () from /home/lars/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5                                    
      #2  0x00007f8e3c291cda in QDir::exists() const () from /home/lars/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #3  0x00007f8def20b1bb in QmlJS::modulePaths(QString const&, QString const&, QStringList const&) ()
         from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libQmlJS.so.5
      #4  0x00007f8def1c0f9c in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libQmlJS.so.5
      #5  0x00007f8def1c1e15 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libQmlJS.so.5
      #6  0x00007f8def1c26d6 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libQmlJS.so.5
      #7  0x00007f8def1c2ca7 in QmlJS::Link::operator()(QSharedPointer<QmlJS::Document const> const&, QList<QmlJS::DiagnosticMessage>
      *) () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/../libQmlJS.so.5                                                 
      #8  0x00007f8ddefaea0c in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #9  0x00007f8ddefaf180 in ?? () from /home/lars/Qt/Tools/QtCreator/lib/qtcreator/plugins/libQmlJSEditor.so
      #10 0x00007f8e3c18eb35 in QThreadPrivate::start(void*) () from /home/lars/Qt/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #11 0x00007f8e3b04a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #12 0x00007f8e3bc92293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

       

      Happens reprodibly for me, when checking out https://codereview.qt-project.org/c/qt/qtmultimedia/+/369634/2, loading AudioInputSelect.qml into the editor and then closing it.

       

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            laknoll Lars Knoll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes