Maniphest T27203

Crashes with some high-res image thumbnail generation
Closed, Resolved

Assigned To
Campbell Barton (campbellbarton)
Authored By
Ian Leonard (lenny27g)
Apr 28 2011, 9:42 AM
Tags
  • BF Blender
Subscribers
Campbell Barton (campbellbarton)
Ian Leonard (lenny27g)
Ton Roosendaal (ton)

Description

When using Blender's file explorer to open an image (with image thumbnail generation enabled), blender will instantaneously crash if it enters a folder with an extremely high resolution image. The crash isn't a freeze, nor does it lock up the rest of my computer. It brings up "Blender is not respanding and must close" window.

I thought it might be a RAM issue, but I monitored the RAM as I entered the folder, and it never even had time to fill, for it crashes only milliseconds, if not instantly, when entering the folder.

If I disable the thumbnail generation, Blender will crash only when opening the file (still instantly though, same manner).

I tested it for a file format issue, and it has no problem with opening files of the same format at a smaller resolution.

This was also tested with only the image in a folder, no other files.

Windows is still able to generate a thumbnail for the image, and the image can still be opened and accessed, so its not corrupt.

The image that causes the problem is a 3,732 MegaPixel (86,400 x 43,200) 1.46GB TIF format image.
Blender can still easily open an image 1/8 the resolution and size (467 MP).
I was unable to test any resolutions between those two resolutions because of the time required to generate such images.

Blender 2.57.0, r36147, 64-bit
Windows 7 64-bit

Event Timeline

Ian Leonard (lenny27g) edited a custom field.Apr 28 2011, 9:42 AM
Campbell Barton (campbellbarton) added a comment.Apr 28 2011, 11:20 AM

This is a really big image uncompressed - ~32gb. we probably just need to have some way to skip really large images.

Ton Roosendaal (ton) added a comment.Apr 28 2011, 7:24 PM

Yeah, ImBuf has a facility to first read such info (image size etc) before loading the real stuff.

Ian Leonard (lenny27g) added a comment.Apr 28 2011, 11:15 PM

Ah that makes sense, but why does it crash instantaneously? It takes about 45 seconds or so to generate a thumnail or load in a picture around 500 MP, but for the really high res one it just doesn't seem to even try, as if it gives up right when it sees it and crashes.

**Although I know this isn't any major issue (since I doubt anyone has ever really tried or needed to use an image so big), but I thought it would be good to bring it to your attention anyway :)

Campbell Barton (campbellbarton) added a comment.May 2 2011, 12:23 PM

skip files over 100mb, committed r36433.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.May 2 2011, 12:23 PM