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

            Bug ID: 524612
           Summary: KRecentFilesMenu synchronously probes unavailable
                    recent URLs and blocks Ark's main thread
    Classification: Frameworks and Libraries
           Product: frameworks-kwidgetsaddons
      Version First 6.29.0
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

SUMMARY

Opening an unrelated local ZIP in Ark freezes its GUI for approximately 20
seconds when Ark's recent-files list contains an archive on a systemd CIFS
automount that is unavailable.

Removing the share from KDE Places does not help. Ark independently retains the
URL in:
~/.local/share/ark/ark_recentfiles

STEPS TO REPRODUCE

1. Configure a CIFS share using x-systemd.automount.
2. Open an archive from that share in Ark so it enters Ark's recent-files list.
3. Make the SMB service unavailable.
4. Open an unrelated small local ZIP in Ark.

OBSERVED RESULT

Ark becomes unresponsive while rebuilding its recent files menu. systemd
directly attributes repeated automount requests to Ark:

mnt-SP.automount: Got automount request for /mnt/SP, triggered by 405005 (ark)

Each failed mount attempt takes approximately five seconds. Ark performs
several sequential attempts. A gdb interrupt during the freeze captured Ark's
main GUI thread in:

#0  fstatat64()
#1  libQt6Core.so.6
#2  QMimeDatabase::mimeTypeForFile(QFileInfo const&, QMimeDatabase::MatchMode)
const
#3  ark
#4  ark
#5  libQt6Core.so.6
#6  KRecentFilesMenu::addUrl(QUrl const&, QString const&) from
libKF6WidgetsAddons.so.6

The fstatat64 pathname argument was an old ZIP on the unavailable automount:
/mnt/SP/<redacted>/stale.zip

This confirms that KRecentFilesMenu synchronously performs a MIME probe on an
unrelated recent URL on the GUI thread.

EXPECTED RESULT

Populating the recent-files menu must not synchronously access filesystem URLs
on the GUI thread.

Unavailable recent files should be omitted, marked unavailable, or checked
asynchronously. Opening an unrelated local archive should remain responsive and
should not trigger an automount for an old recent entry.

SOFTWARE/OS VERSIONS

Operating System: CachyOS
Kernel: Linux 7.2.0-1-cachyos
Graphics Platform: Wayland
Ark: 26.08.0
Dolphin: 26.08.0
KWidgetsAddons: 6.29.0
KIO: 6.29.0
Plasma: 6.7.4
Qt: 6.11.2

ADDITIONAL INFORMATION

Removing the stale entry from ark_recentfiles eliminated Ark-triggered /mnt/SP
automount requests.

Related bug 272361 covers unavailable mounts exposed through Places. This case
requires no Places interaction and is specifically triggered by
KRecentFilesMenu rebuilding Ark's recent-files list.

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

Reply via email to