| Summary: | kactivitymanagerd asserts/crashes out of the blue | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Riccardo Robecchi <sephiroth_pk> |
| Component: | Activities in general | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | crash | CC: | ivan.cukic, kdedev, nate |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 6.3.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=389441 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | https://crash-reports.kde.org/organizations/kde/issues/179394/events/475e0c1ee2d149b98cd57c01667032eb/ | ||
| Attachments: | backtrace | ||
|
Description
Riccardo Robecchi
2025-05-25 14:11:23 UTC
#13 0x00007f003bf1012c in qt_assert_x(char const*, char const*, char const*, int) () at /lib/x86_64-linux-gnu/libQt6Core.so.6 #14 0x00007f00383e1558 in ??? () at /usr/lib/x86_64-linux-gnu/qt6/plugins/kactivitymanagerd1/org.kde.ActivityManager.ResourceScoring.so #15 0x00007f00383ef7d8 in ??? () at /usr/lib/x86_64-linux-gnu/qt6/plugins/kactivitymanagerd1/org.kde.ActivityManager.ResourceScoring.so #16 0x00007f00383f4b05 in ??? () at /usr/lib/x86_64-linux-gnu/qt6/plugins/kactivitymanagerd1/org.kde.ActivityManager.ResourceScoring.so #17 0x00007f00383f4daf in ??? () at /usr/lib/x86_64-linux-gnu/qt6/plugins/kactivitymanagerd1/org.kde.ActivityManager.ResourceScoring.so Would be great if you could get a backtrace with debug symbols for us. Setting status Created attachment 181951 [details]
backtrace
Here is the backtrace as requested. It crashed again out of the blue.
Can you start kactivitymanagerd from terminal and copy the message you get before the crash? (the backtrace hints at a sqlite issue that prints a 'why I crashed' message :) ) Searchable backtrace
Thread 1 (Thread 0x7f0f89080e00 (LWP 57749)):
[KCrash Handler]
#6 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#7 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#8 __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9 0x00007f0f88a4527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f0f88a288ff in __GI_abort () at ./stdlib/abort.c:79
#11 0x00007f0f897247d9 in qAbort () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qassert.cpp:46
#12 qt_message_fatal<QString&> (message=..., context=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:2149
#13 qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x7f0f89446df8 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=ap@entry=0x7ffe2b7efcf8) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:381
#14 0x00007f0f89725ac7 in QMessageLogger::fatal (this=<optimized out>, msg=0x7f0f89446df8 "ASSERT failure in %s: \"%s\", file %s, line %d") at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qlogging.cpp:883
#15 0x00007f0f8971012c in qt_assert_x (where=where@entry=0x7f0f84652733 "Uils::exec", what=<optimized out>, file=file@entry=0x7f0f84653de0 "./src/service/plugins/sqlite/Utils.h", line=line@entry=53) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qassert.cpp:114
#16 0x00007f0f84636558 in Utils::exec(Common::Database&, Utils::ErrorHandling, QSqlQuery&) [clone .isra.0] (eh=<optimized out>, query=..., database=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/Utils.h:53
#17 0x00007f0f846447d8 in Utils::exec<char const*, QString> (database=<optimized out>, eh=Utils::FailOnError, value=..., variable=<synthetic pointer>: <optimized out>, query=...) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/Utils.h:68
#18 Utils::exec<char const*, QString, char const*, QString> (database=<optimized out>, eh=Utils::FailOnError, value=..., variable=<synthetic pointer>: <optimized out>, query=...) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/Utils.h:68
#19 Utils::exec<char [14], QString, char const*, QString, char const*, QString> (database=<optimized out>, eh=Utils::FailOnError, variable=..., value=<optimized out>, query=...) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/Utils.h:68
#20 ResourceScoreCache::update (this=this@entry=0x7ffe2b7f02b0) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/ResourceScoreCache.cpp:146
#21 0x00007f0f84649b05 in operator() (resources=..., application=..., __closure=<synthetic pointer>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/ResourceScoreMaintainer.cpp:85
#22 kamd::utils::details::qt_for_each_assoc<QHash<QString, QList<QString> >::const_iterator, ResourceScoreMaintainer::Private::processActivity(const ActivityID&, const Applications&)::<lambda(const ResourceScoreMaintainer::Private::ApplicationName&, const ResourceScoreMaintainer::Private::ResourceList&)> >(QHash<QString, QList<QString> >::const_iterator, QHash<QString, QList<QString> >::const_iterator, struct {...}) (start=..., end=..., f=..., f@entry=...) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/utils/for_each_assoc.h:28
#23 0x00007f0f84649daf in kamd::utils::details::_for_each_assoc_helper_container<QHash<QString, QList<QString> >, ResourceScoreMaintainer::Private::processActivity(const ActivityID&, const Applications&)::<lambda(const ResourceScoreMaintainer::Private::ApplicationName&, const ResourceScoreMaintainer::Private::ResourceList&)> > (f=..., c=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/utils/for_each_assoc.h:48
#24 kamd::utils::for_each_assoc<QHash<QString, QList<QString> >, ResourceScoreMaintainer::Private::processActivity(const ActivityID&, const Applications&)::<lambda(const ResourceScoreMaintainer::Private::ApplicationName&, const ResourceScoreMaintainer::Private::ResourceList&)> > (f=..., c=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/utils/for_each_assoc.h:62
#25 ResourceScoreMaintainer::Private::processActivity (applications=<optimized out>, activity=..., this=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/ResourceScoreMaintainer.cpp:83
#26 ResourceScoreMaintainer::Private::processResources (this=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/ResourceScoreMaintainer.cpp:70
#27 operator() (__closure=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/plugins/sqlite/ResourceScoreMaintainer.cpp:101
#28 operator() (__closure=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:116
#29 QtPrivate::FunctorCallBase::call_internal<void, QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>, QtPrivate::List<>, void, ResourceScoreMaintainer::ResourceScoreMaintainer()::<lambda()> >::call(ResourceScoreMaintainer::ResourceScoreMaintainer()::<lambda()>&, void**)::<lambda()> > (fn=<optimized out>, args=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:65
#30 QtPrivate::FunctorCall<std::integer_sequence<long unsigned int>, QtPrivate::List<>, void, ResourceScoreMaintainer::ResourceScoreMaintainer()::<lambda()> >::call (arg=<optimized out>, f=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:115
#31 QtPrivate::FunctorCallable<ResourceScoreMaintainer::ResourceScoreMaintainer()::<lambda()> >::call<QtPrivate::List<>, void> (arg=<optimized out>, f=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:337
#32 QtPrivate::QCallableObject<ResourceScoreMaintainer::ResourceScoreMaintainer()::<lambda()>, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/x86_64-linux-gnu/qt6/QtCore/qobjectdefs_impl.h:547
#33 0x00007f0f89677a99 in QtPrivate::QSlotObjectBase::call (a=0x7ffe2b7f04c0, r=<optimized out>, this=0x55e35911b660, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobjectdefs_impl.h:461
#34 doActivate<false> (sender=0x55e35911b748, signal_index=3, argv=0x7ffe2b7f04c0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:4138
#35 0x00007f0f8961cb7d in QMetaObject::activate<void, QTimer::QPrivateSignal> (ret=0x0, local_signal_index=0, mo=<optimized out>, sender=<optimized out>) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobjectdefs.h:306
#36 QTimer::timeout (this=<optimized out>, _t1=...) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/obj-x86_64-linux-gnu/src/corelib/Core_autogen/include/moc_qtimer.cpp:182
#37 0x00007f0f89600ae6 in QObject::event (this=0x55e35911b748, e=0x7ffe2b7f0650) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qobject.cpp:1406
#38 0x00007f0f8ac0551d in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55e35911b748, e=0x7ffe2b7f0650) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/widgets/kernel/qapplication.cpp:3301
#39 0x00007f0f896b0dd0 in QCoreApplication::notifyInternal2 (receiver=0x55e35911b748, event=0x7ffe2b7f0650) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qcoreapplication.cpp:1106
#40 0x00007f0f8958f087 in QTimerInfoList::activateTimers (this=0x55e3590d5d20) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qtimerinfo_unix.cpp:426
#41 0x00007f0f89461d99 in timerSourceDispatch (source=source@entry=0x55e3590d5cc0) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qeventdispatcher_glib.cpp:152
#42 0x00007f0f88d145b5 in g_main_dispatch (context=0x7f0f80000f00) at ../../../glib/gmain.c:3344
#43 0x00007f0f88d73717 in g_main_context_dispatch_unlocked (context=0x7f0f80000f00) at ../../../glib/gmain.c:4152
#44 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f0f80000f00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4217
#45 0x00007f0f88d13a53 in g_main_context_iteration (context=0x7f0f80000f00, may_block=1) at ../../../glib/gmain.c:4282
#46 0x00007f0f89460b3f in QEventDispatcherGlib::processEvents (this=0x55e3590c6870, flags=...) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#47 0x00007f0f896bb4bb in QEventLoop::exec (this=0x7ffe2b7f08c0, flags=...) at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qflags.h:77
#48 0x00007f0f896b405f in QCoreApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/corelib/global/qflags.h:77
#49 0x00007f0f89edd49d in QGuiApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/gui/kernel/qguiapplication.cpp:1993
#50 0x00007f0f8ac02209 in QApplication::exec () at /usr/src/qt6-base-6.9.0-0zneon+24.04+noble+release+build112/src/widgets/kernel/qapplication.cpp:2568
#51 0x000055e344b65d28 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/kactivitymanagerd-6.3.5-0zneon+24.04+noble+release+build27/src/service/Application.cpp:262
(In reply to Ivan Čukić from comment #4) > Can you start kactivitymanagerd from terminal and copy the message you get > before the crash? (the backtrace hints at a sqlite issue that prints a 'why > I crashed' message :) ) It says "command not found". How do you start it from the terminal? You can try (might be somewhere else, depending on the distro) /usr/lib/x86_64-linux-gnu/libexec/kactivitymanagerd You'll probably want to kill the currently running one first -- something like: killall kactivitymanagerd && /kde/install/lib/x86_64-linux-gnu/libexec/kactivitymanagerd 🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! I updated my laptop to Plasma 6.4.0 and this crash started happening there, too. Unfortunately, even though I launched kactivitymanagerd from the terminal after the first crash, nothing was printed when it crashed again; in fact, the terminal-launched process was still active when the second crash happened. Interestingly, no other kactivitymanagerd process was running. |