Bug 423492 - statusbar blocks gui thread when counting items
Summary: statusbar blocks gui thread when counting items
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: status (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks: 423082
  Show dependency treegraph
 
Reported: 2020-06-25 11:56 UTC by Harald Sitter
Modified: 2020-06-26 10:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2020-06-25 11:56:50 UTC
DolphinView::statusBarText calls DolphinView::calculateItemCount calls KJob::exec which blocks the gui thread for potentially long amounts of time if the disk is at IO capacity and/or generally has latency (mounted network shares). this needs to be made async. as a stopgap supposedly statusBarText could return a fixed string if item.isSlow()

#5  0x00007fc374eeaf0e in KJob::exec() () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#6  0x00007fc375e98fcf in DolphinView::calculateItemCount (this=this@entry=0x5570c4032bd0, fileCount=@0x7ffd2191d264: 0, 
    folderCount=@0x7ffd2191d260: 0, totalFileSize=@0x7ffd2191d280: 0) at ./src/views/dolphinview.cpp:1531