DDS question... cpu usage issue - 303e3e4a

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
JodieC
Posts: 82
Joined: 2014-10-03T21:38:50-07:00
Authentication code: 6789

DDS question... cpu usage issue - 303e3e4a

Post by JodieC » 2015-01-11T09:40:32-07:00

Source file:
https://www.dropbox.com/s/bsyxvtiszri25q6/303e3e4a?dl=0

To reproduce:

Code: Select all

convert 303e3e4a null:
This image shows up as 32x32 in Identify

Code: Select all

~/ImageMagick-6/utilities/identify 303e3e4a 
303e3e4a DDS 32x32 32x32+0+0 8-bit sRGB 788B 0.000u 0:00.000
However when I run the conversion, it runs for 5m30s.
Valgrind never finished, but when I cancelled, the output reports that convert is spending about 60 billion calls in SkipDXTMipmaps, and further in SeekBlob (libMagickCore-6.Q16.so.2.0.0: blob.c,), but I don't have debug symbols for that for some reason.

This performs a little better on my other systems (as little as 38 seconds on my desktop) but I was curious if you could reproduce the issue, or if there was any issue in the DDS decoder.


System Details:
AMD64
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty

ImageMagick 6 compiled from SVN checkout 20150109

User avatar
magick
Site Admin
Posts: 10594
Joined: 2003-05-31T11:32:55-07:00

Re: DDS question... cpu usage issue - 303e3e4a

Post by magick » 2015-01-11T12:12:04-07:00

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-4 Beta, available by sometime tomorrow. Thanks.

Post Reply