Plasma tray bar relocates itself to top of screen

@guss77 Yeah I have the same issue as @Obelisk. Running that qdbus command completely kills plasmashell. It also still caused VSCode to crash, presumably due to the reparenting issue.

I re-tested that command and used journalctl --user -u plasma-plasmashell.service -f > ~/Downloads/restart-plasma-crash.txt to grab the following logs:

Apr 09 11:06:28 arch-desktop plasmashell[306899]: Could not create Plasma Calendar Plugin:  ""
Apr 09 11:06:28 arch-desktop plasmashell[306899]: "The shared library was not found."
Apr 09 11:06:28 arch-desktop plasmashell[306899]: Loading Calendar plugin HolidaysEventsPlugin(0x5b3ce9de2f30)
Apr 09 11:06:28 arch-desktop plasmashell[306899]: Loading Calendar plugin AstronomicalEventsPlugin(0x5b3ce9defa60)
Apr 09 11:06:28 arch-desktop plasmashell[306899]: qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
Apr 09 11:06:28 arch-desktop plasmashell[306899]: qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
Apr 09 11:06:29 arch-desktop plasmashell[306899]: js: react-i18next:: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.
Apr 09 11:06:38 arch-desktop plasmashell[306899]: js: The resource https://s2.coinmarketcap.com/_next/static/chunks/40070.78a1ab99c009581.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
Apr 09 11:06:38 arch-desktop plasmashell[306899]: js: The resource https://s2.coinmarketcap.com/_next/static/chunks/sentry-module.3ac89f6034a0989.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
Apr 09 11:06:44 arch-desktop plasmashell[306899]: [306899:306946:0409/110644.824614:ERROR:ssl_client_socket_impl.cc(992)] handshake failed; returned -1, SSL error code 1, net_error -101
Apr 09 11:08:28 arch-desktop plasmashell[306899]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:136: TypeError: Cannot read property 'screenGeometry' of null
Apr 09 11:08:28 arch-desktop plasmashell[306899]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:250: TypeError: Cannot read property 'plasmoid' of undefined
Apr 09 11:08:28 arch-desktop plasmashell[307519]: kf.plasma.quick: Applet preload policy set to 1
Apr 09 11:08:28 arch-desktop plasmashell[307519]: qt.qml.typeresolution.cycle: Cyclic dependency detected between "qrc:/qt/qml/org/kde/desktop/private/TextFieldContextMenu.qml" and "qrc:/qt/qml/org/kde/desktop/MenuItem.qml"
Apr 09 11:08:28 arch-desktop plasmashell[307519]: file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/main.qml:196:25: QML FolderViewDropArea (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumWidth"
Apr 09 11:08:28 arch-desktop plasmashell[307519]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop QtWebEngineProcess[307538]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop QtWebEngineProcess[307539]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop plasmashell[307519]: libva error: vaGetDriverNames() failed with unknown libva error
Apr 09 11:08:28 arch-desktop systemd[3005]: plasma-plasmashell.service: Consumed 25.604s CPU time.

Also have had this happen to me a few times. I usually log out and in as a fix

Heres some logs:

Apr 10 10:26:02 patryck-pc plasmashell[350744]: kf.plasma.quick: Exposed with no visual parent. Window positioning broken.
Apr 10 10:35:51 patryck-pc plasmashell[350744]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Apr 10 10:35:52 patryck-pc plasmashell[350744]: kf.kunitconversion: currency conversion table data obtained via network
Apr 10 10:36:00 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.plasmoid", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.plasmoid/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:00 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.containment", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.containment/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:29 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.plasmoid", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.plasmoid/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:29 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.containment", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.containment/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:30 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.plasmoid", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.plasmoid/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:30 patryck-pc plasmashell[350744]: KPackageStructure of KPluginMetaData(pluginId:"org.kde.latte.containment", fileName: "/usr/share/plasma/plasmoids/org.kde.latte.containment/metadata.json") does not match requested format "Plasma/Applet"
Apr 10 10:36:32 patryck-pc plasmashell[350744]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/PanelConfiguration.qml:519:9: QML SpinBox: Binding loop detected for property "implicitWidth"
Apr 10 10:36:32 patryck-pc plasmashell[350744]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/PanelConfiguration.qml:525: TypeError: Cannot read property 'geometry' of null
Apr 10 10:36:32 patryck-pc plasmashell[350744]: file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:326:17: QML SpinBox: Binding loop detected for property "implicitWidth"
Apr 10 10:36:32 patryck-pc plasmashell[350744]: file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/ConfigOverlay.qml:288: TypeError: Cannot read property 'applet' of null
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kf.plasma.quick: Exposed with no visual parent. Window positioning broken.
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:32 patryck-pc plasmashell[350744]: kde.plasmashell: requesting unexisting screen available rect -1
Apr 10 10:36:38 patryck-pc plasmashell[350744]: qt.svg: <input>:1:14112: Could not resolve property: #linearGradient10962
Apr 10 10:38:17 patryck-pc plasmashell[350744]: qt.svg: <input>:1:14112: Could not resolve property: #linearGradient10962

@Synthetic451 - looking at your log, I see a few things that may be suspect and I don’t see such things in my Plasma shell log when I do the refresh:

Apr 09 11:08:28 arch-desktop plasmashell[306899]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:136: TypeError: Cannot read property 'screenGeometry' of null
Apr 09 11:08:28 arch-desktop plasmashell[306899]: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml:250: TypeError: Cannot read property 'plasmoid' of undefined

and

Apr 09 11:08:28 arch-desktop plasmashell[307519]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/bin/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop QtWebEngineProcess[307538]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop QtWebEngineProcess[307539]: Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Apr 09 11:08:28 arch-desktop plasmashell[307519]: libva error: vaGetDriverNames() failed with unknown libva error

Specifically the last one seems to be what is crashing your plasma.

Are you using Nvidia perhaps?

@Keef - Your log has this line that seem problematic:

Apr 10 10:36:32 patryck-pc plasmashell[350744]: file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/PanelConfiguration.qml:525: TypeError: Cannot read property 'geometry' of null

The code in question is this:

to: panel.location === PlasmaCore.Types.LeftEdge || panel.location === PlasmaCore.Types.RightEdge ? panel.screenToFollow.geometry.width / 2 : panel.screenToFollow.geometry.height / 2

Which indicates that the panel.screenToFollow property is null - which is very bad - it isn’t supposed to happen.

I saw some fixes going in to 6.0.3 about screenToFollow going out of sync or sth, so hopefully this will get fixed soon.

@guss77 I am using Nvidia, but I don’t think that libva error is relevant to the crash. It is only present because I am using the “Web Browser” widget to display a page on my desktop. If I remove that widget I no longer get the libva error, but Plasma still crashes.