Bug 423107 - Systray elements are missing after update - broken config?
Summary: Systray elements are missing after update - broken config?
Status: RESOLVED WORKSFORME
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Michail Vourlakos
URL: https://github.com/psifidotos/plasma-...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-17 14:53 UTC by Michał Dybczak
Modified: 2020-08-28 16:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
after update (7.31 KB, image/jpeg)
2020-06-17 14:53 UTC, Michał Dybczak
Details
empty-systray (335.04 KB, image/png)
2020-06-17 14:54 UTC, Michał Dybczak
Details
before-update-systray-working-fine (9.27 KB, image/jpeg)
2020-06-17 14:54 UTC, Michał Dybczak
Details
plasmashell.log (10.14 KB, text/plain)
2020-06-18 14:23 UTC, Michał Dybczak
Details
plasma-org.kde.plasma.desktop-appletsrc (2.93 KB, text/plain)
2020-06-18 14:25 UTC, Michał Dybczak
Details
systray-elements-screenshot (125.70 KB, image/jpeg)
2020-06-18 14:29 UTC, Michał Dybczak
Details
Plasma 5.19 System Tray settings (113.00 KB, image/png)
2020-06-18 17:14 UTC, Konrad Materka
Details
nohub plasmashell --replace (277.79 KB, text/plain)
2020-06-20 15:11 UTC, Jeroen
Details
System tray screen recording (1.55 MB, video/x-matroska)
2020-06-20 21:36 UTC, Richard Ullger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Dybczak 2020-06-17 14:53:24 UTC
Created attachment 129448 [details]
after update

SUMMARY

After update from Plasma 5.18 to 5.19 I noticed missing system tray icons. There is no Wifi, no Bluetooth, no sound, no keyboard locale, no plasma vault, no clipper, etc. This happened also to others.

STEPS TO REPRODUCE
1. Have Plasma 5.18 and update it to Plasma 5.19.1
2. Reboot

OBSERVED RESULT

System tray is missing most of the icons. Since I use latte as a panel, I thought I maybe add a new systray but no, the fresh systray is also missing all the elements, although in settings they are marked as show. It's not like those elements are hidden - they are simply nowhere to find, so this hinders basic desktop functions. I can't switch keyboard layout, plug in bluetooth devices, interact with my wifi network, etc.

I'm sending screenshot how it looked like and how it looks now.

EXPECTED RESULT

System tray working and having all the usual components.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.6.18-1-MANJARO
OS Type: 64-bity
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 7,6 GiB RAM-u
Graphics Processor: Mesa Intel® HD Graphics 530

Others are also experiencing this bug. See this topic:

https://forum.manjaro.org/t/testing-update-2020-06-16-kernel-browser-kde-cinnamon-deepin-haskell-mesa-virtualbox/148555/31

It is reported that a new user has correct systray so the issue is clearly with configs being either corrupted or not compatible with the new packages.

I'm not sure which config is at fault here but I assume that deleting it will fix the problem, but the fact that people are experiencing it after update means that the update process is broken, at least on Manjaro testing.
Comment 1 Michał Dybczak 2020-06-17 14:54:00 UTC
Created attachment 129449 [details]
empty-systray
Comment 2 Michał Dybczak 2020-06-17 14:54:48 UTC
Created attachment 129450 [details]
before-update-systray-working-fine
Comment 3 Michał Dybczak 2020-06-17 15:24:55 UTC
Deleting plasma-org.kde.plasma.desktop-appletsrc config didn't help. It gave me a default Plasma panel with systray but the issue was still there.

However, on a default, test user, the issue is not present. It means, that if someone leaves defaults, update goes fine but somehow personalized systray is susceptible to this problem.

I'm still looking for the responsible config.
Comment 4 Janet Blackquill 2020-06-17 21:24:04 UTC
Can you share the logs of plasmashell stripped down to as little as possible? (no other applets besides system tray, no wallpaper plugins, etc.)
Comment 5 Michał Dybczak 2020-06-17 21:40:03 UTC
How can I obtain those plasmashell logs?
Comment 6 Janet Blackquill 2020-06-17 21:41:30 UTC
(In reply to Michał Dybczak from comment #5)
> How can I obtain those plasmashell logs?

In a currently running session, you can `nohup plasmashell --replace` in order to run a new instance of plasmashell. Output will be placed in `nohup.out`.
Comment 7 Konrad Materka 2020-06-17 22:41:40 UTC
Hmm, this is really weird, all applets/plasmoids are missing, only SNI icons are there...

Please check System Tray settings (right click on the "arrow", then "Configure System Tray" (in Polish "Ustawienia Tacka systemowa"). Can you attach a screenshot from "Entries" page? Are there plasmoids/applets listed?

Can you attach "plasma-org.kde.plasma.desktop-appletsrc" file? I'm interested in "extraItems" and "knownItems" entries only.
Comment 8 Michał Dybczak 2020-06-18 14:23:56 UTC
Created attachment 129480 [details]
plasmashell.log
Comment 9 Michał Dybczak 2020-06-18 14:25:28 UTC
Created attachment 129481 [details]
plasma-org.kde.plasma.desktop-appletsrc

I doubt that this config is at fault, because when I disabled it and system recreated default one, the issue was still there. However, I upload it anyway.
Comment 10 Michał Dybczak 2020-06-18 14:29:59 UTC
Created attachment 129482 [details]
systray-elements-screenshot

In systray entries, all elements are there with the previous settings. All looks correct, just as it was before.

I believe in the plasmashell log there is some hint what is going on, because there is an error.
Comment 11 Konrad Materka 2020-06-18 17:14:04 UTC
Created attachment 129492 [details]
Plasma 5.19 System Tray settings

(In reply to Michał Dybczak from comment #10)
> Created attachment 129482 [details]
> systray-elements-screenshot
> 
> In systray entries, all elements are there with the previous settings. All
> looks correct, just as it was before.

Something is really wrong with your System Tray, in PLasma 5.19 it looks differently, please check attached screenshot. For example, there is no "Auto Color" column. In addition, in the title, it says that it is Latte Dock - is that correct?

Do you have some custom plasmoids in "~/.local/share/plasma/plasmoids/"?

What happens if you run:
plasmoidviewer --applet org.kde.plasma.systemtray

Can you test on entirely new user?
Comment 12 Michał Dybczak 2020-06-18 19:01:06 UTC
Ah, forgot to mention it. This is some small modification of systray plasmoid from latte developer. It basically is the same as default systray but adds a small feature to turn on/off coloring of each element by latte panel/dock.

However, this is not causing the issue. The default systray shows the same problem. When I run this plasmoid viewer, I see the impaired version of systray, only media player and nothing more.

I already said above, the new, default user don't show this problem. This is true for others, but their personalized systrays (not the latte version) are still bugged.

I'm aware I could delete all configs and that would probably fix the issue, but I don't want it. I did it once and till day I don't know how to bring back some old behavior I wanted (like on spectacle - previously keyboard shortcuts worked, now they don't, and before, I didn't set them, they were system defaults). I prefer to find the culprit and delete that one instead nuking all configs, because I can't recover from such action for months.

I'm repeating myself, but I want to stress it: resetting plasma-org.kde.plasma.desktop-appletsrc didn't help, the default system on default panel had the same issue. So the issue is elsewhere.

An additional info:

When I log out from session, keyboard locale indicator shows up, as if something that was suppressing it was gone. But the rest of systray elements is still not there.

There is some error with kirigami on plasmashell log. Some issue with onFoo properties (whatever that is) and kf5.kpackage that looks for something that it shouldn't have, and finally:

Error: cannot change the containment to AppletsLayout

I have no idea what that means. Hopefully someone from here will.

Since there are few people that have the same problem, this should be resolved before new Plasma goes more mainstream, because even if few percent people will have it, this would mean probably thousands of people having bad Plasma update experience. Or maybe this is limited to Arch family? Still a big user base.
Comment 13 Konrad Materka 2020-06-18 21:32:24 UTC
(In reply to Michał Dybczak from comment #12)
> Ah, forgot to mention it. This is some small modification of systray
> plasmoid from latte developer. It basically is the same as default systray
> but adds a small feature to turn on/off coloring of each element by latte
> panel/dock.

How to get it? How to configure Latte Dock to show systray?

> However, this is not causing the issue. The default systray shows the same
> problem. When I run this plasmoid viewer, I see the impaired version of
> systray, only media player and nothing more.

It might cause problems, even for original systray if some file are replaced/overwritten by Latte Dock modifications. Recently System Tray received heavy refactoring, it is possbile that version from Latte Dock is no longer compatible.
Can you attach logs from plasmoid viewer? What happens if you disable applets in settings and enable it again?

> I already said above, the new, default user don't show this problem. This is
> true for others, but their personalized systrays (not the latte version) are
> still bugged.

I understand, but to solve your issue I need as much information as possible from your machine - other users problems might be unrelated.
Can you try on new user? You don't need to delete current one, just create new one for tests.

> I'm aware I could delete all configs and that would probably fix the issue,
> but I don't want it.

That's OK and I agree that it is better to find root cause, even if this is a configuration issue.

> I'm repeating myself, but I want to stress it: resetting
> plasma-org.kde.plasma.desktop-appletsrc didn't help, the default system on
> default panel had the same issue. So the issue is elsewhere.

I suspect that issue is not in the configuration, but to know if this is system-wide issue or specific to your user test on new, fresh user is necessary.

> An additional info:
> 
> When I log out from session, keyboard locale indicator shows up, as if
> something that was suppressing it was gone. But the rest of systray elements
> is still not there.

There are two categories of systray icons: applets/plasmoids and SNI (StatusNotifierItem). As far as I understand only applets/plasmoids are affected, SNI are visible correctly. Keyboard locale indicator is using SNI, so probably unrelated.

> There is some error with kirigami on plasmashell log. Some issue with onFoo
> properties (whatever that is) and kf5.kpackage that looks for something that
> it shouldn't have, and finally:
> 
> Error: cannot change the containment to AppletsLayout

Most probably unrelated. Logs from plasmoidviewer should give more narrowed output.

> Since there are few people that have the same problem, this should be
> resolved before new Plasma goes more mainstream, because even if few percent
> people will have it, this would mean probably thousands of people having bad
> Plasma update experience. Or maybe this is limited to Arch family? Still a
> big user base.

Is there a Live CD/DVD version that can be tested in VirtualBox?
Comment 14 Konrad Materka 2020-06-18 21:42:21 UTC
One more thing, I cannot reproduce this on KDE Neon (Ubuntu based).

I'm downloading Manjaro KDE from https://manjaro.org/downloads/official/kde/ and will check that in Virtual Box.
Comment 15 Konrad Materka 2020-06-18 22:50:12 UTC
I installed Manjaro KDE in Virtual Box, switched repository to "testing", updated to latest Plasma 5.19.1 and everything is working correctly.

I will check that systray Latte tweaks...
Comment 16 Konrad Materka 2020-06-18 23:04:47 UTC
I installed:
https://github.com/psifidotos/plasma-systray-latte-tweaks
Everything works correctly, but... Few days ago there we some fixes for 5.19 in Latte systray, so I reverted to older version to check. With older version it is not working, as described in this bug report.

Closing it as it is not a problem in KDE Plasma.

This kind of hacks are very risky and error prone, I created a bug report in plasma-systray-latte-tweaks project with a suggestion to add clear warning:
https://github.com/psifidotos/plasma-systray-latte-tweaks/issues/5
Comment 17 Jeroen 2020-06-20 15:11:07 UTC
Created attachment 129552 [details]
nohub plasmashell --replace

Jeroen Rijken
Comment 18 Jeroen 2020-06-20 15:11:53 UTC
Hi,

My systray is also completely broken, no items are available at all. Also those pop-ups I usually get for media controls (for example when I connect my bluetooth speakers you get a pop-up) are completely gone. I have attempted various manual changes to the plasma-org.kde.plasma.desktop-appletsrc and while I was able to remove some widgets that even after removing were still present by deleting the configurations from this file, it had no effect on my systray at all. After a desparate attempt to fix this by deleting the whole .config and .cache folders, I still have no systay but I cannot change my background anymore either. When I right-click on the desktop and select "Configure Desktop...". It throws an error saying "Layout changes must be applied before ...". The menu is empty and apply now does nothing. Everythis is grayed out. Also my keyboard shortcuts are no longer working.

Creating a new user via the system settings only copies over files from /etc/skel to the new user, it does not setup plasma (another bug?). Logging in anyway gives me an empty desktop with a default background and no panel / widgets / icons whatsoever. Creating the systray widget on the desktop gives me and empty box with no systray items.

I have no plasmoids installed. I do have latte-dock. Removing it has no effect.
Comment 19 Jeroen 2020-06-20 15:13:32 UTC
Sorry, first time using Bugzilla. The attachment above is from my "nohup plasmashell --replace". I'm running KDE Neon. Let me know what else you need.
Jeroen
Comment 20 Richard Ullger 2020-06-20 21:36:09 UTC
Created attachment 129558 [details]
System tray screen recording

I have a similar issue with the system tray being empty which only manifests itself in latte-dock.

The screen recording shows the empty system tray and a new one added.

1. The system tray used is the default plasma widget.
2. When added to a vertical latte dock, the system tray functions correctly.
3. When latte-dock is started, by quitting and restarting latte or by logging out and logging in, the system tray is empty.
4. Even though the system tray appears empty, hovering the mouse pointer over the dock causes the tool tips to be displayed but in a horizontal aspect.
5. Removing ~/.config/plasma-org.kde.plasma.desktop-appletsrc causes a default plasma panel to be created on login with a correctly functioning system tray.

Operating System: Arch Linux
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.4-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5 CPU M 430 @ 2.27GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics

latte-dock-git r4256.25f1b66d-1 (Sat 20 Jun 2020 21:02:57 BST)
Comment 21 Michał Dybczak 2020-06-21 14:51:14 UTC
I fixed my issue because as @Konrad Materka said, the systray-latte-tweak conflicted with the new version of systray. To be precise the systray-latte tweak conflicted because it was old and not updated. Once I went on the page:

https://github.com/psifidotos/plasma-systray-latte-tweaks

and updated the tweak, rebooted latte, everything went back to normal, all app icons are back in their place and all is working as it should.
So the issue here for me, was simply that I didn't update the tweak with the Plasma update.
On my defense, I didn't think it will impair also the default systray and the update is manual and it's easy to forgot about it.

Any other issues with similar effect here are a different bug.
Comment 22 Konrad Materka 2020-08-11 15:24:01 UTC
Is anyone still experiencing this issue?
Comment 23 Michał Dybczak 2020-08-11 15:48:52 UTC
For me all is fine after the update of the plasma-systray-latte-tweaks.
Comment 24 Bug Janitor Service 2020-08-26 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 25 Michał Dybczak 2020-08-28 16:01:41 UTC
Since this is resolved by updating the systray-latte tweak and no one provided any additional info that would prove that this still exists, I'm attempting to close this thread.