By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2797 - Some qt5 programs with systray icon are unable to start
Summary: Some qt5 programs with systray icon are unable to start
Status: NEW
Alias: None
Product: TDE
Classification: Unclassified
Component: tdebase (show other bugs)
Version: R14.1.x [Trinity]
Hardware: amd64 Linux
: P5 major
Assignee: Timothy Pearson
URL:
Depends on:
Blocks:
 
Reported: 2017-08-07 14:59 CDT by Sergey Frolov
Modified: 2017-09-15 09:31 CDT (History)
2 users (show)

See Also:
Compiler Version:
TDE Version String: 4:14.0.5~pre19-0debian9.0.0+3
Application Version:
Application Name:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Frolov 2017-08-07 14:59:11 CDT
Launching some qt4 programs with systemtray icon, or enabling one during runtime, causes said program to hang, consuming 100% CPU.

Steps to Reproduce:
   1. Launch some affected qt4-based program (quiterss, qbittorrent)
   2. Enable systray icon in program settings (if needed)

Actual Results: immediate hang of said program, tray icon will not appear.
Expected Results: tray icon appears in kicker tray and program remains responsive.


Environment:
Debian GNU/Linux 9
Linux 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
TDE: tdebase-trinity 4:14.0.5~pre19-0debian9.0.0+3, installed from
https://wiki.trinitydesktop.org/Preliminary_Stable_Builds


Unfourtunately, there is nothing in X.org or .xsession-errors logs.
The only clue to what's happening was obtained from quiterss debug log.
When tray icon was supposed to appear, it began to rapidly grow, repeating
this line over and over again:

07.08.2017 22:37:38.118 WARNING: QSystemTrayIcon::setVisible: No Icon set
07.08.2017 22:37:38.126 WARNING: QSystemTrayIcon::setVisible: No Icon set
07.08.2017 22:37:38.134 WARNING: QSystemTrayIcon::setVisible: No Icon set
07.08.2017 22:37:38.142 WARNING: QSystemTrayIcon::setVisible: No Icon set
07.08.2017 22:37:38.150 WARNING: QSystemTrayIcon::setVisible: No Icon set


Due to lack of stable R14.0.4 for Debian Stretch I can't precisely tell, whether this is a regression in the preliminary builds, or it is somehow related to the Jessie -> Stretch update.
Comment 1 Sergey Frolov 2017-09-09 03:49:55 CDT
One more application that fails to start is Cantata (Qt4 mpd client).
Unlike other apps it'll print "QSystemTrayIcon::setVisible: No Icon set"
message right into stderr.

As with programs listed above, be sure to enable systray icon first to observe this behaviour.

Overall, this is a pretty nasty regression :(
Comment 2 Sergey Frolov 2017-09-15 06:53:44 CDT
I've tried to pinpoint this more accurately.

I discovered that I can install R14.0.4 on Debian Stretch by enabling old Jessie repository.
It does exhibit the very same problem, so it is not a regression.

It seems like perhaps Trinity should do something, that was previously done by some other distribution component (Display Manager, perhaps?).


I've tried to trace where things went wrong for Cantata under TDE.
trace=open output began to diverge here:

[pid  6099] open("/home/aidaho/.local/share/mime/generic-icons", O_RDONLY|O_CLOEXEC) = 20
[pid  6099] open("/usr/share/mime/generic-icons", O_RDONLY|O_CLOEXEC) = 20
[pid  6099] open("/home/aidaho/.cache/icon-cache.kcache", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 20
[pid  6099] open("/dev/tty", O_RDONLY|O_CLOEXEC) = 20
Icon theme "cantata" not found.
[pid  6099] open("/usr/share/cantata/icons/cantata/index.theme", O_RDONLY|O_CLOEXEC) = 20
[pid  6099] open("/usr/share/icons/breeze/icon-theme.cache", O_RDONLY|O_CLOEXEC) = 20
[pid  6099] open("/usr/share/icons/breeze/index.theme", O_RDONLY|O_CLOEXEC) = 21


Cantata prints 'Icon theme "cantata" not found.' as if trying to say us something.
Here is how this part looks with KDE5:


[pid  6829] open("/home/aidaho/.local/share/mime/generic-icons", O_RDONLY|O_CLOEXEC) = 10
[pid  6829] open("/usr/share/mime/generic-icons", O_RDONLY|O_CLOEXEC) = 10
[pid  6829] open("/home/aidaho/.cache/icon-cache.kcache", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 10
[pid  6829] open("/home/aidaho/.icons/ultra-flat-icons/index.theme", O_RDONLY|O_CLOEXEC) = 10


I'm not yet sure what to make of this. It appears as message was printed after reading
'~.cache/icon-cache.kcache', which is a file created by KDE5 and is identical to the one
found in /var/tmp/kdecache-aidaho/
Comment 3 Sergey Frolov 2017-09-15 09:31:54 CDT
Correction: I've checked dependencies and it turned out all affected programs depend on Qt5 libraries.