Bug 423500 - KFileItemPrivate::determineMimeTypeHelper blocks gui thread
Summary: KFileItemPrivate::determineMimeTypeHelper blocks gui thread
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks: 423082
  Show dependency treegraph
 
Reported: 2020-06-25 13:49 UTC by Harald Sitter
Modified: 2020-06-26 10:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2020-06-25 13:49:32 UTC
When SkipMimeTypeFromContent wasn't explicitly set the determination will always use the content. This will block the gui thread if the item is on a mounted remote file system such as sshfs or cifs as reading may take a while depending on network bandwith/latency and remote IO bandwith/latency.

Supposedly a simple isSlow() and then using the SkipMimeTypeFromContent branch would help mitigate this. Alas, possibly a bit awkward since we currently don't have an enum value that'd represent "we'll do what feels sane" auto mode.