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

Bad access when destroying QComboBox immediately after selecting item

    XMLWordPrintable

Details

    • macOS
    • 6a5cadb955 (qt/qtbase/dev) 6a5cadb955 (qt/tqtc-qtbase/dev) bb07d03e2a (qt/qtbase/6.4) b9e18ee4a5 (qt/qtbase/6.3) b9e18ee4a5 (qt/tqtc-qtbase/6.3) bb07d03e2a (qt/tqtc-qtbase/6.4) 89d41f0644 (qt/tqtc-qtbase/6.2)

    Description

      1. Run the combobox_crash project
      2. Click on the top combobox to open its popup
      3. Move the mouse over the window's close button
      4. Press the enter key to select the highlighted item and immediately click the close button
      5. The app will crash just after the window closes

      Repeating the same steps on the bottom combobox does not cause a crash. The second combobox has its style overridden with a proxy style that returns 0 for the SH_Menu_FlashTriggeredItem style hint, which is enabled in the default style on macOS.

      QComboBox::hidePopup() uses a couple of timers if this style hint is set; if the widget is destroyed before the timers return then it will cause a crash.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            darcyli D'Arcy Matthews-Nally
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: