Crash opening YCbCr Tiff in x64

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
foxyshadis
Posts: 15
Joined: 2010-04-29T19:29:46-07:00
Authentication code: 8675308
Location: Fresno, California

Crash opening YCbCr Tiff in x64

Post by foxyshadis »

This image causes a crash, only in x64 windows compiles, not either 32-bit. If I get a chance I'll further debug it.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Crash opening YCbCr Tiff in x64

Post by snibgo »

The file you uploaded, yuv_tiff.zip, doesn't seem to be a valid zip file.
snibgo's IM pages: im.snibgo.com
User avatar
foxyshadis
Posts: 15
Joined: 2010-04-29T19:29:46-07:00
Authentication code: 8675308
Location: Fresno, California

Re: Crash opening YCbCr Tiff in x64

Post by foxyshadis »

Not sure why, I created it in 7zip and can open it in regular zip software, but I uploaded another one created in windows explorer.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Crash opening YCbCr Tiff in x64

Post by snibgo »

Something is wrong with yuv.tif. Various programs can't open and display it. However,

convert yuv.tif yuf.jpg

works for me (IM 6.6.0-8 on Windows 7).

How did you create yuv.tif? If with IM, please supply the usual (the source image and exact command, IM version and platform).
snibgo's IM pages: im.snibgo.com
User avatar
foxyshadis
Posts: 15
Joined: 2010-04-29T19:29:46-07:00
Authentication code: 8675308
Location: Fresno, California

Re: Crash opening YCbCr Tiff in x64

Post by foxyshadis »

I'm on Win7 x64, using IM 6.6.1-6 2010-04-23 Q16 (no OpenMP). IM is one of the very few programs that can properly handle YCbCr in tiff. Some software (like XnView) converts the colors incorrectly, most won't open it at all.

It's created with ffmpeg, which added the capability in 2007:

ffmpeg -i sample.mp4 yuv.tif

That will create a tiff in the native colorspace. (Using -colorspace RGB would create a normal RGB tiff, but I need native to minimize cumulative rounding errors.) The crash only seems to occur on both windows x64 builds. All 32-bit builds convert it fine.
Post Reply