Bug 448361 - Dolphin slow or crashes on samba shares that become unreachable
Summary: Dolphin slow or crashes on samba shares that become unreachable
Status: RESOLVED DUPLICATE of bug 423187
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-13 13:04 UTC by temptempor
Modified: 2024-10-25 15:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description temptempor 2022-01-13 13:04:10 UTC
SUMMARY
***
Dolphin is severely slowed down/halted/crashed by unavailable/slow/unstable network storage when these have been mounted with GIO/GVFS.
***


STEPS TO REPRODUCE
1. Mount an SMB share: `gio mount smb://user@share`
2. Disconnect the share server from the network/prevent access.
3. Try to open a new Dolphin session

OBSERVED RESULT

Dolphin may take more than 1 minute to open (even if it the directories it remembers and tries to open weren't dependent on the share) and subsequent navigation will be slow.

When running strace, I noticed this:

```
statx(AT_FDCWD, "/run/user/1000/gvfs/smb-share:port=445,server=127.0.0.1,share=e,user=shareuser", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffee6161550) = -1 EIO (Erreur d'entrée/sortie) / (IO Error)
statx(AT_FDCWD, "/run/user/1000/gvfs/smb-share:port=445,server=127.0.0.1,share=e,user=shareuser", AT_STATX_SYNC_AS_STAT, STATX_ALL, 0x7ffee6161550) = -1 EIO (Erreur d'entrée/sortie) / (IO Error)
```

EXPECTED RESULT

Dolphin should only have a problem when trying to access files or folders on the faulty network mount and have a reasonable timeout when it tries to stat a directory that just won't open. Also, when while trying to access the problematic path, only the tab pointing on that path should be affected vs the entirety of Dolphin UI.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.11-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 Gio of RAM
Graphics Processor: AMD Radeon RX 6900 XT

ADDITIONAL INFORMATION

This was noticed with a SMB server from a Windows VM that was paused (the VM itself) while the share was still mounted. When resuming the VM, the share is responsive again (and so is Dolphin).
Comment 1 TraceyC 2024-10-01 22:11:25 UTC
This behavior is similar to what happens when an nfs share being viewed in Dolphin goes away - Bug 454722
Comment 2 Andrew Przelucki 2024-10-06 12:23:53 UTC
I also have this problem on Kubuntu 24.04.1 LTS with Dolphin 23.08.5. I use Gigolo to automatically mount my SAMBA share from my other laptop (via GVFS). Upon inserting an external USB drive, KDE Plasma froze (taskbar and widgets, start menu, desktop) and also Dolphin froze. I could switch between open windows - besides Dolphin - so KWin was active as much. I switched to Gigolo and disconnected the SAMBA share and immediately KDE Plasma started working, the widgets, desktop and Dolphin as well. My SSHFS mount point doesn't cause trouble - also through Gigolo, so I keep that set to auto-connect.
Comment 3 David Edmundson 2024-10-25 15:37:00 UTC

*** This bug has been marked as a duplicate of bug 423187 ***