Bug 357693 - Preview scans files opened for read/write resulting in an endless scan, locking up CPU/Desktop
Summary: Preview scans files opened for read/write resulting in an endless scan, locki...
Status: RESOLVED NOT A BUG
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 15.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-08 10:56 UTC by tuxfusion
Modified: 2016-01-08 11:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tuxfusion 2016-01-08 10:56:40 UTC
A video file being created on the hard disk while Dolphin-Preview active is being scanned for a thumbnail, every second although the creation is a minute or hour long process resulting in thousands of thumbnail scans on one file. The used up CPU and IO resources for scanning, extend the actual creation length of the file as less resources are available, resulting in even more thumbnail scans, as the overall process takes longer.


Reproducible: Always

Steps to Reproduce:
1.  create a huge video file, for instance recode video a to video b. Let resulting file be a modern hd file and let it have 5 to 10 gigabytes of data ( maybe smaller files also effected)
2. Have dolphin open, showing that folder. Preview Enabled.
3. As video b is constantly "growing" as it is being generated, dolphin or better the thumbnail.so re-scans the file every second, resulting in huge CPU usage.
4. Let the recode continue as long as it takes( this can be hours, depending), dolphin will try to generate new thumbnails for hours, in bad situations.


Actual Results:  
high cpu usage, desktop lock up/not reacting for seconds , every few seconds

Expected Results:  
nothing, until read/write operation finished on the file

installed thumbnail software version:

local/ffmpegthumbs 15.12.0-1
    FFmpeg-based thumbnail creator for video files
local/ffmpegthumbs-git r91.c06602f-1
    FFmpeg-based thumbnail creator for video files
local/kdegraphics-thumbnailers 15.12.0-1
    Thumbnailers for various graphics file formats
Comment 1 tuxfusion 2016-01-08 11:17:01 UTC
Removing ffmpegthumbs-git r91.c06602f-1  fixed the issue. Created files (copy, encoded) are not touched, or only every 10 seconds which is okay. This request was false alert on my side.