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

QMenu crash when clicking outside while menu is already being closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.15.1
    • 5.12.6
    • None
    • macOS 10.15.3
      Qt 5.12.6
    • All
    • f579be96f7ad0362220f710a03a390d1c1139c52 (qt/qtbase/dev) a5700956af3a23eacd1d69fd31ce3b68cd80ce5c (qt/qtbase/5.15)

      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.

        1. QMenuCrash.zip
          4 kB
          Sergei Nevdakh
        2. QMenuCrash_2020-02-19-153323_NSergei-mac.crash
          65 kB
          Sergei Nevdakh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes