Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1646

Qbs hangs forever on QThread::wait() on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • some future version, 1.19.0
    • General
    • None
    • Windows

    Description

      When running the "bare-metal" tests on a Windows VM, the tests are constantly failing by timeout:
       

      FAIL!  : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map) qbs did not run correctly
      D:\a\qbs\qbs\tests\auto\blackbox\tst_blackboxbase.cpp(105) : failure location
      QDEBUG : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map) Build graph does not yet exist for configuration 'default'. Starting from scratch.?
      Resolving project for configuration default?
      linker map suffix: %%.mmm%%?
      Setting up build graph for configuration default?
      
      QDEBUG : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map)
      QDEBUG : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map) Process operation timed out
      QWARN  : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map) QProcess: Destroyed while process ("C:\\github\\actions-runner\\_work\\qbs\\qbs\\release\\install-root\\bin\\qbs.exe") is still running.
      FAIL!  : TestBlackboxBareMetal::linkerMapFile(generate-custom-linker-map) Compared values are not the same
         Actual   (runQbs(QbsRunParameters("resolve", args))): -1
         Expected (0)                                        : 0
      D:\a\qbs\qbs\tests\auto\blackbox\tst_blackboxbaremetal.cpp(253) : failure location
      
      

      Analysis of the dump of a hung qbs.exe process shows that something goes wrong while waiting for threads:

      
      [External Code] 
       Qt5Core.dll!QThread::wait(QDeadlineTimer deadline) Line 630 C++
       [External Code] 
       Qt5Core.dll!QObjectPrivate::deleteChildren() Line 2101 C++
       Qt5Core.dll!QObject::~QObject() Line 1087 C++
       [External Code] 
       [Inline Frame] Qt5Core.dll!qDeleteInEventHandler(QObject *) Line 4815 C++
       Qt5Core.dll!QObject::event(QEvent * e) Line 1341 C++
       [Inline Frame] Qt5Core.dll!doNotify(QObject *) Line 1153 C++
       Qt5Core.dll!QCoreApplication::notify(QObject * receiver, QEvent * event) Line 1140 C++
       Qt5Core.dll!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1063 C++
       [Inline Frame] Qt5Core.dll!QCoreApplication::sendEvent(QObject *) Line 1458 C++
       Qt5Core.dll!QCoreApplicationPrivate::sendPostedEvents(QObject * receiver, int event_type, QThreadData * data) Line 1817 C++
       Qt5Core.dll!QCoreApplication::exec() Line 1375 C++
       [External Code]
      
      

       

      Attachments

        Activity

          People

            kandeler Christian Kandeler
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: