D22144: Add kio recentlyused:/ to access KactivitytStats data

Méven Car noreply at phabricator.kde.org
Wed Jul 17 10:01:34 BST 2019


meven added a comment.


  In D22144#496414 <https://phabricator.kde.org/D22144#496414>, @ngraham wrote:
  
  > So interestingly enough, accessing `recentlyused:/` in Dolphin's URL navigator works great, but doing `recentlyused:/?limit=100` causes it to crash on an assert:
  >
  >   $ dolphin
  >   org.kde.kactivities.lib.core: Setting the title:  ""
  >   ASSERT: "!name.isEmpty()" in file /home/nate/kde/src/kio/src/core/kcoredirlister.cpp, line 1209
  >   Aborted (core dumped)
  >
  >
  > Here's the full backtrace:
  >
  >   (gdb) bt
  >   #0  0x00007ffff7972755 in raise () from /usr/lib/libc.so.6
  >   #1  0x00007ffff795d851 in abort () from /usr/lib/libc.so.6
  >   #2  0x00007ffff4ef08b6 in QMessageLogger::fatal(char const*, ...) const ()
  >      from /usr/lib/libQt5Core.so.5
  >   #3  0x00007ffff4eefce2 in qt_assert(char const*, char const*, int) ()
  >      from /usr/lib/libQt5Core.so.5
  >   #4  0x00007ffff70fff73 in KCoreDirListerCache::slotEntries (
  >       this=0x7ffff71c2c80 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, job=0x555555d5f300, entries=...)
  >       at /home/nate/kde/src/kio/src/core/kcoredirlister.cpp:1209
  >   #5  0x00007ffff711ee53 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<KIO::Job*, QList<KIO::UDSEntry> const&>, void, void (KCoreDirListerCache::*)(KIO::Job*, QList<KIO::UDSEntry> const&)>::call (f=
  >       (void (KCoreDirListerCache::*)(KCoreDirListerCache * const, KIO::Job *, const QList<KIO::UDSEntry> &)) 0x7ffff70ff6cc <KCoreDirListerCache::slotEntries(KIO::Job*, QList<KIO::UDSEntry> const&)>, 
  >       o=0x7ffff71c2c80 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, arg=0x7fffffffcd90) at /usr/include/qt/QtCore/qobjectdefs_impl.h:152
  >   #6  0x00007ffff711d6c7 in QtPrivate::FunctionPointer<void (KCoreDirListerCache::*)(KIO::Job*, QList<KIO::UDSEntry> const&)>::call<QtPrivate::List<KIO::Job*, QList<KIO::UDSEntry> const&>, void> (f=
  >       (void (KCoreDirListerCache::*)(KCoreDirListerCache * const, KIO::Job *, const QList<KIO::UDSEntry> &)) 0x7ffff70ff6cc <KCoreDirListerCache::slotEntries(KIO::Job*, QList<KIO::UDSEntry> const&)>, 
  >       o=0x7ffff71c2c80 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, arg=0x7fffffffcd90) at /usr/include/qt/QtCore/qobjectdefs_impl.h:185
  >   #7  0x00007ffff711a752 in QtPrivate::QSlotObject<void (KCoreDirListerCache::*)(KIO::Job*, QList<KIO::UDSEntry> const&), QtPrivate::List<KIO::Job*, QList<KIO::UDSEntry> const&>, void>::impl (which=1, this_=0x555555d67c30, 
  >       r=0x7ffff71c2c80 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, a=0x7fffffffcd90, ret=0x0) at /usr/include/qt/QtCore/qobjectdefs_impl.h:414
  >   #8  0x00007ffff5124b70 in QMetaObject::activate(QObject*, int, int, void**) ()
  >      from /usr/lib/libQt5Core.so.5
  >   #9  0x00007ffff70a6670 in KIO::ListJob::entries (this=0x555555d5f300, 
  >       _t1=0x555555d5f300, _t2=...)
  >       at /home/nate/kde/build/kio/src/core/KF5KIOCore_autogen/include/moc_listjob.cpp:237
  >   #10 0x00007ffff70a520d in KIO::ListJobPrivate::slotListEntries (this=0x555555b42750, 
  >       list=...) at /home/nate/kde/src/kio/src/core/listjob.cpp:154
  >   #11 0x00007ffff70a5d6a in KIO::ListJobPrivate::<lambda(const UDSEntryList&)>::operator()(const KIO::UDSEntryList &) const (__closure=0x555555d6de80, list=...)
  >       at /home/nate/kde/src/kio/src/core/listjob.cpp:288
  >   #12 0x00007ffff70a72ca in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<const QList<KIO::UDSEntry>&>, void, KIO::ListJobPrivate::start(KIO::Slave*)::<lambda(const UDSEntryList&)> >::call(KIO::ListJobPrivate::<lambda(const UDSEntryList&)> &, void **)
  >       (f=..., arg=0x7fffffffd090) at /usr/include/qt/QtCore/qobjectdefs_impl.h:146
  >   #13 0x00007ffff70a714f in QtPrivate::Functor<KIO::ListJobPrivate::start(KIO::Slave*)::<lambda(const UDSEntryList&)>, 1>::call<QtPrivate::List<QList<KIO::UDSEntry> const&>, void>(KIO::ListJobPrivate::<lambda(const UDSEntryList&)> &, void *, void **) (f=..., 
  >       arg=0x7fffffffd090) at /usr/include/qt/QtCore/qobjectdefs_impl.h:256
  >
  
  
  Seeing the line mentioned and the code underneath it may due to some error in your kactitivity database where an entry has an empty name or path.
  
  You can remove your activity database with 
  rm ~/.local/share/kactivitymanagerd/resources/database
  And restart dolphin
  
  Or try to find the error with like :
  sqlitebrowser ~/.local/share/kactivitymanagerd/resources/database

REPOSITORY
  R320 KIO Extras

REVISION DETAIL
  https://phabricator.kde.org/D22144

To: meven, ivan, #frameworks, ngraham
Cc: elvisangelaccio, kde-frameworks-devel, kfm-devel, aprcela, fprice, LeGast00n, sbergeron, fbampaloukas, alexde, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20190717/e6318bb1/attachment.htm>


More information about the kfm-devel mailing list