Bug 454105 - plasma panel widgets disappear/get misplaced after plasmashell restart if application icons are present in panel
Summary: plasma panel widgets disappear/get misplaced after plasmashell restart if app...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.24.90
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
: 454022 454212 454426 454550 454551 454906 455163 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-20 18:03 UTC by Pawel
Modified: 2022-07-23 18:13 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.25


Attachments
original config (16.65 KB, text/plain)
2022-05-20 18:03 UTC, Pawel
Details
new config (5.81 KB, text/plain)
2022-05-20 18:03 UTC, Pawel
Details
panel screenshot (1.63 MB, image/png)
2022-05-20 18:03 UTC, Pawel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel 2022-05-20 18:03:01 UTC
Created attachment 149034 [details]
original config

I upgraded to 5.25 beta today on Arch Linux and I was greeted by a panel without the major widgets I have: icon-only task manager, system tray, digital clock and more. I had to remove my org.kde.plasma.desktop-appletsrc file and add a new panel. After reboot I have the exact same issue.

I have attached the original org.kde.plasma.desktop-appletsrc file, a screenshot of the issue an the current org.kde.plasma.desktop-appletsrc.
Comment 1 Pawel 2022-05-20 18:03:19 UTC
Created attachment 149035 [details]
new config
Comment 2 Pawel 2022-05-20 18:03:38 UTC
Created attachment 149036 [details]
panel screenshot
Comment 3 Pawel 2022-05-20 18:04:21 UTC
and sorry, this is on wayland.

Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Comment 4 Bacteria 2022-05-22 05:16:43 UTC
I use 2 panels and one of them had an application icon (spectacle) and that is the one where I am seeing this bug. The spectacle icon goes below the other widgets and there seems to be no way to remove it. One can only fix it by removing and adding the panel back. 

Temporarily I have removed the app icon from the panel and everything else seems to be working fine. Maybe the application icons seem to be the problem? I am not seeing the bug in my other panel which has no app icons.
Comment 5 Pawel 2022-05-22 09:41:31 UTC
@bacteria

Yep thanks I can confirm the same. The bug is not triggered if I don’t add any application icons.
I will use this as a workaround for now.
Comment 6 Bacteria 2022-05-23 04:40:37 UTC
*** Bug 454212 has been marked as a duplicate of this bug. ***
Comment 7 Fushan Wen 2022-05-24 14:53:20 UTC
Can reproduce after adding a application widget.
Comment 8 Nate Graham 2022-05-24 16:17:25 UTC
*** Bug 454022 has been marked as a duplicate of this bug. ***
Comment 9 Bug Janitor Service 2022-05-24 16:51:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/955
Comment 10 Pawel 2022-05-24 17:27:17 UTC
(In reply to Bug Janitor Service from comment #9)
> A possibly relevant merge request was started @
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/955

I can confirm this fixes the issue for me.

Thanks!
Comment 11 NoWorries 2022-05-25 00:27:30 UTC
I have also experienced this problem and the only way to totally get around it is to make my desktop look like a Windows 10 desktop which is full of icons to launch applications.

A partial compromise is to create 3 blank empty panels at the top of the screen, one centre, one left and the other right.  Each contains one of my most frequently used applications.   This approach can also be used on the left and right edges of the screen to make a total of 9 applications that can be launched easily.

I hope his bug is easily fixed without having to use the above deviant approach.
Comment 12 Fushan Wen 2022-05-25 15:22:44 UTC
Git commit 199ff3d4f0771fe1928a15d137fc7f069db6e62b by Fushan Wen.
Committed on 25/05/2022 at 15:20.
Pushed by fusionfuture into branch 'master'.

containments/panel: fix icon applet hack in `addApplet`

childAt in currentLayout will return nothing when the initialization
process is still running, which will place the icon applet at a wrong
position and ruin the order of other applets.
FIXED-IN: 5.25

M  +20   -8    containments/panel/contents/ui/LayoutManager.js

https://invent.kde.org/plasma/plasma-desktop/commit/199ff3d4f0771fe1928a15d137fc7f069db6e62b
Comment 13 Bacteria 2022-05-26 09:08:02 UTC
*** Bug 454426 has been marked as a duplicate of this bug. ***
Comment 14 Bug Janitor Service 2022-05-27 09:10:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/961
Comment 15 Nate Graham 2022-05-27 15:31:24 UTC
Git commit 38bf92fc70e6717fd46fb63fc59fc1eb32c721ce by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 27/05/2022 at 15:31.
Pushed by ngraham into branch 'master'.

Fix icon applet positioning

The "middle" variable  was not declared as var, and it raised an exception
when trying to set a value to it.
FIXED-IN: 5.25

M  +5    -5    containments/panel/contents/ui/LayoutManager.js

https://invent.kde.org/plasma/plasma-desktop/commit/38bf92fc70e6717fd46fb63fc59fc1eb32c721ce
Comment 16 Nate Graham 2022-05-27 15:32:05 UTC
Git commit 4202c5741fbe7cd7cb7615a7b334b3896e89d11e by Nate Graham, on behalf of Niccolò Venerandi.
Committed on 27/05/2022 at 15:32.
Pushed by ngraham into branch 'Plasma/5.25'.

Fix icon applet positioning

The "middle" variable  was not declared as var, and it raised an exception
when trying to set a value to it.
FIXED-IN: 5.25


(cherry picked from commit 38bf92fc70e6717fd46fb63fc59fc1eb32c721ce)

M  +5    -5    containments/panel/contents/ui/LayoutManager.js

https://invent.kde.org/plasma/plasma-desktop/commit/4202c5741fbe7cd7cb7615a7b334b3896e89d11e
Comment 17 Nate Graham 2022-06-01 17:53:30 UTC
*** Bug 454550 has been marked as a duplicate of this bug. ***
Comment 18 Nate Graham 2022-06-01 18:04:02 UTC
*** Bug 454551 has been marked as a duplicate of this bug. ***
Comment 19 Nate Graham 2022-06-05 21:37:22 UTC
*** Bug 454906 has been marked as a duplicate of this bug. ***
Comment 20 Nate Graham 2022-06-13 16:55:40 UTC
*** Bug 455163 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2022-07-23 18:13:31 UTC
*** Bug 454022 has been marked as a duplicate of this bug. ***