GNOME Bugzilla – Bug 76338
Really bad behaviour if thumbnail creation via convert fails [can occur as a result of permissions problem]
Last modified: 2004-12-22 21:47:04 UTC
In nautilus-thumbnails.c : make_thumbnails the Imagemagick convert command is called via execlp. Sometimes convert segfaults. This makes Nautilus not realize that it should just stop trying to create the thumbnail, and just keeps trying eternally, forking converts and basically taking up most of the system resources without the user really understanding why. It needs to have a check to see wether or not the file was indeed created successfully, and if not, just stop trying, and instead show a standard-icon.
This isn't quite DOS-level stuff here but it really should be handled.
*** Bug 79234 has been marked as a duplicate of this bug. ***
*** Bug 78957 has been marked as a duplicate of this bug. ***
very borderline 2.0.0/2.0.1 IMHO. Damon, can you please take a look at this? Thanks.
Does convert create part of the thumbnail image before crashing? Nautilus does check to see whether the thumbnail file exists after running convert, and if it doesn't it adds a special flag file (the thumbnail file name with a '.x' added) to indicate it tried to create the thumbnail and failed. So I'm a bit puzzled as to what is going wrong. Maybe if part of the thumbnail got created it doesn't create the error flag file. But I don't see where it would remove it and try to create it again. I suppose it could be some confusion between the local and global thumbnail directories. But the global one isn't used now.
I've rewritten the thumbnailing code, including the part that execs convert, so I'll assume I fixed this! Please reopen if you see it again.