Bug 106276 - thumbnail generation hangs on corrupted/invalid file
Summary: thumbnail generation hangs on corrupted/invalid file
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: thumbnail (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Malte Starostik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 16:26 UTC by Tiago Freire
Modified: 2007-02-25 18:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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