In Blender 2.53 beta and I noticed it in the older alpha2 version, It crashes when you try to load a background image if the folder has a damaged image in it. By damaged I mean one that did not finish downloading, etc. Most image viewers can still load the damaged image, but Blender crashes when it tries to make a thumbnail out of it. Blender can load the damaged image as a background if I navigate the folder without thumbnails. So it must be a bug in the thumbnail previewing code?
Description
Event Timeline
I'm sorry I atatched the fixed image that does not crash Blender. Here is the one that crashes Blender.
I was wrong (got the two files confused) Blender crashes with the damaged file even if you do not navigate the directory with thumbnail view turned off. 14.jpg is the damaged file.
Another one singlesnetctarget30x250bz5.bmp this file and the previous head.bmp are images that I downloaded off the net months/years ago and edited with gimp and/or MSpaint. These two files do not seem to crash 2.5 alpha 2 but they will not display and the thumbnail is grey. They crash 2.53 as soon as the thumbnail tries to render or when you try to load it as an active background. I should mention these are not images I need to load in Blender they are just in big directories with lots of images.
Unable to redo crash on OS X. Though bmp files don't load, only show grey, but this is not necessarily a bug because Blender doesn't support all types of bmp files. I guess you testing this on Windows? Will try that out later.
On 32bit arch linux files are not supported but dont crash in the thumbnailer either.
I think it would help to add a routine that gives a standard-image if there is an error in loading that image. It could be some kind of "This image is damaged"-Message instead of crashing Blender would help for the most cases.
For example: I have a textures folder where all the textures which i have not sorted into folders lay around. There are hundreds of them and i can´t identify which of them is damaged, but Blender always crashed when opening this folder with preview. So this little error message would help...
I got curious and checked what Blender 2.5 alpha 1 did and it crashed. I took a screen shot. It shows and error message from libpng.
If Blender can't read an image, it should never crash, just show a blank icon int he file browser, there's already checks for this kind of thing, just that for some reason it's still crashing.
I can redo the jpg crash with the beta but not with a newer build, a problem loading them was fixed since the beta so using a newer test build should solve the issue.
The bmp images crashed for me in the beta with Quicktime uninstalled (otherwise it will use that to load them). Note that without Quicktime it's expected that Blender can't read these, we only support simple bmp images natively. But it doesn't crash anymore in newer builds for me.
Could you test if there is still a crash in newer builds?
http://www.graphicall.org/builds/