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

[REG 6.6.3->6.7.2] QGuiApplication crashes in destructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 6.7.3
    • 6.7.2, 6.7.3, 6.8.1, 6.8.2
    • QPA: Windows
    • None
    • Windows 10/11
    • Windows

    Description

      6.6.3 was working fine. Recently we've updated to 6.7.2 and started to get reports from our users that our app crashes at exit.

      We've analyzed crash dumps and found that app crashes with the following stack trace:

      [Inline Frame] Qt6Core.dll!winrt::impl::factory_cache_entry_base::clear() Line 6245C++
      [Inline Frame] Qt6Core.dll!winrt::impl::factory_cache::clear() Line 6285C++
      [Inline Frame] Qt6Core.dll!winrt::clear_factory_cache() Line 6470C++
      [Inline Frame] Qt6Core.dll!detail::<lambda_751c40307d9fddc8c7ab26b62a6ff80c>::operator()() Line 46C++
      Qt6Core.dll!<lambda_751c40307d9fddc8c7ab26b62a6ff80c>::<lambda_invoker_cdecl>() Line 46C++
      Qt6Core.dll!detail::QWinRTFactoryCacheRegistration::clearAllCaches() Line 46C++
      qwindows.dll!QWindowsContext::~QWindowsContext() Line 214C++
      [Inline Frame] qwindows.dll!QWindowsIntegrationPrivate::{dtor}() Line 236C++
      [Inline Frame] qwindows.dll!QScopedPointerDeleter<QWindowsIntegrationPrivate>::cleanup(QWindowsIntegrationPrivate *) Line 24C++
      [Inline Frame] qwindows.dll!QScopedPointer<QWindowsIntegrationPrivate,QScopedPointerDeleter<QWindowsIntegrationPrivate>>::{dtor}() Line 81C++
      qwindows.dll!QWindowsIntegration::~QWindowsIntegration() Line 255C++
      [Inline Frame] qwindows.dll!QWindowsGdiIntegration::{dtor}() Line 26C++
      qwindows.dll!QWindowsGdiIntegration::`scalar deleting destructor'(unsigned int)C++
      Qt6Gui.dll!QGuiApplicationPrivate::~QGuiApplicationPrivate() Line 1788C++
      [Inline Frame] Qt6Widgets.dll!QApplicationPrivate::{dtor}() Line 143C++
      Qt6Widgets.dll!QApplicationPrivate::`vector deleting destructor'(unsigned int)C++
      [Inline Frame] Qt6Core.dll!QScopedPointerDeleter<QObjectData>::cleanup(QObjectData *) Line 24C++
      [Inline Frame] Qt6Core.dll!QScopedPointer<QObjectData,QScopedPointerDeleter<QObjectData>>::{dtor}() Line 81C++
      Qt6Core.dll!QObject::~QObject() Line 1181C++
      app.exe!AppQApplication::`vector deleting destructor'(unsigned int)C++
      app.exe!App::~App(void)C++
      app.exe!main()C++
      app.exe!qtEntryPoint() Line 59C++
      [Inline Frame] app.exe!invoke_main() Line 102C++
      app.exe!__scrt_common_main_seh() Line 288C++
      [Frames may be missing, no binary loaded for kernel32.dll]
      kernel32.dll!00007ffb1b87257d()Unknown
      
      Unhandled exception at 0x00007FFA6DEDD3DE (Qt6Core.dll) in dump.dmp: 0xC0000005: Access violation reading location 0x00007FFB07CFA6A0.
      

      P.S. It affects only part of our users. But it's quite a large part. We can't reproduce this issue. 
      P.P.S. We've released the very same version of our app with Qt 6.6.3 instead of 6.7.2. Our users reports that the problem is solved now.

      Attachments

        Issue Links

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

          Activity

            People

              owolff Oliver Wolff
              alervd Alexander Dyagilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes