Bug 1297149 - copyq: QSystemTrayIcon::setVisible: No Icon set
Summary: copyq: QSystemTrayIcon::setVisible: No Icon set
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: copyq
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gerald Cox
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-09 23:48 UTC by woky
Modified: 2016-03-08 22:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-08 13:25:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description woky 2016-01-09 23:48:27 UTC
Description of problem: Running the copyq program doesn't start the daemon and repeatedly prints "QSystemTrayIcon::setVisible: No Icon set".

Version-Release number of selected component (if applicable): copyq-2.5.0-1.fc23.x86_64

How reproducible: Everytime.

Steps to Reproduce:
1. Install minimum Fedora 23 installation from netinstall medium (without prepared KDE environment).
2. Install i3, gnome-terminal.
3. Install gpaste.
4. Run
  $ qopyq
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemdata.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemencrypted.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemfakevim.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemimage.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemnotes.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemsync.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemtags.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemtext.so
  CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemweb.so
  QSystemTrayIcon::setVisible: No Icon set
  QSystemTrayIcon::setVisible: No Icon set
  QSystemTrayIcon::setVisible: No Icon set
  QSystemTrayIcon::setVisible: No Icon set
  QSystemTrayIcon::setVisible: No Icon set
  QSystemTrayIcon::setVisible: No Icon set
  [...SNIP...]

Actual results: copyq starts the daemon, the applet in systray and runs normally.

Expected results: The last message in the above output is quickly repeated infinitely often.

Additional info:

I've debugged it without debugging symbols. If debug with symbols would help please tell me I'll attach it.

It seems that it's stuck in some infinite loop (see below please). There's probably some missing dependency. (I already had a problem with Dolphin for which I had to manually install kf5-frameworkintegration to make any icons appear (folders, files). It didn't go into infinite loop though.)

$ gdb copyq
Reading symbols from copyq...Reading symbols from /home/woky/copyq...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: dnf debuginfo-install copyq-2.5.0-1.fc23.x86_64
(gdb) run
Starting program: /usr/bin/copyq 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdfe28700 (LWP 17528)]
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemdata.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemencrypted.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemfakevim.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemimage.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemnotes.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemsync.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemtags.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemtext.so
CopyQ  Loading plugin: /usr/lib64/copyq/plugins/libitemweb.so
Detaching after fork from child process 17532.
Detaching after fork from child process 17533.
QSystemTrayIcon::setVisible: No Icon set
Detaching after fork from child process 17534.
QSystemTrayIcon::setVisible: No Icon set
Detaching after fork from child process 17535.
QSystemTrayIcon::setVisible: No Icon set
Detaching after fork from child process 17536.
QSystemTrayIcon::setVisible: No Icon set
Detaching after fork from child process 17537.
QSystemTrayIcon::setVisible: No Icon set
^Z
Program received signal SIGTSTP, Stopped (user).
0x00007ffff41cebcd in read () from /lib64/libc.so.6
(gdb) where
#0  0x00007ffff41cebcd in read () at /lib64/libc.so.6
#1  0x00007fffe41c96a8 in _dbus_read () at /lib64/libdbus-1.so.3
#2  0x00007fffe41cccf9 in _dbus_get_autolaunch_address () at /lib64/libdbus-1.so.3
#3  0x00007fffe41c1625 in _dbus_transport_open_autolaunch () at /lib64/libdbus-1.so.3
#4  0x00007fffe41c14ca in _dbus_transport_open () at /lib64/libdbus-1.so.3
#5  0x00007fffe41abccf in _dbus_connection_open_internal () at /lib64/libdbus-1.so.3
#6  0x00007fffe41a75ec in internal_bus_get () at /lib64/libdbus-1.so.3
#7  0x00007fffe2023b72 in QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) () at /lib64/libQt5DBus.so.5
#8  0x00007fffde57bfcf in KStatusNotifierItemDBus::KStatusNotifierItemDBus(KStatusNotifierItem*) () at /lib64/libKF5Notifications.so.5
#9  0x00007fffde576350 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#10 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#11 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#12 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#13 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#14 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#15 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#16 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#17 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#18 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#19 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#20 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#21 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#22 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#23 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#24 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#25 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#26 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#27 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#28 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#29 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#30 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#31 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#32 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#33 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#34 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#35 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#36 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#37 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#38 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#39 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#40 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#41 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#42 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#43 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#44 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#45 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#46 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#47 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#48 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#49 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#50 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#51 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#52 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#53 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5
#54 0x00007ffff6012527 in QSystemTrayIcon::setVisible(bool) () at /lib64/libQt5Widgets.so.5
#55 0x00007fffde574375 in KStatusNotifierItemPrivate::setLegacySystemTrayEnabled(bool) () at /lib64/libKF5Notifications.so.5
#56 0x00007fffde575e91 in KStatusNotifierItemPrivate::registerToDaemon() () at /lib64/libKF5Notifications.so.5
#57 0x00007fffde5769b6 in KStatusNotifierItemPrivate::init(QString const&) () at /lib64/libKF5Notifications.so.5
#58 0x00007fffde576cc4 in KStatusNotifierItem::KStatusNotifierItem(QObject*) () at /lib64/libKF5Notifications.so.5
#59 0x00007fffdede1f07 in KDEPlatformSystemTrayIcon::init() () at /usr/lib64/qt5/plugins/platformthemes/KDEPlatformTheme.so
#60 0x00007ffff6012a24 in QSystemTrayIconPrivate::install_sys_qpa() () at /lib64/libQt5Widgets.so.5
#61 0x00007ffff602fb4e in QSystemTrayIconPrivate::install_sys() () at /lib64/libQt5Widgets.so.5

Comment 1 Gerald Cox 2016-03-08 13:25:23 UTC
I am not able to reproduce the problem, and we're now on 2.6.1 - so not sure what was happening on your particular installation.  If you're still having issues, please document and I will consult upstream.

Comment 2 Sudhir Khanger 2016-03-08 14:08:14 UTC
I don't know about the OP but this bug stems from using XDG_CURRENT_DESKTOP=kde in my case. If I use that export then CopyQ won't show system tray icon. If I don't use that export then none of the Qt file browsers will show icon.

Whole Qt apps ecosystem seems to be affected by this if you were to search "QSystemTrayIcon::setVisible: No Icon set"

If you want to try to replicate this then follow the steps.

dnf install i3 i3status
set XDG_CURRENT_DESKTOP=kde in ~/.bashrc
login into i3 then run CopyQ

Comment 3 Gerald Cox 2016-03-08 14:21:18 UTC
Well, wouldn't that indicate it's not an issue with copyq?  I'm not using i3 and am not experiencing any issues with either lxqt or plasma - both using kwin.

Comment 4 Sudhir Khanger 2016-03-08 14:22:32 UTC
I would think so.

Comment 5 woky 2016-03-08 18:27:09 UTC
Good catch Sudhir. I've put "export XDG_CURRENT_DESKTOP=kde" some time ago in my ~/.xinitrc. I did it because the Dolphin (KDE5 already) wouldn't show any icons without it, not even files. I googled it as a possible fix and I didn't care about details. I removed the Dolphin after trying it for a while and forgot about the variable. Unsetting XDG_CURRENT_DESKTOP fixed the problem for me.

Googling "QSystemTrayIcon::setVisible: No Icon set" brings lots problems which are seemingly unrelated to each other and mostly innocent. However, CopyQ was the only Qt/KDE program I run that turned into infinite loop with this variable set. I don't think it's NOTABUG but it probably belongs to upstream's bugtracker.

Comment 6 Gerald Cox 2016-03-08 22:56:13 UTC
(In reply to Tomáš Nechutný from comment #5)
 I don't think it's NOTABUG but it probably belongs to
> upstream's bugtracker.

Thanks for the feedback.  I'm not experiencing the issue, so if you feel strongly about it, feel free to report it upstream.  Would be more efficient than me relaying messages back and forth.


Note You need to log in before you can comment on or make changes to this bug.