Bug 355992

Summary: kdepim-15.08.3 programs fail with "QSystemTrayIcon::setVisible: No Icon set" errors
Product: [Applications] kdepim Reporter: Kwanza.Pili
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: grave CC: florian.lindner, jjm, kedrot, tahall256
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kwanza.Pili 2015-11-27 15:16:26 UTC
I compiled kdepim-15.08.3 from source and I cannot get most of its programs (akregator, blogilo, kalarm, kleopatra, korgac, etc.) to work. They all emit endless errors "QSystemTrayIcon::setVisible: No Icon set" and consume ~98% of CPU until I kill them. I have tried running them under gdb, but they only terminate when I stop them or when akonadi complains of too many files being open. SO I'm guessing that something is trying to set the icon set and ends up in an endless loop.
Other applications:
kde framework = 5.4.3
kde applications = 15.08.3
QT = 5.5.1
OS = opensuse 42.1

Reproducible: Always

Steps to Reproduce:
1. Run korgac / kalarm in terminal window
2. 
3.

Actual Results:  
Endless error report in terminal window or tens of debug popups if run from menu. The application does not terminate unless forcibly killed.

Expected Results:  
Run application or daemon or exit gracefully

Most other Kde apps work without similar issues. The selected desktop and icon theme is breeze. Fonts are set to oxygen
Comment 1 Jonathan Marten 2015-11-27 15:36:25 UTC
Is this under the Plasma 5 desktop?  if so, is DBus set up correctly and running, with its environment variables set in that terminal window?

Possible duplicate of bug 350785.
Comment 2 Kwanza.Pili 2015-11-27 19:32:00 UTC
Yes, I'm running it under plasma5-workspace-5.4.3.

The same behaviour occurs even when the application launches automatically (e.g. korgac via /etc/xdg/autostart/org.kde.korgac.desktop). I rerun in a terminal just so that I can observe the errors. The big problem is that they run out of control and into infinite loops, thus consuming all the CPU.

DBUS is running. The output it dbus-launch gives:
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-jpDuuLSzGC,guid=eafe6573b139512ea42d48c35658af23
DBUS_SESSION_BUS_PID=13691
Moreover, using "dbus-launch korgac" yields precisely the same results: QSystemTrayIcon::setVisible: No Icon set
Comment 3 kedrot 2015-12-21 08:03:50 UTC
Looks related to https://bugs.kde.org/show_bug.cgi?id=353062, but that one only triggers for me when using a non-plasma tray (Trayer, Stalonetray, etc).