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

On Mac OS X, QSystemTrayIcon crashes when icon is hidden while the menu is still opened.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 4.6.1, 4.6.2, 4.6.3, 4.7.0, 4.7.2
    • None
    • Mac OS X
    • macOS

    Description

      Application crashes if system tray icon is hidden while its context menu is still opened.

      A simple test ("TrayIconTest.zip") to reproduce the crash is attached. To reproduce do the following:

      1) qmake && make && launch
      2) Click on the icon
      3) Select "Hide Tray Icon"
      4) Quickly click on the tray icon again
      5) Wait a second and click menu item agains

      • Thread 0 Crashed:
      • objc_msgSend
      • [QNSImageView menuTrackingDone:]
      • nsnote_callback
      • CFXNotificationPost
      • CFXNotificationPostNotification
      • [NSNotificationCenter postNotificationName:object:userInfo:]
      • [...]
      • QCoreApplication::exec() + 297
      • QApplication::exec() + 24
      • main + 75 (main.cpp:12)
      • _start + 208
      • start + 40

      Attachments

        1. main.cpp
          0.7 kB
        2. TrayIconTest.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            xcm Martin Petersson (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes