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

Méven Car <[email protected]>
Newsgroups gmane.comp.kde.devel.kfm
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=499551

Méven Car <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |general
            Version|24.12.1                     |6.11.0
                 CC|                            |[email protected],
                   |                            |[email protected]
           Assignee|[email protected]   |[email protected]
            Product|dolphin                     |frameworks-kio

--- Comment #13 from Méven Car <[email protected]> ---
(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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.