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

Very strange crashes with QSystemTrayIcon

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.7.0
    • Other
    • None
    • OS: Arch Linux (Kernel: 4.7.6-1-ARCH x86_64)
      Compiler: GCC 6.2.1 and Clang 3.8.1
      Desktop env: KDE (plasmashell 5.8.1) and Gnome (3.22.1-1)

    Description

      Hello,
      I don't think this is a Qt bug but I really don't know where else to post so please forgive me
      I've had some really strange crashes in my application with the QSystemTrayIcon so I wrote a small test application to find out what's going on.
      I have 6 testcases in my testapplication. To reproduce my problem you can just #define the EXAMPLEx stuff.
      Case 1 crashes on Gnome and KDE with GCC (not with Clang, but Clang does not work in my main application, I have no idea why, it spams the debug console with a lot of slot not found messages).
      Case 2: same thing
      Case 3: This one works with GCC too, really creepy... But Case 6 does not, so it might be a Qt problem, not GCC.
      Case 4: same as 3
      Case 5 works with GCC and Clang on Gnome but on KDE the tray icon does not show up. I've seen a bug report about a similar problem but it was fixed about a year ago and I have recent versions of KDE/Plasma so might not be the same...
      I've attached the test application.

      Thanks for your time and have a great and bugless evening

      P.S.
      It crashes in the event loop, not in my code.

      Attachments

        1. application.cpp
          2 kB
        2. application.h
          0.3 kB
        3. main.cpp
          0.2 kB
        4. push-pin.svg
          2 kB
        5. resources.qrc
          0.1 kB
        6. systemtraytest.pro
          0.4 kB

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              AlexRoot Christian Müller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes