Bug 469397 - Changing view mode on sshfs mountpoint freezes Dolphin
Summary: Changing view mode on sshfs mountpoint freezes Dolphin
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: efficiency-and-performance
Depends on:
Blocks: 504984
  Show dependency treegraph
 
Reported: 2023-05-05 19:48 UTC by Nicolai Weitkemper
Modified: 2025-06-16 13:43 UTC (History)
6 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 Nicolai Weitkemper 2023-05-05 19:48:38 UTC
SUMMARY
When I mount my TrueNAS server's pool directory using sshfs, Dolphin thinks I can write into it (right-click shows the "create new file" option), but actually can't (gives an error message). If per-directory view modes are enabled, Dolphin therefore tries to save a .directory file upon change, but fails and freezes. 
This seems to be the relevant part of code: https://invent.kde.org/system/dolphin/-/blob/master/src/views/viewproperties.cpp#L78


STEPS TO REPRODUCE
1. Have a TrueNAS instance or presumably any remote server where a directory is not writable (i.e., one cannot create a file in this very directory)
2. sshfs serveraddress:/mnt/mypool /path/to/mountpoint
3. Open /path/to/mountpoint in Dolphin
4. Change the view mode

OBSERVED RESULT
Dolphin freezes

EXPECTED RESULT
Dolphin silently handles the error (and saves the config elsewhere). 
Ideally, it also detects that the directory is not actually writable and hides menu options accordingly, although I am not sure who is to blame in this case.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro 22.1.0
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Related: https://bugs.kde.org/show_bug.cgi?id=214560
Comment 1 Nicolai Weitkemper 2023-05-05 22:19:07 UTC
Permalink to the previously mentioned line of code: https://invent.kde.org/system/dolphin/-/blob/8e85fbb70c4b2e15eb13a8e30753c4c6bdeb1007/src/views/viewproperties.cpp#L78
Comment 2 TraceyC 2025-06-10 17:54:07 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Dolphin 25.04.1 or later and let us know if you can still reproduce the problem? If you can, please set this report back to REPORTED. Thanks!
Comment 3 Nate Graham 2025-06-16 13:43:56 UTC
Unfortunately I don't think there's any reason to expect that this has gotten better on its own; returning to REPORTED status.