On trying to open a file Blender 2.5 r27573 - r27589 and maybe a few earlier blender crashes when you navigate a folder with corrupt images (attached example jpg files)
File > Open > Navigate to a folder with the corrupt image(s)
With r26939 it didnt happen so the problem seems to be introduced later.
Windows XP
Attached zip file with the corrupt images causing Blender to crash.
Description
Event Timeline
Just tried to reproduce under as well Linux, no crash there.
Blender trunk revision 27667
Linux 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC 2010 x86_64 GNU/Linux
Hi, I managed to reproduce the crash under OS X. The crash is actually inside libjpeg, not blender.
It's interesting that your linux version worked ok though. The libjpeg for OS X in blender's svn is v6, I updated to v8 locally, but still got a crash.
What version of libjpeg do you have on your linux system?
Tried it again (svn trunk 27837) and it worked perfectly.
I can even activate "Show image files" in the "open .blend" dialog without crash.
One new thing that I missed in my last try - Blender doesn't crash, but actually reports an error message:
=================
Corrupt JPEG data: 3582 extraneous bytes before marker 0xd9
Premature end of JPEG file
libpng error: Image width or height is zero in IHDR
Corrupt JPEG data: 2380 extraneous bytes before marker 0xd9
Premature end of JPEG file
libpng error: Image width or height is zero in IHDR
=================
Not sure why it's reported as a "libpng error"?
System version of libjpeg:
libjpeg62 6b-14build1
Thanks, a few more questions: On what OS did it work perfectly on the last try? Windows or Linux?
Which OS gave the error message? Does the error message appear on both OS versions? Are these versions that you compiled yourself, or pre-built ones from online?
Strange that the linux libjpeg is relatively old too, and works ok...
Oh, I'm sorry, I forgot to mention:
Whenever I tried it on Linux (version -> see my previous message) it worked fine (and printed the error message).
On Windows XP it crashed like reported in the bug report.
I didn't SEE any error messages on Windows because the console did close itself before I could check.
So I'm not sure if there is the same error yet.
Unfortunately I can't check on Windows again, since I don't have a Win installation where I am right now.
Closed a report which I think is the same as this one: [#21810] Image browser crashes with incomplete JPG files
Attachment from that report is Archive.zip, and backtrace is here:
Here's a backtrace (archlinux x86_64, blender rev:28062) from
browsing the problem file with a empty thumbnail cache.
#0 0x00007ffff7bc0bb0 in next_marker () from
/usr/lib/libjpeg.so.8
#1 0x00007ffff7bc0d05 in read_restart_marker () from
/usr/lib/libjpeg.so.8
#2 0x00007ffff7bbc262 in process_restart () from
/usr/lib/libjpeg.so.8
#3 0x00007ffff7bbd8c5 in decode_mcu () from
/usr/lib/libjpeg.so.8
#4 0x00007ffff7bba5b3 in decompress_onepass () from
/usr/lib/libjpeg.so.8
#5 0x00007ffff7bbf7be in process_data_simple_main () from
/usr/lib/libjpeg.so.8
#6 0x00007ffff7bb7bc6 in jpeg_read_scanlines () from
/usr/lib/libjpeg.so.8
#7 0x0000000000b69b39 in ibJpegImageFromCinfo ()
#8 0x0000000000b69ec1 in imb_ibJpegImageFromMemory ()
#9 0x0000000000b67a1f in IMB_loadifffile ()
#10 0x0000000000b67b29 in IMB_loadiffname ()
#11 0x0000000000b724a1 in IMB_thumb_create ()
#12 0x0000000000b7274c in IMB_thumb_manage ()
#13 0x00000000008c60eb in thumbnails_startjob ()
#14 0x00000000006d0043 in do_job_thread ()
#15 0x00007ffff18fe88a in start_thread () from
/lib/libpthread.so.0
#16 0x00007ffff20689ed in clone () from /lib/libc.so.6
#17 0x0000000000000000 in ?? ()
Hi,
The crash is in libjpeg, so nothing that we can do (if libjpeg is fixed and return a NULL pointer or some class of error that we can check...)
No point to keep this open, not a Blender bug.
- Diego