Bug 497490 - After some time the icons disappear from system tray on i3
Summary: After some time the icons disappear from system tray on i3
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kstatusnotifieritem
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.8.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-15 09:50 UTC by Juraj
Modified: 2024-12-16 21:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juraj 2024-12-15 09:50:58 UTC
SUMMARY
The computer "runs" for a long time over many days with suspending to memory and waking up daily.
After system starts from cold boot the icons for KMail and KWalletManager are shown in the i3bar notification area (legacyIcon).
The icons are present for multiple days and multiple suspend/sleep cycles until they disappear.


STEPS TO REPRODUCE
1. Use i3bar to provide legacy notification area
2. Run it for a long time, maybe with suspend-resume
3. Wait and observe

OBSERVED RESULT
One day, the tray icons disappears and will not appear until other reboot (I did not try to logout - login).
After the conditions for tray disappearing icons are met, no new KMail or KWalletManager icons are shown, even if programs are restarted.

EXPECTED RESULT
Icons are still show in the notification are like any other.

SOFTWARE/OS VERSIONS
Operating System: Artix Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.3-artix1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series

ADDITIONAL INFORMATION
This is happening for a long time already.
Comment 1 Nate Graham 2024-12-16 19:20:14 UTC
Can I ask how you reached the conclusion that frameworks-kstatusnotifieritem is at fault here, as opposed to i3's tray implementation?
Comment 2 Juraj 2024-12-16 21:02:31 UTC
> Can I ask how you reached the conclusion that frameworks-kstatusnotifieritem is at fault here, as opposed to i3's tray implementation?

You are right, I blindly assumed that since only KDE programs (KMail and KWalôletManager) disappear and Transmission-qt shows the icon all Qt stuff will show it just fine as well and KDE ones will not..
That does not seems to be the case since the systray qt example[1] also does not show the icon.

So I believe that this is either i3bar or Qt issue.

Thank you for pointing this out.
Best regards,

[1]: https://doc.qt.io/qt-6/qtwidgets-desktop-systray-example.html
Comment 3 Nate Graham 2024-12-16 21:16:04 UTC
You're welcome!