Bug 444064 - ffmpegthumbs causes Dolphin to "hang" when viewing properties / details of video file on network share (CIFS/SMB)
Summary: ffmpegthumbs causes Dolphin to "hang" when viewing properties / details of vi...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdemultimedia
Classification: Unmaintained
Component: general (show other bugs)
Version: 21.12.2
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-19 23:23 UTC by flan_suse
Modified: 2024-09-22 19:04 UTC (History)
1 user (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 flan_suse 2021-10-19 23:23:46 UTC
VERSION INFO:

ffmpegthumbs: 21.08.2

Operating System: Manjaro Linux

KDE Plasma Version: 5.22.5

KDE Frameworks Version: 5.87.0

Qt Version: 5.15.2

Kernel Version: 5.14.10-1-MANJARO (64-bit)

Graphics Platform: X11

Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz

Memory: 15.4 GiB of RAM

Graphics Processor: Mesa Intel Xe Graphics


---


All scenarios assume CIFS network share, SMB protocol version 3; mounted either via manual mount, fstab, systemd unit, or Smb4K.



The following scenarios are *very likely* to make Dolphin "hang":

* Prerequisite: ffmpegthumbs is installed

* Prerequisite: Previews are enabled in Dolphin (video previews are enabled)



1. With Dolphin, browse to a CIFS network share

1a. Right-click a video file -> Properties



Result: Dolphin hangs for several seconds or more (unresponsive)

2. In Dolphin Browse to CIFS network share

2a. Enable the "Details" pane

2b. Click on a video file

Result: Dolphin hangs for several seconds or more (unresponsive)


---


The following scenarios will *NOT* make Dolphin hang:

3. Repeat any of the above, however, use a LOCAL folder (rather than a network share)

4. Repeat any of the above, however, use a READ-ONLY mounted network share ("ro")

5. Repeat any of the above, however DISABLE "Video File" previews (or uninstall ffmpegthumbs)


---


FURTHER NOTES:

This isn't 100% a consistent hang. Sometimes it will "just work", but I noticed the majority of the time it hangs Dolphin.

Scenario #4 above is very peculiar. For some reason using the "ro" (read-only) mount option on the CIFS network share alleviates the problem entirely!

In all the above scenarios, video thumbnails generate properly. The hang only occurs when trying to view the file's properties (either via right-click -> Properties, or by enabling the Details pane and clicking on the file.)


---


I am going to prepare a video capture to show exactly what happens.

Any more information needed? Let me know what would be most useful.
Comment 1 flan_suse 2021-10-20 13:01:27 UTC
Upon further experimenting, it appears the problem is mostly consistent with my Intel Iris Xe GPU (specs in first post.)

With my other computer using proprietary Nvidia drivers (GeForce 1650) it doesn't seem to have this issue.


---


I notice that I cannot even play the mini video preview in Dolphin with my Intel GPU system (even on local files.)

However, I can play them just fine with my Nvidia GPU, even on network shares. (There's a small 1-2 second delay, but it works.)


---


I mention this because it might be inter-related with the GPU / ffmpegthumbs / Dolphin / CIFS.
Comment 2 flan_suse 2022-02-11 05:39:44 UTC
This continues to happen with an updated system:

Operating System: Manjaro Linux
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics

The issue is as described in the bug report. :(
Comment 3 flan_suse 2022-02-11 05:42:07 UTC
UPDATE: Removing the package "ffmpegthumbs" fixes the issue, but I don't consider this "resolved", since it means I lose out on video thumbnail previews in Dolphin.

This is why I believe the underlying cause has to do with ffmpegthumbs + network folder.
Comment 4 PJ 2022-08-23 00:37:36 UTC
dolphin 22.04.3-1
dolphin-plugins 22.04.3-1
ffmpegthumbs 22.04.3-1
Distro: Manjaro (Arch based)

Same issue here. I have FreeBSD running ZFS on slow SMR HDD drives (broken by design) which causes very long syncing and write/read issues. The entire Samba share becomes unmountable when thumbnailer hangs and kill -9 dolphin and plugin process(es) just hangs forever. You have to boot the entire machine every time to fix the issue. 

The way to fix this would be to add timeout and/or retry to the thumbnailer or to the entire Dolphin preview plugin system which calls the preview plugins.

Adding caching to the thumbs to ~/.cache or something could also help somewhat to decrease read count, but it would not fix the issue.
Comment 5 Christoph Cullmann 2024-09-22 19:04:29 UTC
kdemultimedia is no longer maintained.

If you have issues like you reported with current versions of our applications, please report the issue at the bugtracker of the application.