Bug 445606

Summary: Dolphin ignores 'Skip previews for remote files above: no previews' and is extremely slow when browsing through a shared folder mounted with CIFS
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: VERIFIED REMIND    
Severity: normal CC: alfonsotabo, kfm-devel, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick Silva 2021-11-16 18:58:40 UTC
SUMMARY

STEPS TO REPRODUCE
1. make sure 'Skip previews for remote files above' is set to 'no previews' 
in 'Previews' tab of Dolphin settings
2. use CIFS to mount a remote folder containing hundreds of files with preview (videos and/or images). I run the following command in Konsole:
 sudo mount -t cifs //ip=address/shared_folder /mount/point  -o workgroup=workgroup,iocharset=utf8,uid=user,gid=group
3. open Dolphin, activate Icons view mode and browse through the shared folder mounted in the step 2

OBSERVED RESULT
Dolphin unexpectedly generates previews and is extremely slow, it takes ~5 seconds to react to clicks
and scrolling despite normal cpu usage. If I disable 'Show previews' in 'View' menu and them restart Dolphin,
the problem disappears, Dolphin becomes responsive.

EXPECTED RESULT
Dophin respects 'no previews' settings and is responsive

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-11-23 20:20:52 UTC
Yes, this is why you don't manually mount SMB shares as local folders. :) All the "I'm a remote location" detection features break.

Why did you manually mount it instead of using the normal workflow?
Comment 2 Patrick Silva 2021-11-23 21:43:15 UTC
(In reply to Nate Graham from comment #1)
> Why did you manually mount it instead of using the normal workflow?

VLC doesn't play some videos from samba share. :(

https://code.videolan.org/videolan/vlc/-/issues/22909
Comment 3 Nate Graham 2021-11-23 21:48:34 UTC
kio-fuse should solve that. You may need to disable VLC's built-in samba client support, if it's enabled. It's more harmful than helpful these days. Distros should probably package it out if upstream won't do it.
Comment 4 Patrick Silva 2021-11-24 12:40:13 UTC
If vlc-plugin-samba package is uninstalled, VLC fails to play any video from Samba shares instead of failing randomly.
Tested VLC from ubuntu repos and daily build of VLC 4.0 from PPA repository. kio-fuse is installed.
Comment 5 Nate Graham 2021-11-24 20:31:33 UTC
We should investigate that separately. Should be fixable. Can you file a new bug report for it?
Comment 6 Patrick Silva 2021-11-25 13:32:49 UTC
reported as bug 446077
Comment 7 alfonsotabo 2024-04-10 07:59:37 UTC
Any updates on this bug? Dolphin seems to know just fine that it is a remote folder as it shows the folder under the 'Remote' section, yet it still shows thumbnails.