1 of 700 tests failed on FreeBSD 6.3 i386

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
mvalery

1 of 700 tests failed on FreeBSD 6.3 i386

Post by mvalery »

OS: FreeBSD 6.3-RELEASE i386
cmd: # portupgrade ImageMagick-nox11-6.4.5.5
output:

Code: Select all

. . .
PASS: utilities/tests/charcoal.sh
PASS: utilities/tests/composite.sh
Image sized from 640x480 to 400x300.
PASS: utilities/tests/conjure.sh
PASS: utilities/tests/contrast.sh
. . .
===========================================
1 of 700 tests failed
Please report to http://www.imagemagick.org
===========================================
I'll glad to provide any additional information.
mvalery

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by mvalery »

PASS: tests/constitute_double_cmyk.sh
/usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/.libs/constitute -storagetype double /usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/input_truecolor.miff cmy
Constitute check failed: 6615/0.0587497/0.843137
FAIL: tests/constitute_double_cmy.sh

/usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/.libs/constitute -storagetype double /usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/input_truecolor.miff i
PASS: tests/constitute_double_i.sh
/usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/.libs/constitute -storagetype double /usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.7-5/tests/input_truecolor.miff prgb
PASS: tests/constitute_double_prgb.sh

I think it's critical error. The update was stopped with error message.
It's successful updated on FreeBSD 7.0-RELEASE-p2 amd64 (one of my another servers)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by magick »

This is perplexing since all the regression tests pass on the hosts we have access to, Fedora, Centos, Mac OS X, Windows, and Solaris. Its curious that the test that fails uses doubles. There can be some fuzziness because of precision round-off but CMY is a one-to-one mapping to and from RGB so precision should not be an issue.

We used to test ImageMagick under FreeBSD on the HP TestDrive systems but they have discontinued this program. Can you provide a system we can use to investigate this problem report?
mvalery

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by mvalery »

magick wrote: We used to test ImageMagick under FreeBSD on the HP TestDrive systems but they have discontinued this program. Can you provide a system we can use to investigate this problem report?
Unfortunately I cannot. The system is leased to customer.
I'll address to FreeBSD maintainer of ImageMagick.
Probably I've encountered with known OS-dependent problem.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by magick »

We found a FreeBSD 7.0 system and built the latest ImageMagick release 6.4.7-7. All the regression tests passed as expected.
mvalery

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by mvalery »

magick wrote:We found a FreeBSD 7.0 system and built the latest ImageMagick release 6.4.7-7. All the regression tests passed as expected.
So am I. I've reported (see my previous post).

Seems, the problem appears on FreeBSD 6.3 only.
Now, I've encountered with same problem on another server on FreeBSD 6.3-RELEASE-p5 i386, installed two week ago. Error message is:
Constitute check failed: 6615/0.0587497/0.843137
FAIL: tests/constitute_double_cmy.sh
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by magick »

Perhaps there is a bug in the compiler under FreeBSD 6.3. Hopefully we will be able to get access to a FreeBSD 6.3 system in the near future to resolve this problem. Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by magick »

Thanks to knigma we have a fix to this problem. The problem was within the regression test itself (i.e. tests/constitute.c) rather than in the ImageMagick API.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 1 of 700 tests failed on FreeBSD 6.3 i386

Post by magick »

Here is the patch:

Code: Select all

*** 284,289 ****
--- 284,290 ----
    (void) LogMagickEvent(CoderEvent,GetMagickModule(),
                          "Reading image from pixel array");
    final = AcquireImage((ImageInfo *) NULL);
+   final->colorspace=original->colorspace;
    SetImageExtent(final,columns,rows);
    (void) SetImageBackgroundColor(final);
    status = ImportImagePixels(final,0,0,columns,rows,map,storage_type,pixels);
Post Reply