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

Crash when closing application that uses nested native menus on Windows

    XMLWordPrintable

Details

    • 0dbfa219e704dbccadff9f305817bfd4ef37905b

    Description

      import QtQuick 2.7
      import QtQuick.Controls 2.3
      import Qt.labs.platform 1.0 as Platform
      
      ApplicationWindow {
          id: root
          visible: true
          width: 640
          height: 480
      
          Platform.MenuBar {
              Platform.Menu {
                  title: "File"
      
                  Platform.Menu {
                      title: "Recent Files"
                  }
              }
          }
      }
      
      1  QArrayData::data                                                                         qarraydata.h                66   0x7ffaffae5fde 
      2  QTypedArrayData<QWindowsMenuItem * __ptr64>::data                                        qarraydata.h                207  0x7ffaff413e34 
      3  QTypedArrayData<QWindowsMenuItem * __ptr64>::constEnd                                    qarraydata.h                214  0x7ffaff413d68 
      4  QVector<QWindowsMenuItem * __ptr64>::cend                                                qvector.h                   211  0x7ffaff413c98 
      5  QWindowsMenu::itemForSubMenu                                                             qwindowsmenu.cpp            566  0x7ffaff40e8b0 
      6  QWindowsMenu::removeFromParent                                                           qwindowsmenu.cpp            597  0x7ffaff40ec57 
      7  QWindowsMenu::~QWindowsMenu                                                              qwindowsmenu.cpp            511  0x7ffaff40d9c2 
      8  QWindowsMenu::`scalar deleting destructor'                                               qwindowsd                        0x7ffaff4135a7 
      9  QQuickPlatformMenu::destroy                                                              qquickplatformmenu.cpp      218  0x7ffb1eccc612 
      10 QQuickPlatformMenu::setParentMenu                                                        qquickplatformmenu.cpp      311  0x7ffb1eccca98 
      11 QQuickPlatformMenu::~QQuickPlatformMenu                                                  qquickplatformmenu.cpp      160  0x7ffb1eccbf7f 
      12 QQmlPrivate::QQmlElement<QQuickPlatformMenu>::~QQmlElement<QQuickPlatformMenu>           qqmlprivate.h               103  0x7ffb1ecb8a4d 
      13 QQmlPrivate::QQmlElement<QQuickPlatformMenu>::`scalar deleting destructor'               qtlabsplatformplugind            0x7ffb1ecb9697 
      14 QObjectPrivate::deleteChildren                                                           qobject.cpp                 1995 0x7ffafff74c11 
      15 QObject::~QObject                                                                        qobject.cpp                 1023 0x7ffafff6edbe 
      16 QQuickPlatformMenuBar::~QQuickPlatformMenuBar                                            qquickplatformmenubar.cpp   124  0x7ffb1ecd171f 
      17 QQmlPrivate::QQmlElement<QQuickPlatformMenuBar>::~QQmlElement<QQuickPlatformMenuBar>     qqmlprivate.h               103  0x7ffb1ecb8aad 
      18 QQmlPrivate::QQmlElement<QQuickPlatformMenuBar>::`scalar deleting destructor'            qtlabsplatformplugind            0x7ffb1ecb96e7 
      19 QObjectPrivate::deleteChildren                                                           qobject.cpp                 1995 0x7ffafff74c11 
      20 QObject::~QObject                                                                        qobject.cpp                 1023 0x7ffafff6edbe 
      21 QQuickItem::~QQuickItem                                                                  qquickitem.cpp              2432 0x7ffafeb1dda6 
      22 QQuickItem::`scalar deleting destructor'                                                 Qt5QuickTemplates2d              0x7ffafe537fd8 
      23 QObjectPrivate::deleteChildren                                                           qobject.cpp                 1995 0x7ffafff74c11 
      24 QObject::~QObject                                                                        qobject.cpp                 1023 0x7ffafff6edbe 
      25 QQuickItem::~QQuickItem                                                                  qquickitem.cpp              2432 0x7ffafeb1dda6 
      26 QQuickRootItem::~QQuickRootItem                                                          Qt5Quickd                        0x7ffafeb76213 
      27 QQuickRootItem::`scalar deleting destructor'                                             Qt5Quickd                        0x7ffafeb77b47 
      28 QQuickWindow::~QQuickWindow                                                              qquickwindow.cpp            1312 0x7ffafeb5cafa 
      29 QQuickWindowQmlImpl::~QQuickWindowQmlImpl                                                Qt5Quickd                        0x7ffafeccd6d5 
      30 QQuickApplicationWindow::~QQuickApplicationWindow                                        qquickapplicationwindow.cpp 375  0x7ffafe53220c 
      31 QQmlPrivate::QQmlElement<QQuickApplicationWindow>::~QQmlElement<QQuickApplicationWindow> qqmlprivate.h               103  0x7ffb1ab7757e 
      32 QQmlPrivate::QQmlElement<QQuickApplicationWindow>::`scalar deleting destructor'          qtquicktemplates2plugind         0x7ffb1ab79627 
      33 qDeleteAll<QList<QObject * __ptr64>::const_iterator>                                     qalgorithms.h               320  0x7ffb00c861fd 
      34 qDeleteAll<QList<QObject * __ptr64>>                                                     qalgorithms.h               329  0x7ffb00c86110 
      35 QQmlApplicationEnginePrivate::cleanUp                                                    qqmlapplicationengine.cpp   66   0x7ffb00c84e8a 
      36 QQmlApplicationEngine::~QQmlApplicationEngine                                            qqmlapplicationengine.cpp   246  0x7ffb00c846eb 
      37 main                                                                                     main.cpp                    16   0x7ff6b40929bc 
      38 WinMain                                                                                  qtmain_win.cpp              104  0x7ff6b40960ad 
      39 invoke_main                                                                              exe_common.inl              107  0x7ff6b40948cd 
      40 __scrt_common_main_seh                                                                   exe_common.inl              283  0x7ff6b40947c7 
      41 __scrt_common_main                                                                       exe_common.inl              326  0x7ff6b409468e 
      42 WinMainCRTStartup                                                                        exe_winmain.cpp             17   0x7ff6b4094959 
      43 BaseThreadInitThunk                                                                      KERNEL32                         0x7ffb4be71fe4 
      44 RtlUserThreadStart                                                                       ntdll                            0x7ffb4c17efc1 
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-66889
          # Subject Branch Project Status CR V

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes