Bug 387979 - Plasmashell and latte dock crashes due abnormal behavior of kactivitymanagerd
Summary: Plasmashell and latte dock crashes due abnormal behavior of kactivitymanagerd
Status: RESOLVED FIXED
Alias: None
Product: frameworks-activities-stats
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-17 02:17 UTC by Ivan Bordoni
Modified: 2018-03-28 21:35 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
files corrupted /home/Ivan/.local/share/kactivitymanagerd_corrupted/resources (1.14 MB, application/zip)
2017-12-25 16:45 UTC, Ivan Bordoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Bordoni 2017-12-17 02:17:04 UTC
Hi Guys
https://user-images.githubusercontent.com/24593950/33776466-c067c948-dc41-11e7-88cc-fb6dc88b92e0.png

After the log-in I found plasma with the docks that show themselves and hide in an endless loop
and there is no way to normalize the situation even by restarting the laptop
please follow the discussion about the issue https://github.com/psifidotos/Latte-Dock/issues/798

Now I find myself with unstable plasmashell how can I do to fix the activity daemon?
For this, is there the possibility to delete some configuration files?
in that case, I guess, do I have to re-create all the activities from scratch or can I repair any corrupt file?

regards,
Ivan
Comment 1 Ivan Bordoni 2017-12-17 10:45:37 UTC
I tried to delete the files....

kactivitymanagerdrc
kactivitymanagerd-switcher
kactivitymanagerd-statsrc
kactivitymanagerd-pluginsrc

but plasmashell and kactivitymanagerd continues to crash !!! :(
Comment 2 Ivan Bordoni 2017-12-17 11:11:37 UTC
I however made a backup of those files
Comment 3 Ivan Bordoni 2017-12-17 21:08:31 UTC
now after deleting these files as well
   plasma-org.kde.plasma.desktop-appletsrc
   plasmashellrc
   plasmarc


I find two activities
   1- Desktop
   2- Desktop icon (which I have never created)
then from the manager of the activities, I see flicker the items related to these activities
and there is no way to eliminate the foreign activity "Desktop icon"

PS if I create a new account everything works properly
Comment 4 Ivan Čukić 2017-12-19 17:41:20 UTC
> I have also observed that in concomitance of the docks' show and hide in an
> endless loop, I see too open and close cyclically a process called
> kactivitymanagerd i and although I have closed all the main 

Can you explain this?

Could you test the communication between plasma and kactivitymanagerd using bustle (a tool for inspecting d-bus messages)?

I'll leave this assigned to kactivitymanagerd for the time being although I'm 99% sure it is just an innocent bystander in this bug since it has nothing to do with plasma panels/docks :)
Comment 5 Michail Vourlakos 2017-12-19 18:38:34 UTC
the user uses latest plasma from unstable repos in openSUSE.... Somehow managed to broke its system... no idea how... from its debug output there are plenty:

[warning 9:57:59.479479] - KActivities: FATAL ERROR: Failed to contact the activity manager daemon

and there was a constant message for changing into a specific activity: 
[debug 9:57:59.525525] - activity changed ::  "32ce0942-edce-41b4-b5a5-fab3a366926b"
[debug 9:57:59.529529] - activity changed ::  "32ce0942-edce-41b4-b5a5-fab3a366926b"
[debug 9:57:59.532532] - activity changed ::  "32ce0942-edce-41b4-b5a5-fab3a366926b"

I asked from the user to drop Latte usage in order to reproduce with plasma panels and also what is happening when he is requesting to see the Activities switcher...
Comment 6 Ivan Bordoni 2017-12-23 03:16:57 UTC
from the account with problems I ran a rm -r ~ / .config / plasma * rc

...So, at the next login, I found a default configuration with the plasma panel instead of Latte-Dock

and here we immediately highlight the problem described above and that is ....
plasma shell goes into crash


so I thought to compare the output of the plasmashell command for two different accounts, one corrupt and one valid



***************************
**** CORRUPTED ACCOUNT ****
***************************
Ivan@UltrabookSamsung:~> plasmashell
kf5.karchive: bzDecompress returned -5
org.kde.kcoreaddons: Expected JSON property "X-Plasma-ContainmentCategories" to be a string list. Treating it as a list with a single entry: "panel" org.opensuse.desktop.defaultPanel
kf5.karchive: bzDecompress returned -5
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/LayoutManager.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/LayoutManager.js")
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/FolderTools.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderTools.js")
Empty filename passed to function
trying to show an empty dialog
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
kdeinit5: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: FATAL ERROR: Failed to contact the activity manager daemon
KActivities: Database can not be opened in WAL mode. Check the SQLite version (required >3.7.0). And whether your filesystem supports shared memory
KCrash: Attempting to start /usr/bin/plasmashell from kdeinit
sock_file=/run/user/1000/kdeinit5__0
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
Empty filename passed to function
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
QSocketNotifier: Invalid socket 20 and type 'Read', disabling...
QSocketNotifier: Invalid socket 10 and type 'Read', disabling...
"Message recipient disconnected from message bus without replying"
found lsb_release
Using /proc to determine executable path
Executable is: "/usr/bin/plasmashell"
Executable exists: true
Enabling drkonqi crash catching
Sending SIGSTOP to process

[1]+  Fermato                 plasmashell
Ivan@UltrabookSamsung:~> 2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/akonadiconsole.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/akregator.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/blogilo.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/disable_kmix.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/fonts_akregator.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/fonts_global.upd' for new updates
2017-12-23T02:48:02 Checking update-file '/usr/share/kconf_update/fonts_global_toolbar.upd' for new updates
2017-12-23T02:48:03 Checking update-file '/usr/share/kconf_update/fonts_kate.upd' for new updates
2017-12-23T02:48:03 Checking update-file '/usr/share/kconf_update/gtkbreeze5.5.upd' for new updates
2017-12-23T02:48:03 Checking update-file '/usr/share/kconf_update/importwizard.upd' for new updates
2017-12-23T02:48:03 Checking update-file '/usr/share/kconf_update/kaddressbook.upd' for new updates
2017-12-23T02:48:03 Checking update-file '/usr/share/kconf_update/kalarm.upd' for new updates
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/katomic-levelset.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/katomic-levelset.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kcalcrc.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/kcalcrc.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kde4breeze.upd' for new updates
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kget.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/kget.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kgthemeprovider-migration.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/kgthemeprovider-migration.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kleopatra.upd' for new updates
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/klickety.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/klickety.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kmail.upd' for new updates
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/kmail2.upd' for new updates
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/knavalbattle.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/knavalbattle.upd' will be skipped."
2017-12-23T02:48:04 Checking update-file '/usr/share/kconf_update/knotes.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/kontact.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/konversation.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/konversation.upd' will be skipped."
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/korganizer.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/krdb_libpathwipe.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/krunnerplugins.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/kscreenlocker.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/messageviewer.upd' for new updates
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/okular.upd' for new updates
"Missing \"Version=5\", file '/usr/share/kconf_update/okular.upd' will be skipped."
2017-12-23T02:48:05 Checking update-file '/usr/share/kconf_update/pimsettingexporter.upd' for new updates
2017-12-23T02:48:06 Checking update-file '/usr/share/kconf_update/powerdevil_move_shortcuts.upd' for new updates
2017-12-23T02:48:06 Checking update-file '/usr/share/kconf_update/sieveeditor.upd' for new updates
2017-12-23T02:48:06 Checking update-file '/usr/share/kconf_update/storageservicemanager.upd' for new updates
2017-12-23T02:48:06 Checking update-file '/usr/share/kconf_update/webengineurlinterceptoradblock.upd' for new updates
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP
Sending SIGCONT to process
Unable to start Dr. Konqi
Re-raising signal for core dump handling.






***********************
**** VALID ACCOUNT ****
***********************
pippo@UltrabookSamsung:~> plasmashell 
org.kde.kcoreaddons: Expected JSON property "X-Plasma-ContainmentCategories" to be a string list. Treating it as a list with a single entry: "panel" org.opensuse.desktop.defaultPanel
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/LayoutManager.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/LayoutManager.js")
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/code/FolderTools.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderTools.js")
Empty filename passed to function
trying to show an empty dialog
KActivities: Database connection:  "kactivities_db_resources_140411792632064_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Entry is not valid "kontact.desktop" 0x564419319140
Entry is not valid "ktp-contactlist.desktop" 0x5644193191e0
Entry is not valid "kontact.desktop" 0x564419318ee0
Entry is not valid "ktp-contactlist.desktop" 0x564419318f80
Closing SQL connection:  "kactivities_db_resources_140411792632064_readonly"
KActivities: Database connection:  "kactivities_db_resources_140411792632064_readonly" 
    query_only:          QVariant(qlonglong, 1) 
    journal_mode:        QVariant(QString, "wal") 
    wal_autocheckpoint:  QVariant(qlonglong, 100) 
    synchronous:         QVariant(qlonglong, 0)
Nothing to load - the client id is empty
Nothing to load - the client id is empty
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:362: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:363: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:364: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:365: TypeError: Cannot read property 'padding' of null
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml:78:27: Unable to assign [undefined] to QStringList
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/main.qml:37: TypeError: Cannot read property 'DateTime' of undefined
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.panel/contents/code/LayoutManager.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/LayoutManager.js")
trying to show an empty dialog
Empty filename passed to function
Empty filename passed to function
error activating kdeconnectd: QDBusError("", "")
error activating kdeconnectd: QDBusError("", "")
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/code/uiproperties.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/uiproperties.js")
libkcups: Create-Printer-Subscriptions last error: 0 successful-ok
libkcups: Get-Jobs last error: 0 successful-ok
libkcups: Get-Jobs last error: 0 successful-ok
Plasma Shell startup completed
libkcups: 0
libkcups: 0
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/code/logic.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.battery/contents/ui/logic.js")
Both point size and pixel size set. Using pixel size.
Empty filename passed to function
Empty filename passed to function
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "AllDevices"
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Capabilities"
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Devices"
networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "GlobalDnsConfiguration"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "LldpNeighbors"
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
Warning: all files used by qml by the plasmoid should be in ui/. The file in the path "file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/code/logic.js" was expected at QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.bluetooth/contents/ui/logic.js")
trying to show an empty dialog
KActivitiesStats( 0x56441954a5b0 ) ResultModelPrivate::onResultScoreUpdated  result added: "/home/pippo/Scrivania/Output-plasmashell-good.txt" score: 0 last: 1513996352 first: 1513996352
QXcbConnection: XCB error: 2 (BadValue), sequence: 3959, resource id: 58720262, major code: 142 (Unknown), minor code: 3



-------------------------------------------------------------------------------------------------------------------------
I observe some differences ...do you suggest some ideas ?
   kf5.karchive: bzDecompress returned -5
   KActivities: FATAL ERROR: Failed to contact the activity manager daemon

is there a possibility to reset to default the kactivitymanagerd ?
Comment 7 Ivan Bordoni 2017-12-23 03:26:55 UTC
is it necessary to reset some SQlite databases? how can I do ?
Comment 8 Ivan Bordoni 2017-12-23 17:55:25 UTC
Ok I've solved !!!!!

The problem, it comes from the database ~/.local/share/kactivitymanagerd/resources/database it was corrupt 
...I have not tried to empty it but I simply deleted it: ~/.local/share/kactivitymanagerd/
and now everything works correctly 

...but now I can not explain why this kind of problem, here are the things I was doing before the problem:
- after a login I found the latte-dock of the primary display, strangely out of position and on the 55-inch TV secondary display
- I played on the management of the displays to reposition the latte-dock
- I restarted and here appears the problem described above

Thanks so much guys for support
Comment 9 Ivan Bordoni 2017-12-25 16:45:28 UTC
Created attachment 109517 [details]
files corrupted /home/Ivan/.local/share/kactivitymanagerd_corrupted/resources

Here are the corrupt files
Comment 10 Ivan Čukić 2018-03-07 22:37:56 UTC
The first patch is in - kactivities clients will no longer terminate on database error, they will just show no data.

This will be fixed with the next release of KDE Frameworks (fixed in master - commit 9b47babb6c4172535be0630141d6f8c6047c2724).
Comment 11 Rex Dieter 2018-03-26 15:55:13 UTC
which repo/component was that commit made?  It's not in kactivities or kactivitymanagerd as far as I can tell.
Comment 12 Ivan Čukić 2018-03-26 17:38:52 UTC
@Rex

It is in kactivities-stats library
Comment 13 Rex Dieter 2018-03-26 19:20:35 UTC
Thanks!
Comment 14 Rex Dieter 2018-03-28 21:35:31 UTC
*** Bug 392145 has been marked as a duplicate of this bug. ***