<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>423499</bug_id>
          
          <creation_ts>2020-06-25 13:44:09 +0000</creation_ts>
          <short_desc>KFileItem::iconName ignorant of isSlow() and can block gui thread</short_desc>
          <delta_ts>2025-05-29 21:51:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>git master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=178678</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>efficiency-and-performance</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>423082</blocked>
    
    <blocked>504984</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Harald Sitter">sitter</reporter>
          <assigned_to name="KIO Bugs">kio-bugs-null</assigned_to>
          <cc>accounts+kde</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>postix</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1939751</commentid>
    <comment_count>0</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2020-06-25 13:44:09 +0000</bug_when>
    <thetext>```
    if (isLocalUrl &amp;&amp; !delaySlowOperations &amp;&amp; isDir()) {
        if (isDirectoryMounted(url)) {
            d-&gt;m_iconName = iconFromDirectoryFile(url.toLocalFile());

```

if the file system is a mounted sshfs or cifs we&apos;ll read the .directory files but really we shouldn&apos;t because they are network bound and may be slow. Furthermore they may be backed by HDDs which may crumble under stress. Since iconFromDirectoryFile does blocking POSIX reads this effectively means the gui thread will block on slow network mounts.

isSlow() should be taken into consideration somewhere in that block.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>