Bug 423492

Summary: statusbar blocks gui thread when counting items
Product: [Applications] dolphin Reporter: Harald Sitter <sitter>
Component: bars: statusAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=178678
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 423082    

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