Bug 446923 - Dolphin and file pickers have a 5-10 second lag when first opened
Summary: Dolphin and file pickers have a 5-10 second lag when first opened
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: 5.88.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL: https://github.com/systemd/systemd/is...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-13 11:32 UTC by Mike Lothian
Modified: 2023-04-14 15:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Skip running the check (987 bytes, patch)
2022-01-24 13:58 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2021-12-13 11:32:47 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Open Dolphin


OBSERVED RESULT

App opens immediately, but is unresponsive for 5 - 10 seconds, scrolling doesn't work until after this time, I'm using a new nvme drive and I don't see any slow downs in nautilus 

If I open Dolphin from the command line I can see the following messages printed:

fireburn@axion ~ $ dolphin 
Qt: Session management error: networkIdsList argument is NULL
Could not find video stream

The last one is printed after the app becomes responsive

I also see these slowdowns when bringing up a file picker, but only for the first time it's used per application open. i.e. if it's closed and reopened, it's immediately responsive

I've now tested this with frameworks 5.89.0 and the same happens

EXPECTED RESULT

Dolphin/file pickers immediately responsive

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Gentoo 5.16-rc1-agd5f Dolphin 21.12.0
(available in About System)
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

I first noticed this happening around the time 5.88.0 frameworks was released
Comment 1 Mike Lothian 2021-12-13 15:03:54 UTC
I've removed thumbnailers which gets rid of the "Could not find video stream" message, but the issue still remains

If there any extra debugging I can enable to help see what's going on?
Comment 2 Mike Lothian 2021-12-19 12:39:47 UTC
So ran with gdb, and pressed "ctrl + c" when is was waiting, then "bt"

#0  0x00007ffff5b4211d in ppoll () from /lib64/libc.so.6
#1  0x00007ffff6137f45 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff607f18a in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff79c94d6 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#4  0x00007ffff79c9f2a in ?? () from /usr/lib64/libKF5KIOCore.so.5
#5  0x00007ffff79cb51c in KSambaShare::KSambaShare() () from /usr/lib64/libKF5KIOCore.so.5
#6  0x00007ffff79cb936 in KSambaShare::instance() () from /usr/lib64/libKF5KIOCore.so.5
#7  0x00007ffff79d7b35 in KFileItem::overlays() const () from /usr/lib64/libKF5KIOCore.so.5
#8  0x00007ffff7ee9d94 in KFileItemModelRolesUpdater::rolesData(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#9  0x00007ffff7eebb42 in KFileItemModelRolesUpdater::applyResolvedRoles(int, KFileItemModelRolesUpdater::ResolveHint) () from /usr/lib64/libdolphinprivate.so.5
#10 0x00007ffff7eebd64 in KFileItemModelRolesUpdater::slotPreviewFailed(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#11 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#12 0x00007ffff7bb2f25 in KIO::PreviewJob::failed(KFileItem const&) () from /usr/lib64/libKF5KIOWidgets.so.5
#13 0x00007ffff7baa08b in ?? () from /usr/lib64/libKF5KIOWidgets.so.5
#14 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007ffff723f6b3 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib64/libKF5CoreAddons.so.5
#16 0x00007ffff7243acb in KJob::finishJob(bool) () from /usr/lib64/libKF5CoreAddons.so.5
#17 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#18 0x00007ffff79fc006 in KIO::SlaveInterface::error(int, QString const&) () from /usr/lib64/libKF5KIOCore.so.5
#19 0x00007ffff7a02700 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#20 0x00007ffff79fbe29 in KIO::SlaveInterface::dispatch() () from /usr/lib64/libKF5KIOCore.so.5
#21 0x00007ffff79fe472 in KIO::Slave::gotInput() () from /usr/lib64/libKF5KIOCore.so.5
#22 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#23 0x00007ffff6118196 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007ffff6c79d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#25 0x00007ffff60f3088 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#26 0x00007ffff60f3b86 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#27 0x00007ffff613c043 in ?? () from /usr/lib64/libQt5Core.so.5
#28 0x00007ffff3f11f8b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007ffff3f6ea28 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007ffff3f0beef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007ffff6140434 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#32 0x00007ffff60eb3cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#33 0x00007ffff60f6b3d in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#34 0x000055555559ff23 in ?? ()
#35 0x00007ffff5a66302 in ?? () from /lib64/libc.so.6
#36 0x00007ffff5a663b8 in __libc_start_main () from /lib64/libc.so.6
#37 0x00005555555a06f1 in ?? ()
Comment 3 Mike Lothian 2021-12-19 12:42:29 UTC
Also did the same with kdiff3 on the Open File dialog:

#0  0x00007ffff629211d in ppoll () from /lib64/libc.so.6
#1  0x00007ffff6961f45 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff68a918a in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff7e2e4d6 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#4  0x00007ffff7e2ef2a in ?? () from /usr/lib64/libKF5KIOCore.so.5
#5  0x00007ffff7e3051c in KSambaShare::KSambaShare() () from /usr/lib64/libKF5KIOCore.so.5
#6  0x00007ffff7e30936 in KSambaShare::instance() () from /usr/lib64/libKF5KIOCore.so.5
#7  0x00007ffff7e3cb35 in KFileItem::overlays() const () from /usr/lib64/libKF5KIOCore.so.5
#8  0x00007ffff6142cbc in KDirModel::data(QModelIndex const&, int) const () from /usr/lib64/libKF5KIOWidgets.so.5
#9  0x00007ffff68f6c79 in QSortFilterProxyModel::data(QModelIndex const&, int) const () from /usr/lib64/libQt5Core.so.5
#10 0x00007ffff612b346 in ?? () from /usr/lib64/libKF5KIOWidgets.so.5
#11 0x00007ffff612effc in KFileItemDelegate::sizeHint(QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib64/libKF5KIOWidgets.so.5
#12 0x00007ffff76e3135 in QTreeView::indexRowSizeHint(QModelIndex const&) const () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007ffff76e49dc in QTreeViewPrivate::layout(int, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007ffff76dd821 in QTreeView::doItemsLayout() () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007ffff76d9ee4 in QTreeView::visualRect(QModelIndex const&) const () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007ffff16aebb0 in ?? () from /usr/lib64/libKF5KIOFileWidgets.so.5
#17 0x00007ffff16b503b in ?? () from /usr/lib64/libKF5KIOFileWidgets.so.5
#18 0x00007ffff694fceb in ?? () from /usr/lib64/libQt5Core.so.5
#19 0x00007ffff7ebbf35 in KCoreDirLister::newItems(KFileItemList const&) () from /usr/lib64/libKF5KIOCore.so.5
#20 0x00007ffff7ec00a0 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#21 0x00007ffff7eb72d0 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#22 0x00007ffff694fceb in ?? () from /usr/lib64/libQt5Core.so.5
#23 0x00007ffff7e73e74 in KIO::ListJob::entries(KIO::Job*, QList<KIO::UDSEntry> const&) () from /usr/lib64/libKF5KIOCore.so.5
#24 0x00007ffff694fceb in ?? () from /usr/lib64/libQt5Core.so.5
#25 0x00007ffff7e61115 in KIO::SlaveInterface::listEntries(QList<KIO::UDSEntry> const&) () from /usr/lib64/libKF5KIOCore.so.5
#26 0x00007ffff7e67649 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#27 0x00007ffff7e60e29 in KIO::SlaveInterface::dispatch() () from /usr/lib64/libKF5KIOCore.so.5
#28 0x00007ffff7e63472 in KIO::Slave::gotInput() () from /usr/lib64/libKF5KIOCore.so.5
#29 0x00007ffff694fceb in ?? () from /usr/lib64/libQt5Core.so.5
#30 0x00007ffff6942196 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#31 0x00007ffff73e8d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#32 0x00007ffff691d088 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#33 0x00007ffff691db86 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#34 0x00007ffff6966043 in ?? () from /usr/lib64/libQt5Core.so.5
#35 0x00007ffff4f85f8b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007ffff4fe2a28 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007ffff4f7feef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007ffff696a434 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#39 0x00007ffff69153cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#40 0x00007ffff75ee1fd in QDialog::exec() () from /usr/lib64/libQt5Widgets.so.5
#41 0x00007ffff75ee169 in QDialog::exec() () from /usr/lib64/libQt5Widgets.so.5
#42 0x00007ffff75fc3ed in QFileDialog::getOpenFileUrl(QWidget*, QString const&, QUrl const&, QString const&, QString*, QFlags<QFileDialog::Option>, QStringList const&) () from /usr/lib64/libQt5Widgets.so.5
#43 0x0000555555619414 in ?? ()
#44 0x00007ffff694fceb in ?? () from /usr/lib64/libQt5Core.so.5
#45 0x00007ffff74cecc2 in QAbstractButton::clicked(bool) () from /usr/lib64/libQt5Widgets.so.5
#46 0x00007ffff74d1b7a in ?? () from /usr/lib64/libQt5Widgets.so.5
#47 0x00007ffff74d7249 in ?? () from /usr/lib64/libQt5Widgets.so.5
#48 0x00007ffff74d7427 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#49 0x00007ffff7425836 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#50 0x00007ffff73e8d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
--Type <RET> for more, q to quit, c to continue without paging--
#51 0x00007ffff73ed9d8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#52 0x00007ffff691d088 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#53 0x00007ffff73ec58f in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007ffff7441837 in ?? () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007ffff7442e50 in ?? () from /usr/lib64/libQt5Widgets.so.5
#56 0x00007ffff73e8d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#57 0x00007ffff691d088 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#58 0x00007ffff6d1f106 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#59 0x00007ffff6d0792b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#60 0x00007ffff20c872a in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#61 0x00007ffff4f85f8b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#62 0x00007ffff4fe2a28 in ?? () from /usr/lib64/libglib-2.0.so.0
#63 0x00007ffff4f7feef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#64 0x00007ffff696a434 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#65 0x00007ffff69153cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#66 0x00007ffff75ee1fd in QDialog::exec() () from /usr/lib64/libQt5Widgets.so.5
#67 0x00005555555cf869 in ?? ()
#68 0x000055555559535b in ?? ()
#69 0x000055555558b7e9 in ?? ()
#70 0x00007ffff61b6302 in ?? () from /lib64/libc.so.6
#71 0x00007ffff61b63b8 in __libc_start_main () from /lib64/libc.so.6
#72 0x000055555558d3d1 in ?? ()
Comment 4 Mike Lothian 2021-12-19 13:23:43 UTC
I've recompiled kio-extras without samba support but I noticed Samba is still mentioned in a new stack trace:

#0  0x00007ffff5b4211d in ppoll () from /lib64/libc.so.6
#1  0x00007ffff6137f45 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff607f18a in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff79c94d6 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#4  0x00007ffff79c9f2a in ?? () from /usr/lib64/libKF5KIOCore.so.5
#5  0x00007ffff79cb51c in KSambaShare::KSambaShare() () from /usr/lib64/libKF5KIOCore.so.5
#6  0x00007ffff79cb936 in KSambaShare::instance() () from /usr/lib64/libKF5KIOCore.so.5
#7  0x00007ffff79d7b35 in KFileItem::overlays() const () from /usr/lib64/libKF5KIOCore.so.5
#8  0x00007ffff7ee9d94 in KFileItemModelRolesUpdater::rolesData(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#9  0x00007ffff7eebb42 in KFileItemModelRolesUpdater::applyResolvedRoles(int, KFileItemModelRolesUpdater::ResolveHint) () from /usr/lib64/libdolphinprivate.so.5
#10 0x00007ffff7eebd64 in KFileItemModelRolesUpdater::slotPreviewFailed(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#11 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#12 0x00007ffff7bb2f25 in KIO::PreviewJob::failed(KFileItem const&) () from /usr/lib64/libKF5KIOWidgets.so.5
#13 0x00007ffff7baa08b in ?? () from /usr/lib64/libKF5KIOWidgets.so.5
#14 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#15 0x00007ffff723f6b3 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib64/libKF5CoreAddons.so.5
#16 0x00007ffff7243acb in KJob::finishJob(bool) () from /usr/lib64/libKF5CoreAddons.so.5
#17 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#18 0x00007ffff79fc006 in KIO::SlaveInterface::error(int, QString const&) () from /usr/lib64/libKF5KIOCore.so.5
#19 0x00007ffff7a02700 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#20 0x00007ffff79fbe29 in KIO::SlaveInterface::dispatch() () from /usr/lib64/libKF5KIOCore.so.5
#21 0x00007ffff79fe472 in KIO::Slave::gotInput() () from /usr/lib64/libKF5KIOCore.so.5
#22 0x00007ffff6125ceb in ?? () from /usr/lib64/libQt5Core.so.5
#23 0x00007ffff6118196 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007ffff6c79d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#25 0x00007ffff60f3088 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#26 0x00007ffff60f3b86 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#27 0x00007ffff613c043 in ?? () from /usr/lib64/libQt5Core.so.5
#28 0x00007ffff3f11f8b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007ffff3f6ea28 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007ffff3f0beef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007ffff6140434 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#32 0x00007ffff60eb3cb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#33 0x00007ffff60f6b3d in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#34 0x000055555559ff23 in ?? ()
#35 0x00007ffff5a66302 in ?? () from /lib64/libc.so.6
#36 0x00007ffff5a663b8 in __libc_start_main () from /lib64/libc.so.6
#37 0x00005555555a06f1 in ?? ()
Comment 5 Yerrey Dev 2021-12-31 07:29:00 UTC
Do you have remote mounted filesystems such as rclone mounts from OneDrive or other remote services?
Comment 6 Mike Lothian 2022-01-19 11:56:05 UTC
(In reply to Yerrey Dev from comment #5)
> Do you have remote mounted filesystems such as rclone mounts from OneDrive
> or other remote services?

Sorry I did reply to this but it doesn't seem to have saved

There isn't anything mounted, but I do use Dolphin to access a Samba drive
Comment 7 Yerrey Dev 2022-01-19 17:25:36 UTC
(In reply to Mike Lothian from comment #6)
> 
> Sorry I did reply to this but it doesn't seem to have saved
> 
> There isn't anything mounted, but I do use Dolphin to access a Samba drive

I'd guess if you were to disconnect your samba share, you'd have no slowdowns in Dolphin/file picker. I think this is related to them trying to query info from the remote drives before showing the menus and depending on the response rate of the remote, this might take from seconds to even a minute on slow remotes. I've had this same problem with rclone cloud storage mounts.
Comment 8 Mike Lothian 2022-01-19 17:29:39 UTC
I've tried removing the manually added Remote shortcut to the samba share

No change unfortunately - all other entries are defaults and can only be hidden
Comment 9 Yerrey Dev 2022-01-19 17:48:03 UTC
(In reply to Mike Lothian from comment #8)
> I've tried removing the manually added Remote shortcut to the samba share
> 
> No change unfortunately - all other entries are defaults and can only be
> hidden

Ok thanks for the replies, the issue might be somewhere else then.
Comment 10 Mike Lothian 2022-01-24 11:42:11 UTC
I've rebuilt kio with debugging to get a better backtrace

#0  0x00007ffff58ef14d in ppoll () from /lib64/libc.so.6
#1  0x00007ffff5ee5065 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib64/libQt5Core.so.5
#2  0x00007ffff5e2c2ca in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff778a3bf in KSambaSharePrivate::runProcess (progName=..., args=..., stdOut=..., stdErr=...) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:112
f46 in KSambaSharePrivate::getNetUserShareInfo (this=0x555555f1bfa0) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:195
#5  0x00007ffff7789bf7 in KSambaSharePrivate::KSambaSharePrivate (this=0x555555f1bfa0, parent=0x7ffff793a0b0 <(anonymous namespace)::Q_QGS__instance::innerFunction()::holder>)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:54
#6  0x00007ffff778d2d1 in KSambaShare::KSambaShare (this=0x7ffff793a0b0 <(anonymous namespace)::Q_QGS__instance::innerFunction()::holder>)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:479
#7  0x00007ffff778e43a in KSambaShareSingleton::KSambaShareSingleton (this=0x7ffff793a0b0 <(anonymous namespace)::Q_QGS__instance::innerFunction()::holder>)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:556
#8  0x00007ffff778d805 in (anonymous namespace)::Q_QGS__instance::Holder::Holder (this=0x7ffff793a0b0 <(anonymous namespace)::Q_QGS__instance::innerFunction()::holder>)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:562
#9  0x00007ffff778d87e in (anonymous namespace)::Q_QGS__instance::innerFunction () at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:562
#10 0x00007ffff778dc04 in QGlobalStatic<KSambaShareSingleton, (anonymous namespace)::Q_QGS__instance::innerFunction, (anonymous namespace)::Q_QGS__instance::guard>::operator() (this=0x7ffff793a0d0 <_instance>)
    at /usr/include/qt5/QtCore/qglobalstatic.h:136
#11 0x00007ffff778d8cd in KSambaShare::instance () at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/ksambashare.cpp:566
#12 0x00007ffff7796bad in KFileItem::overlays (this=0x7fffffffc458) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/kfileitem.cpp:1172
#13 0x00007ffff7ee8d94 in KFileItemModelRolesUpdater::rolesData(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#14 0x00007ffff7eeab42 in KFileItemModelRolesUpdater::applyResolvedRoles(int, KFileItemModelRolesUpdater::ResolveHint) () from /usr/lib64/libdolphinprivate.so.5
#15 0x00007ffff7eead64 in KFileItemModelRolesUpdater::slotPreviewFailed(KFileItem const&) () from /usr/lib64/libdolphinprivate.so.5
#16 0x00007ffff5ed2dfb in ?? () from /usr/lib64/libQt5Core.so.5
#17 0x00007ffff7a8c7c0 in KIO::PreviewJob::failed (this=0x555555ed0c90, _t1=...)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0_build/src/widgets/KF5KIOWidgets_autogen/include/moc_previewjob.cpp:205
#18 0x00007ffff7a87db1 in KIO::PreviewJobPrivate::determineNextFile (this=0x555555e4c2f0) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/widgets/previewjob.cpp:534
#19 0x00007ffff7a88721 in KIO::PreviewJob::slotResult (this=0x555555ed0c90, job=0x555556016960) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/widgets/previewjob.cpp:637
#20 0x00007ffff5ed2dfb in ?? () from /usr/lib64/libQt5Core.so.5
#21 0x00007ffff6fed883 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib64/libKF5CoreAddons.so.5
#22 0x00007ffff6ff1c9b in KJob::finishJob(bool) () from /usr/lib64/libKF5CoreAddons.so.5
#23 0x00007ffff78005ff in KIO::SimpleJob::slotFinished (this=0x555556016960) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/simplejob.cpp:233
#24 0x00007ffff780d099 in KIO::TransferJob::slotFinished (this=0x555556016960) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/transferjob.cpp:158
#25 0x00007ffff780073c in KIO::SimpleJob::slotError (this=0x555556016960, err=104, errorText=...) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/simplejob.cpp:246
#26 0x00007ffff7803299 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<int, QString const&>, void, void (KIO::SimpleJob::*)(int, QString const&)>::call (f=
    (void (KIO::SimpleJob::*)(KIO::SimpleJob * const, int, const QString &)) 0x7ffff7800626 <KIO::SimpleJob::slotError(int, QString const&)>, o=0x555556016960, arg=0x7fffffffcc60)
    at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152
#27 0x00007ffff78030c5 in QtPrivate::FunctionPointer<void (KIO::SimpleJob::*)(int, QString const&)>::call<QtPrivate::List<int, QString const&>, void> (f=
    (void (KIO::SimpleJob::*)(KIO::SimpleJob * const, int, const QString &)) 0x7ffff7800626 <KIO::SimpleJob::slotError(int, QString const&)>, o=0x555556016960, arg=0x7fffffffcc60)
    at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185
#28 0x00007ffff7802e0f in QtPrivate::QSlotObject<void (KIO::SimpleJob::*)(int, QString const&), QtPrivate::List<int, QString const&>, void>::impl (which=1, this_=0x555556009460, r=0x555556016960, 
    a=0x7fffffffcc60, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418
#29 0x00007ffff5ed2dfb in ?? () from /usr/lib64/libQt5Core.so.5
#30 0x00007ffff77e0c61 in KIO::SlaveInterface::error (this=0x555555ec8fe0, _t1=104, _t2=...)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0_build/src/core/KF5KIOCore_autogen/include/moc_slaveinterface.cpp:452
#31 0x00007ffff77de75e in KIO::SlaveInterface::dispatch (this=0x555555ec8fe0, _cmd=102, rawdata=...) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/slaveinterface.cpp:181
#32 0x00007ffff77de1c4 in KIO::SlaveInterface::dispatch (this=0x555555ec8fe0) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/slaveinterface.cpp:78
#33 0x00007ffff77e2e2a in KIO::Slave::gotInput (this=0x555555ec8fe0) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/slave.cpp:337
#34 0x00007ffff77e44d9 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KIO::Slave::*)()>::call(void (KIO::Slave::*)(), KIO::Slave*, void**) (
    f=(void (KIO::Slave::*)(KIO::Slave * const)) 0x7ffff77e2dc8 <KIO::Slave::gotInput()>, o=0x555555ec8fe0, arg=0x7fffffffcf90) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:152
#35 0x00007ffff77e445c in QtPrivate::FunctionPointer<void (KIO::Slave::*)()>::call<QtPrivate::List<>, void>(void (KIO::Slave::*)(), KIO::Slave*, void**) (
    f=(void (KIO::Slave::*)(KIO::Slave * const)) 0x7ffff77e2dc8 <KIO::Slave::gotInput()>, o=0x555555ec8fe0, arg=0x7fffffffcf90) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:185
#36 0x00007ffff77e43c7 in QtPrivate::QSlotObject<void (KIO::Slave::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x555556209a10, 
    r=0x555555ec8fe0, a=0x7fffffffcf90, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:418
#37 0x00007ffff5ed2dfb in ?? () from /usr/lib64/libQt5Core.so.5
#38 0x00007ffff7775043 in KIO::Connection::readyRead (this=0x555556209640) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0_build/src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:148
#39 0x00007ffff7773b8a in KIO::ConnectionPrivate::dequeue (this=0x555555f20070) at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0/src/core/connection.cpp:31
#40 0x00007ffff7774e3e in KIO::Connection::qt_static_metacall (_o=0x555556209640, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x55555606c238)
    at /var/tmp/portage/kde-frameworks/kio-5.90.0/work/kio-5.90.0_build/src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:88
#41 0x00007ffff5ec52a6 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#42 0x00007ffff6a27d81 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#43 0x00007ffff5ea0158 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#44 0x00007ffff5ea0c56 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#45 0x00007ffff5ee9173 in ?? () from /usr/lib64/libQt5Core.so.5
#46 0x00007ffff3ceff8b in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#47 0x00007ffff3d4ca28 in ?? () from /usr/lib64/libglib-2.0.so.0
#48 0x00007ffff3ce9eef in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#49 0x00007ffff5eed564 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#50 0x00007ffff5e9849b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#51 0x00007ffff5ea3c0d in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#52 0x000055555559ff23 in ?? ()
#53 0x00007ffff5813302 in ?? () from /lib64/libc.so.6
#54 0x00007ffff58133b8 in __libc_start_main () from /lib64/libc.so.6
#55 0x00005555555a06f1 in ?? ()
Comment 11 Mike Lothian 2022-01-24 13:57:51 UTC
It was pointed out by @fvogt on IRC kde-fm that it's running "net usershare info" this is what's being slow

Running this locally gives

net usershare info 
net usershare: usershares are currently disabled

Running gdb it appears to be:

0x00007ffff6a0d0f8 in ppoll () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff6a0d0f8 in ppoll () from /lib64/libc.so.6
#1  0x00007ffff33f0817 in ?? () from /usr/lib64/libnss_resolve.so.2
#2  0x00007ffff33eda2c in ?? () from /usr/lib64/libnss_resolve.so.2
#3  0x00007ffff33e344b in _nss_resolve_gethostbyname4_r () from /usr/lib64/libnss_resolve.so.2
#4  0x00007ffff6a00d9d in ?? () from /lib64/libc.so.6
#5  0x00007ffff6a018c4 in getaddrinfo () from /lib64/libc.so.6
#6  0x00007ffff7b52268 in interpret_string_addr_internal () from /usr/lib64/libsamba-util.so.0
#7  0x00007ffff7b5267b in interpret_string_addr () from /usr/lib64/libsamba-util.so.0
#8  0x00007ffff7545f45 in ?? () from /usr/lib64/libsmbconf.so.0
#9  0x00007ffff754e2cd in load_interfaces () from /usr/lib64/libsmbconf.so.0
#10 0x000055555557c468 in ?? ()
#11 0x00007ffff7aacd66 in ?? () from /usr/lib64/samba/libcmdline-samba4.so
#12 0x00007ffff6bfc748 in ?? () from /usr/lib64/libpopt.so.0
#13 0x00007ffff6bfc784 in ?? () from /usr/lib64/libpopt.so.0
#14 0x00007ffff6c0238f in poptGetNextOpt () from /usr/lib64/libpopt.so.0
#15 0x0000555555578118 in main ()

So it looks like this could be a systemd issue
Comment 12 Mike Lothian 2022-01-24 13:58:58 UTC
Created attachment 145854 [details]
Skip running the check

This is just to work around the issue - as it's driving me nuts
Comment 13 Mike Lothian 2023-04-14 15:29:00 UTC
I'm still seeing this, I've reverted back to patching out the slow call to "net"