FS#47473 - [kactivities] FATAL ERROR: Failed to contact the activity manager daemon

Attached to Project: Arch Linux
Opened by Vyacheslav Stetskevych (tskevy) - Monday, 21 December 2015, 13:01 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 19 January 2016, 08:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

From .xsession-errors, keeps crashing:

KActivities: Database can not be opened in WAL mode. Check the SQLite version (required >3.7.0). And whether your filesystem supports shared memory
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
Service started, version:
KActivities: FATAL ERROR: Failed to contact the activity manager daemon

Plasma 5 behaves very strangely (i.e. I cannot open a right-click menu on Kicker items, crashes plasma). I suspect it's because of the above errors.

Removing .local/share/kactivitymanagerd/ , as adviced in #44763, does not help.
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 19 January 2016, 08:59 GMT
Reason for closing:  No response
Comment by Antonio Rojas (arojas) - Monday, 21 December 2015, 17:49 GMT
Did you stop kactivitymanagerd ($ kactivitymanagerd stop) before removing .local/share/kactivitymanagerd/ ?
Comment by Vyacheslav Stetskevych (tskevy) - Tuesday, 22 December 2015, 10:30 GMT
Yes, I did stop it. Here is the full sequence:

$ kactivitymanagerd stop
Service not running
$ rm -rf .local/share/kactivitymanagerd/
$ kactivitymanagerd start
Service started, version:
$

Here is the trace from the logs:
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: Can't contact ck
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: We are now into activity "0d598583-9a57-4b3d-b8e7-43cb0e4d1a53"
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: () ()
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: () ()
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: Loading profile for plugged AC
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: Activity is not forcing a profile
Dec 22 12:17:45 hostname kdeinit5[1005]: powerdevil: Skipping action reload routine as profile has not changed
Dec 22 12:17:45 hostname kactivitymanagerd[22506]: Setting the name: "org.kde.ActivityManager.Resources.Scoring"
Dec 22 12:17:45 hostname kactivitymanagerd[22506]: Creating directory: "/home/user/.local/share/kactivitymanagerd/resources/"
Dec 22 12:17:45 hostname kactivitymanagerd[22506]: KActivities: Database can not be opened in WAL mode. Check the SQLite version (required >3.7.0). And whether your filesystem supports shared memory
Dec 22 12:17:45 hostname dolphin[11459]: KActivities: FATAL ERROR: Failed to contact the activity manager daemon
Dec 22 12:17:45 hostname krunner[1365]: KActivities: FATAL ERROR: Failed to contact the activity manager daemon
Dec 22 12:17:45 hostname kdeinit5[1005]: KActivities: FATAL ERROR: Failed to contact the activity manager daemon
Dec 22 12:17:45 hostname kwin_x11[1034]: KActivities: FATAL ERROR: Failed to contact the activity manager daemon
Dec 22 12:17:45 hostname kscreen_backend_launcher[1053]: kscreen: Primary output changed from KScreen::Output(Id: 115 , Name: "LVDS1" ) ( "LVDS1" ) to KScreen::Output(Id: 115 , Name: "LVDS1" ) ( "LVDS1" )
... some more from kscreen about the same ...
Dec 22 12:17:45 hostname systemd-coredump[22511]: Process 22506 (kactivitymanage) of user 1000 dumped core.

Stack trace of thread 22506:
#0 0x00007f276049a5f8 raise (libc.so.6)
#1 0x00007f276049ba7a abort (libc.so.6)
#2 0x00007f2760c201e1 _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5)
#3 0x00007f274806627e n/a (kactivitymanagerd_plugin_sqlite.so)
#4 0x00007f27480531f5 n/a (kactivitymanagerd_plugin_sqlite.so)
#5 0x00007f27480534b8 n/a (kactivitymanagerd_plugin_sqlite.so)
#6 0x00007f274805aba7 n/a (kactivitymanagerd_plugin_sqlite.so)
#7 0x000000000041232d _ZN11Application7Private10loadPluginE28QExplicitlySharedDataPointerI8KServiceE (kactivitymanagerd)
#8 0x000000000041381d _ZN11Application11loadPluginsEv (kactivitymanagerd)
#9 0x0000000000427b75 n/a (kactivitymanagerd)
#10 0x00007f2760e431e1 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5)
#11 0x00007f275f8a4e14 _ZN15QGuiApplication5eventEP6QEvent (libQt5Gui.so.5)
#12 0x00007f27611c126c _ZN12QApplication5eventEP6QEvent (libQt5Widgets.so.5)
#13 0x00007f27611bd9ac _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
#14 0x00007f27611c2e86 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
#15 0x00007f2760e13bab _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent (libQt5Core.so.5)
#16 0x00007f2760e15fa6 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData (libQt5Core.so.5)
#17 0x00007f2760e6a143 n/a (libQt5Core.so.5)
#18 0x00007f275e716dc7 g_main_context_dispatch (libglib-2.0.so.0)
#19 0x00007f275e717020 n/a (libglib-2.0.so.0)
#20 0x00007f275e7170cc g_main_context_iteration (libglib-2.0.so.0)
#21 0x00007f2760e6a54f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#22 0x00007f2760e1157a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#23 0x00007f2760e1953c _ZN16QCoreApplication4execEv (libQt5Core.so.5)
#24 0x0000000000411114 main (kactivitymanagerd)
#25 0x00007f2760487610 __libc_start_main (libc.so.6)
#26 0x0000000000411319 _start (kactivitymanagerd)

Stack trace of thread 22508:
#0 0x00007f276054718d poll (libc.so.6)
#1 0x00007f275e716fbc n/a (libglib-2.0.so.0)
#2 0x00007f275e7170cc g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f2760e6a56b _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007f2760e1157a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007f2760c2dbe4 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x0000000000413e8a _ZZ12runInQThreadI9ResourcesEPT_vEN6Thread3runEv (kactivitymanagerd)
#7 0x00007f2760c32b8e n/a (libQt5Core.so.5)
#8 0x00007f275f5a04a4 start_thread (libpthread.so.0)
#9 0x00007f276055013d __clone (libc.so.6)

Stack trace of thread 22507:
#0 0x00007f276054718d poll (libc.so.6)
#1 0x00007f275ff0cae2 n/a (libxcb.so.1)
#2 0x00007f275ff0e757 xcb_wait_for_event (libxcb.so.1)
#3 0x00007f2756dc8379 n/a (libQt5XcbQpa.so.5)
#4 0x00007f2760c32b8e n/a (libQt5Core.so.5)
#5 0x00007f275f5a04a4 start_thread (libpthread.so.0)
#6 0x00007f276055013d __clone (libc.so.6)

Stack trace of thread 22509:
#0 0x00007f276054718d poll (libc.so.6)
#1 0x00007f275e716fbc n/a (libglib-2.0.so.0)
#2 0x00007f275e7170cc g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f2760e6a54f _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007f2760e1157a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007f2760c2dbe4 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x0000000000413eba _ZZ12runInQThreadI10ActivitiesEPT_vEN6Thread3runEv (kactivitymanagerd)
#7 0x00007f2760c32b8e n/a (libQt5Core.so.5)
#8 0x00007f275f5a04a4 start_thread (libpthread.so.0)
#9 0x00007f276055013d __clone (libc.so.6)

Stack trace of thread 22510:
#0 0x00007f276054718d poll (libc.so.6)
#1 0x00007f275e716fbc n/a (libglib-2.0.so.0)
#2 0x00007f275e7170cc g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007f2760e6a56b _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
#4 0x00007f2760e1157a _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
#5 0x00007f2760c2dbe4 _ZN7QThread4execEv (libQt5Core.so.5)
#6 0x0000000000413eea _ZZ12runInQThreadI8FeaturesEPT_vEN6Thread3runEv (kactivitymanagerd)
#7 0x00007f2760c32b8e n/a (libQt5Core.so.5)
#8 0x00007f275f5a04a4 start_thread (libpthread.so.0)
#9 0x00007f276055013d __clone (libc.so.6)
Comment by Vyacheslav Stetskevych (tskevy) - Tuesday, 22 December 2015, 10:32 GMT
$ sqlite3 .local/share/kactivitymanagerd/resources/database
SQLite version 3.9.2 2015-11-02 18:31:45
Enter ".help" for usage hints.
sqlite> .tables
Error: database disk image is malformed
sqlite>
Comment by Antonio Rojas (arojas) - Sunday, 10 January 2016, 22:29 GMT
This should be fixed in 5.18, please test. If it's not, report it upstream.

Loading...