Bug: Floating-point exception

"Daniel Richard G." <[email protected]>
Newsgroups gmane.comp.video.image-magick.devel
Message-ID <[email protected]>
I was testing the downsampling of EXR images to 8-bit PNG, and got this:

	$ convert grey-gradient.exr -depth 8 out.png
	Floating point exception

This is with a custom build of the SVN sources:

	$ convert -version
	Version: ImageMagick 6.3.5 07/01/07 Q64 HDRI http://www.imagemagick.org
	Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

Here is what GDB has to say about it:

----(cut here)----
$ gdb /path/to/convert
GNU gdb 6.4.90-debian
[...]

(gdb) r grey-gradient.exr -depth 8 out.png
Starting program: /path/to/convert grey-gradient.exr -depth 8 out.png
[Thread debugging using libthread_db enabled]
[New Thread 47470829605856 (LWP 17006)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 47470829605856 (LWP 17006)]
0x00002b2ca82b519b in GetImageChannelDepth (image=0x511930,
    channel=AllChannels, exception=0x514bf0) at magick/statistic.c:306
306                 status|=(quantum != (scale*(quantum/scale)));
(gdb) p scale
$1 = 0
(gdb)
----(cut here)----

I've attached the offending EXR file to this message.


--Daniel


-- 
NAME   = Daniel Richard G.       ##  Remember, skunks       _\|/_  meef?
EMAIL1 = [email protected]        ##  don't smell bad---    (/o|o\) /
EMAIL2 = [email protected]      ##  it's the people who   < (^),>
WWW    = http://www.******.org/  ##  annoy them that do!    /   \
--
(****** = site not yet online)

_______________________________________________
Magick-developers mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.