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. plasma5 - without context menu.png
          50 kB
          danclax
        2. tray_icon_plasma5.tar.bz2
          0.8 kB
          danclax
        3. xfce - app works.png
          4 kB
          danclax
        4. crash.png
          205 kB
          Konstantin
        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