Bug 391661 - KDialog's Open File dialog hangs if an automount NFS share is unavailable
Summary: KDialog's Open File dialog hangs if an automount NFS share is unavailable
Status: REPORTED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.44.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: efficiency
Depends on:
Blocks:
 
Reported: 2018-03-10 12:11 UTC by adr.fantini
Modified: 2023-10-18 06:24 UTC (History)
7 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 adr.fantini 2018-03-10 12:11:42 UTC
I have this NFS line in my fstab:

myhostname:/srv/nfs/RAID1 /mnt/NFS_RAID1 nfs noauto,user,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,nofail,x-systemd.idle-timeout=1min,rsize=32768,wsize=32768 0 0

When I exit of my house network, this NFS becomes unavailable. Dolphin does not seem to have problems with this.
KDialog, however, completely hangs. E.g. I'm in Kate, I click "File -> Open" the KDialog window appears, but I cannot click anywhere of it. Sometimes the window will have only borders, no content. I can manually kill the window, unmount the NFS share, and try again: it works.

Kdialog's Open File dialog should not hang if a mounted NFS share is unavailable.
Comment 1 Kai Uwe Broulik 2018-03-13 07:42:22 UTC
I bet this is the free space bar in places panel trying to query available space. This patch [1] should alleviate this but it would be great if you could get a backtrace when this happens. Re-assigning to KIO as the file dialog comes from there.

https://cgit.kde.org/kio.git/commit/?id=cbedf15311aa895984000769d973d69ecb0f93fc
Comment 2 adr.fantini 2018-03-13 07:46:55 UTC
Sorry for my lack of experience with this, how can I get a backtrace? Dolphin is not crashing, just hanging.
Comment 3 Xavier Brochard 2021-09-06 07:19:38 UTC
Same here, except things are worse since KDE Gear 21.08. Every process in need to list files is very very slow (`ls` in Konsole, Gwenview, Okular, …), Dolphin window is freezed and must be killed (even if launched on /opt url for example).

My NFS automounted share is in my home folder. Here's Dolphin BT, but dbg symbols are not yet availables on Debian.

#0  0x00007f80cb6a68c7 in statfs64 () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f80cce016d5 in KFileSystemType::fileSystemType(QString const&) ()
   from /lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#2  0x00007f80cd5e1198 in ?? () from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#3  0x00007f80cdc46cdf in ViewProperties::ViewProperties(QUrl const&) ()
   from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#4  0x00007f80cdc3236c in DolphinView::applyViewProperties() ()
   from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#5  0x00007f80cdc343a5 in DolphinView::setUrl(QUrl const&) () from /lib/x86_64-linux-gnu/libdolphinprivate.so.5
#6  0x0000560258fb5496 in ?? ()
#7  0x00007f80cbc675a6 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f80cdb08175 in KUrlNavigator::urlChanged(QUrl const&) ()
   from /lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#9  0x00007f80cdb0c22c in KUrlNavigator::setLocationUrl(QUrl const&) ()
   from /lib/x86_64-linux-gnu/libKF5KIOFileWidgets.so.5
#10 0x0000560258fb301c in ?? ()
#11 0x0000560258fbdc46 in ?? ()
#12 0x0000560258fc06e4 in ?? ()
#13 0x00007f80cd2f5690 in KMainWindow::readPropertiesInternal(KConfig*, int) ()
   from /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#14 0x00007f80cd2f56d3 in KMainWindow::restore(int, bool) () from /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#15 0x0000560258f9a4d9 in ?? ()
#16 0x00007f80cb5ded0a in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x0000560258f9a66a in ?? ()
Comment 4 Lars Bischoff 2021-11-13 17:23:44 UTC
I have observed the same but it is not limited to NFS shares.
For me file dialogs get slow when I have a "noauto" mount entry in /etc/fstab AND that device is not available.
In my case that is the entry for an external USB-HD:

LABEL=ExtBackup   /media/ebackup  ext4    defaults,lazytime,noauto    0       2

If I comment out that line, dolphin (and other file dialogs) are fast and responsive.
If the line is active AND the ExtHD is not connected, then browsing dirs is extremely sluggish (upto few seconds delays).
If the ExtHD is connected but not mounted, then also everything behaves normally.

I'm using Kubuntu 21.10 with Plasma 5.22.5 and Frameworks 5.86.0.
Kubuntu 21.04 did not had this problem yet.
Comment 5 Lars Bischoff 2021-11-13 19:38:20 UTC
meanwhile I found that my issue was addressed here:
https://bugs.kde.org/show_bug.cgi?id=442106
Comment 6 SoftExpert 2023-10-18 06:24:08 UTC
I would reference also the bug #454722 - Dolphin becomes frozen if nfs shares declared in fstab are not available - previously the mount point was just showing empty. Currently reproduced with Dolphin 23.08.2.