Bug 434576 - Crash in ActivitiesProtocol::listDir() on boot
Summary: Crash in ActivitiesProtocol::listDir() on boot
Status: RESOLVED DUPLICATE of bug 427650
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: default (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-18 11:08 UTC by Justin
Modified: 2021-03-20 20:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin 2021-03-18 11:08:05 UTC
SUMMARY
Upon boot an error message cover the wallpaper with a crash report:
Application: kdeinit5 (kdeinit5), signal: Aborted
One or more startup apps do not launch eg pulseaudio-dlna in Konsole
Right clicking the desktop and refresh removes the wallpaper error message.
An issue which developed simultaneously is the absence of favourites and recent applications in both Simple & Application Launcher.

STEPS TO REPRODUCE
1. Boot into Kubuntu
OR
2. Right click desktop and change location option for desktop folders


OBSERVED RESULT

Application: kdeinit5 (kdeinit5), signal: Aborted

[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#5  0x00007fa447d20864 in __GI_abort () at abort.c:79
#6  0x00007fa447f72ba3 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fa448d04208 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
#8  0x00007fa448d049fd in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
#9  0x00007fa4444b31e6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007fa4444b3c56 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007fa448d046af in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
#12 0x000055b065380a5e in ?? ()
#13 0x000055b065381e71 in ?? ()
#14 0x000055b06538261c in ?? ()
#15 0x000055b06537e0ef in ?? ()
#16 0x00007fa447d22cb2 in __libc_start_main (main=0x55b06537d750, argc=1, argv=0x7ffc735e72e8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc735e72d8) at ../csu/libc-start.c:314
#17 0x000055b06537ebee in ?? ()
[Inferior 1 (process 106265) detached]
EXPECTED RESULT
Boot with no error messages and all startup apps launch.
Launchers show saved favourites and display recently opened apps.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.10
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Kernel Version: 5.8.0-45-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-03-18 16:30:32 UTC
Crashing somewhere in the activities library:

/activities.so
#8  0x00007fa448d049fd in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
#9  0x00007fa4444b31e6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007fa4444b3c56 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007fa448d046af in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so

However the backtrace is incomplete and we will need a new one with debug symbols to proceed. Can you attach one? See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports for details regarding how to do this.

Thanks!
Comment 2 Justin 2021-03-20 02:49:55 UTC
(In reply to Nate Graham from comment #1)
> Crashing somewhere in the activities library:
> 
> /activities.so
> #8  0x00007fa448d049fd in ?? () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
> #9  0x00007fa4444b31e6 in KIO::SlaveBase::dispatch(int, QByteArray const&)
> () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
> #10 0x00007fa4444b3c56 in KIO::SlaveBase::dispatchLoop() () from
> /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
> #11 0x00007fa448d046af in kdemain () from
> /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/activities.so
> 
> However the backtrace is incomplete and we will need a new one with debug
> symbols to proceed. Can you attach one? See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports for details regarding how to do this.
> 
> Thanks!

Hello Nate,

Thanks for the link!
So in searching for a debug tool I searched both the web, bug.kde.org and Muon package manager for all things and keywords related to:
kdeinit5, kio, activities etc but cannot find anything relevant.
I found mention of both kio-extras-dbgsym and kdelibs5-dbgsym which sounded like they may be helpful - but they are not in Muon nor would a apt install work. They do not appear to be in the Kubuntu 20.10 repo.

The crash report also states - You cannot report this error, because kdeinit5 does not provide a bug reporting address.

Is there a debug tool available?

Thanks,
Comment 3 Justin 2021-03-20 03:09:09 UTC
Ok, I got kio-extras-dbgsym installed.
The KDE crash reporter gives the same information though.

Is there a command to execute kio-extras-dbgsym?
If it is at all relevant!
Comment 4 Justin 2021-03-20 03:35:08 UTC
Actually it is a little different - but is it anymore informative??

Application: kdeinit5 (kdeinit5), signal: Aborted

[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#5  0x00007f7d6a31c864 in __GI_abort () at abort.c:79
#6  0x00007f7d6a56eba3 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f7d6b305208 in Common::Database::instance (source=source@entry=Common::Database::ResourcesDatabase, openMode=openMode@entry=Common::Database::ReadOnly) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlogging.h:90
#8  0x00007f7d6b3059fd in ActivitiesProtocol::listDir (this=0x7ffd39481cc0, url=...) at ./activities/KioActivities.cpp:251
#9  0x00007f7d66aaf1e6 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007f7d66aafc56 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007f7d6b3056af in kdemain (argc=<optimized out>, argv=<optimized out>) at ./activities/KioActivities.cpp:169
#12 0x0000561b5d9e6a5e in ?? ()
#13 0x0000561b5d9e7e71 in ?? ()
#14 0x0000561b5d9e861c in ?? ()
#15 0x0000561b5d9e40ef in ?? ()
#16 0x00007f7d6a31ecb2 in __libc_start_main (main=0x561b5d9e3750, argc=3, argv=0x7ffd394824b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd394824a8) at ../csu/libc-start.c:314
#17 0x0000561b5d9e4bee in ?? ()
[Inferior 1 (process 2804) detached]
Comment 5 Nate Graham 2021-03-20 03:47:06 UTC
Muuuuuch better, thanks.

#8  0x00007f7d6b3059fd in ActivitiesProtocol::listDir (this=0x7ffd39481cc0, url=...) at ./activities/KioActivities.cpp:251
#
Comment 6 Justin 2021-03-20 04:39:53 UTC
RESOLVED: Navigating to ~/.local/share/kactivitymanagerd/resources and deleting database + database-shm + database-wal makes the crashes go away

This has resolved both the start up error/crash as well as the launcher being blank.
Comment 7 Nate Graham 2021-03-20 20:23:57 UTC
That means there was corruption in the database, which means it was probably the same thing as Bug 427650, which was fixed in Plasma 5.20, so this makes sense since you're still on Plasma 5.19.

*** This bug has been marked as a duplicate of bug 427650 ***