https://bugs.kde.org/show_bug.cgi?id=481311

            Bug ID: 481311
           Summary: KDirOperator freezing when trying to parse a folder
                    with more than 178 files
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 5.248.0
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: j...@kdenlive.org
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
***

Tested on Windows 10 / 11  (a similar issue was reported on Linux AppImage, but
I was not able to personally reproduce on linux)
Creating a KDirOperator, and setting its url to a folder with more than 178
files (that number might depend on your system), KDirOperator stops working,
the files are not listed. This only happens on KF6.

I tried to investigate a bit, this seems related to the connectionbackend.cpp
file:
https://invent.kde.org/frameworks/kio/-/blob/master/src/core/connectionbackend.cpp?ref_type=heads#L268
When we hit this condition (jumbo packet), commandReceived(task) is never
emitted.

On my test system (Windows 11), this condition is hit when I have 178 or more
files in a folder.

This code didn't change in 10 years, so not sure why I only ht this bug now. On
linux, even when parsing a folder with > 600 files, I never hit that condition
for jumbo packets.

***


STEPS TO REPRODUCE
1. Open a Windows KF6 KDE App using KDirOperator (in my case only tested with
Kdenlive): 
https://files.kde.org/kdenlive/unstable/kdenlive-24.02.0-RC_A_-x86_64.exe.mirrorlist
2. Open the "Project" menu, select "Add clip or folder...", this opens a file
dialog using a KDirOperator
3. Browse to a folder with like 200 files

OBSERVED RESULT
Dialog is freezing

EXPECTED RESULT
Dialog listing the files

SOFTWARE/OS VERSIONS
Windows: 11, package built with Craft
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
I am available if more infos are needed

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to