Bug 106276

Summary: thumbnail generation hangs on corrupted/invalid file
Product: [Frameworks and Libraries] kio Reporter: Tiago Freire <tiago.freire>
Component: thumbnailAssignee: Malte Starostik <malte>
Status: RESOLVED FIXED    
Severity: normal CC: nicolasg
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tiago Freire 2005-05-25 16:26:51 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.3 
OS:                Linux

When I have a corrupt/invalid file, e.g. a file which download is not completed, thumbnail generation stops at that file and will not continue. I have to remove the offending file to generate thumbnails for all files.
I have seen this happen with movie files, but it might happen with images as well. 
IMO the thumbnail generation should check if the file has valid data, and if it is broken, gracefully skip it, and continue generating thumbnails for other images in the directory. 
Additionally, an icon overlay for 'broken file' could be put over it as well.
Comment 1 Nicolas Goutte 2005-05-26 00:57:06 UTC
For now, there is no code for failed thumbnail generation (including the part freedesktop.org thumbnail specification that deals with failed thumbnails).

However sure, it would be best if the thumbnail generation would continue.

Have a nice day!


Comment 2 Tiago Freire 2005-07-20 13:19:45 UTC
looks like it is fixed in 3.4.1
Comment 3 karaluh 2006-12-14 13:00:37 UTC
On Kubuntu Edgy it's looks ok too.
Comment 4 Martin Koller 2007-02-25 18:11:41 UTC
Closing as it seems to be fixed due to comment from reporter