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

Reg->6.9.1: ASSERT failure in QCoreApplication::sendEvent() (Debug build) when closing application in Qt 6.9.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • 6.10
    • 6.9.1
    • None
    • VS 2022 + "Qt VS Tools" 3.4.1 extension
    • Windows

      When a Qt Quick program is terminating and releasing all the resources, a debug error appears on screen (attachment) with the following:

      ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread QThread(0x13ba8337ef0). Receiver 'QQuickProfilerAdapterFactory(0x13ba62aed50)' was created in thread QThread(0x13ba3743c30, name = "Qt mainThread")", file C:\Users\qt\work\qt\qtbase\src\corelib\kernel\qcoreapplication.cpp, line 531

      It happens only when I'm using Visual Studio 2022 + "Qt VS Tools" extension which is official from Qt.

      I tested both Qt Creator and VS2022 but the error appears only on VS2022 in Qt-Debug configuration, also with different PC and Windows version (10 and 11).

       

      This issue is not present in the previous versions (like 6.8.3) in VS2022 with the same project (BUG_QT_691.zip attachment).

      - Simone Sbaraglia, NOIVIS Dev Team

        1. BUG_QT_691.zip
          33 kB
          Noivis Vision Systems
        2. Screenshot 2025-08-13 080135.png
          21 kB
          Noivis Vision Systems
        3. Screenshot 2025-08-13 080207.png
          16 kB
          Noivis Vision Systems
        4. Screenshot 2025-08-13 080224.png
          15 kB
          Noivis Vision Systems
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qtqmlteam Qt Qml Team User
            noivis-dev Noivis Vision Systems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes