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

QMenu crash when clicking outside while menu is already being closed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12.6
    • Fix Version/s: 5.15.1
    • Labels:
      None
    • Environment:
      macOS 10.15.3
      Qt 5.12.6
    • Platform/s:
      All
    • Commits:
      f579be96f7ad0362220f710a03a390d1c1139c52 (qt/qtbase/dev) a5700956af3a23eacd1d69fd31ce3b68cd80ce5c (qt/qtbase/5.15)

      Description

      Create QMenu with Qt::WA_DeleteOnClose attribute.
      Open it.
      Click on some action in this menu.
      Immediately click somewhere outside (in a really short time frame)
      Application crashes.

      It looks like menu is already being deleted when second mouse event is dispatched and processed.
       
      Test app and crash report are attached.

        Attachments

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

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            sergei.nevdakh Sergei Nevdakh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes