[frameworks-kio] [Bug 499551] Dolphin hangs when opening context menu for directory with many files or for a huge file selection

Méven Car bugzilla_noreply at kde.org
Sat Feb 8 11:43:17 GMT 2025


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

Méven Car <meven29 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |general
            Version|24.12.1                     |6.11.0
                 CC|                            |kdelibs-bugs at kde.org,
                   |                            |meven29 at gmail.com
           Assignee|dolphin-bugs-null at kde.org   |kio-bugs-null at kde.org
            Product|dolphin                     |frameworks-kio

--- Comment #13 from Méven Car <meven29 at gmail.com> ---
(In reply to Andrea Ippolito from comment #12)
> (In reply to Andrea Ippolito from comment #10)
> > Created attachment 178012 [details]
> > flamegraph context menu on large file selection
> > 
> > This is to show the context menu on a selection of 5000 flat files (4KB
> > .bin), no sub-dirs
> > 
> > Seems to be related to mime types again (triggered by the compress/extract
> > actions)?
> 
> Disabling Ark's compress and extract context menu entries improved the
> situation drastically (a few seconds before VS barely over 1 second now)(In
> reply to Méven from comment #11)
> > (In reply to Andrea Ippolito from comment #10)
> > > Created attachment 178012 [details]
> > > flamegraph context menu on large file selection
> > > 
> > > This is to show the context menu on a selection of 5000 flat files (4KB
> > > .bin), no sub-dirs
> > > 
> > > Seems to be related to mime types again (triggered by the compress/extract
> > > actions)?
> > 
> > Yes that's a different issue in ark in CompressFileItemAction and
> > ExtractFileItemAction that scan all the files.
> > They will probably need some similar work to limit the determineMimeType
> > calls:
> > https://invent.kde.org/utilities/ark/-/blob/master/app/
> > compressfileitemaction.cpp?ref_type=heads
> > https://invent.kde.org/utilities/ark/-/blob/master/app/extractfileitemaction.
> > cpp?ref_type=heads
> > 
> > It exposes two issues with the API, the plugins can impact the application
> > (there run in main thread) and those mimetypes have already be determined by
> > dolphin when it loaded the folder, so they could share this information.

This is the main issue and it is in KIO / widgets, but might take a long time
to fix as it might require an API breakage.

> 
> Cool, thanks! What's the best way to report this to Ark/Gwenview in your
> opinion?

Just like you did with this bug for dolphin. Please keep a link or a "relates
to" reference in the new bugs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list