Page MenuHome

image browser crashes on true colour jpg
Closed, ResolvedPublic

Description

From a comment in the bug tracker I noted that this bug is known, but it does not appear in the list:

Blender 2.5 (at least after r28035) crashes when trying to open certain directories in the file browser.

OS: Windows XP, Windows Vista (reproduced on several PCs)
graphic cards: NVIDIA, on-board (reproduced on several PCs)

To reproduce use attached image file
- Open Blender, default scene with cube
- Press F12 to render
- Select image, save as ([F3])
- Browse to a directory where the attached file is placed
- Blender closes or crashes

Can be a very annoying and persistent bug as long as one does not know which image is causing the problem. In one of the comments in the bug tracker I read that this would be caused by corrupt image files. But the attached image does not seem to be corrupt.

Event Timeline

The image thumbnails correctly on linux.
perhaps this is a bug in the libjpeg your blenders compiled with?

I was able to reproduce this error with build 27226 as offered on the blender.org website and also with the 30403 build by jesterking and the 30412 build by loopduplicate on graphicall.org. Could well be something in the libjpeg library but probably generic as it is present in almost all builds.

Workaround: remove all jpg files from the directory you want to browse, only use png files.

Call stack for the crash:

blender.exe!_jinit_d_coef_controller() + 0x1106 bytes
blender.exe!_jinit_d_main_controller() + 0xa47 bytes
blender.exe!_jpeg_start_decompress() + 0x8b bytes
blender.exe!ibJpegImageFromCinfo(jpeg_decompress_struct * cinfo=0x080ae390, int flags=257) Line 285 + 0x9 bytes C
blender.exe!imb_load_jpeg(unsigned char * buffer=0x05e20000, int size=328084, int flags=257) Line 482 + 0x10 bytes C
blender.exe!IMB_ibImageFromMemory(unsigned char * mem=0x05e20000, int size=328084, int flags=257) Line 61 + 0x16 bytes C
blender.exe!IMB_loadifffile(int file=3, int flags=257) Line 94 + 0x11 bytes C
blender.exe!IMB_loadiffname(const unsigned char * name=0x03a67378, int flags=257) Line 128 + 0xd bytes C
blender.exe!IMB_thumb_create(const unsigned char * path=0x03a67378, ThumbSize size=THB_NORMAL, ThumbSource source=THB_SOURCE_IMAGE, ImBuf * img=0x00000000) Line 295 + 0xe bytes C
blender.exe!IMB_thumb_manage(const unsigned char * path=0x03a67378, ThumbSize size=THB_NORMAL, ThumbSource source=THB_SOURCE_IMAGE) Line 450 + 0x13 bytes C
blender.exe!thumbnails_startjob(void * tjv=0x03b37838, short * stop=0x03a599cc, short * do_update=0x03a599ca, float * progress=0x03a599d0) Line 1287 + 0x10 bytes C
blender.exe!do_job_thread(void * job_v=0x03a59980) Line 238 + 0x29 bytes C
blender.exe!tslot_thread_start(void * tslot_p=0x03a70fc0) Line 213 + 0x11 bytes C

Fix in svn, thanks for the report.

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Jul 27 2010, 4:41 PM