Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-66474

WIN64: 'ASSERT: "theMainThread.load() != 0" in file kernel\qcoreapplication.cpp' for static builds with ICC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.6, 5.7, 5.8, 5.9, 5.10, 5.11, 5.12
    • Core: Threads

    Description

      Hello, everyone,

       

      For builds using Windows ICC got error:

      configure -v -opensource -confirm-license -debug -static -platform win32-icc -opengl dynamic && jom
      
      <snip>
      
      C:\libQT-5.11-dev\build\qtbase\bin\qlalr.exe
      
      WARNING: QApplication was not created in the main() thread.
      ASSERT: "theMainThread.load() != 0" in file kernel\qcoreapplication.cpp, line 573
      

       

      Call Stack:

           qlalr.exe!qt_message_fatal(QtMsgType, const QMessageLogContext & context, const QString & message) Line 1759    C++    Symbols loaded.
           qlalr.exe!QMessageLogger::fatal() Line 827    C++    Symbols loaded.
      >    qlalr.exe!qt_assert(const char * assertion, const char * file, int line) Line 3181    C++    Symbols loaded.
           qlalr.exe!QCoreApplicationPrivate::mainThread() Line 574    C++    Symbols loaded.
           qlalr.exe!QCoreApplicationPrivate::notify_helper(QObject * receiver, QEvent * event) Line 1199    C++    Symbols loaded.
           qlalr.exe!doNotify(QObject * receiver, QEvent * event) Line 1148    C++    Symbols loaded.
           qlalr.exe!QCoreApplication::notify(QEvent * receiver) Line 1134    C++    Symbols loaded.
           qlalr.exe!QCoreApplication::notifyInternal2(QObject * receiver, QEvent * event) Line 1058    C++    Symbols loaded.
           qlalr.exe!QCoreApplication::sendEvent(QObject * receiver, QEvent * event) Line 234    C++    Symbols loaded.
           qlalr.exe!QObjectPrivate::setParent_helper(QObject * o) Line 2038    C++    Symbols loaded.
           qlalr.exe!QObject::setParent() Line 1983    C++    Symbols loaded.
           qlalr.exe!QObject::QObject(QObject * dd) Line 844    C++    Symbols loaded.
           qlalr.exe!QAbstractEventDispatcher::QAbstractEventDispatcher(QAbstractEventDispatcherPrivate & dd, QObject * parent) Line 151    C++    Symbols loaded.
           qlalr.exe!QEventDispatcherWin32::QEventDispatcherWin32(QObject * parent) Line 512    C++    Symbols loaded.
           qlalr.exe!QCoreApplicationPrivate::createEventDispatcher() Line 560    C++    Symbols loaded.
           qlalr.exe!QCoreApplicationPrivate::init() Line 856    C++    Symbols loaded.
           qlalr.exe!QCoreApplication::QCoreApplication(char * * argc, int argv) Line 786    C++    Symbols loaded.
           qlalr.exe!main(int argc, char * * argv) Line 61    C++    Symbols loaded.
           [External Code]        Annotated Frame

       

      Locals:

      -        assertion    0x00007ff7f49b22d0 "theMainThread.load() != 0"    const char *
                  116 't'    const char
      -        file    0x00007ff7f49b22ea "kernel\\qcoreapplication.cpp"    const char *
                  107 'k'    const char
              line    573    int

       

      which was introduced with Change #121026.

       

      Reproduced for:

      • static QtBase-dev (9d1fab424e38d0ed40677926c0a434272ad41320 and later) builds using Windows ICC,

      not reproduced for:

      • static QtBase-dev (before 9d1fab424e38d0ed40677926c0a434272ad41320) builds using Windows ICC,
      • shared QtBase-dev builds using Windows ICC,
      • static QtBase-dev builds using mingw-w64 and MSVC.

       

      Best,

      Alexander

       

      Attachments

        1. 2018-09-13_231407.png
          5 kB
          Ruslan Sydorvych
        2. image-2018-09-30-08-55-49-589.png
          144 kB
          Konstantinos

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              sav sav
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes