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

Tray icon context menu causes segmentation fault in Plasma Desktop 5 environment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P1: Critical P1: Critical
    • None
    • 5.5.0, 5.5.1
    • QPA: X11/XCB
    • None
    • Kubuntu 15.04, Plasma Desktop 5

      It's very easy to reproduce:

      QMenu trayIconMenu;
      trayIconMenu.addAction("do something");
      QSystemTrayIcon* trayIcon = new QSystemTrayIcon();
      trayIcon->show();
      trayIcon->setContextMenu(&trayIconMenu); // Fails here
      

      In application output we can see:

      QSystemTrayIcon::setVisible: No Icon set
      service is "org.kde.StatusNotifierItem-12650-1"
      Registering a client interface to the KStatusNotifierWatcher
      The program has unexpectedly finished.

      In Plasma Desktop 4 works just fine, in XFCE too. Without setting context menu everything works fine as well, even in Plasma Desktop 5!

      I've attached tiny test project and screenshots.

        1. crash.png
          crash.png
          205 kB
        2. plasma5 - without context menu.png
          plasma5 - without context menu.png
          50 kB
        3. tray_icon_plasma5.tar.bz2
          0.8 kB
        4. xfce - app works.png
          xfce - app works.png
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            srutledg Shawn Rutledge
            danclax danclax
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes