'make check' failing. "A system call received a parameter...

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.
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

'make check' failing. "A system call received a parameter...

Post by dave »

Building ImageMagick 6.8.5-6 on AIX 6.1.

Serveral of the CLI tests are failing. I'm not really sure how to resolve the errors.

If I use the 'display' utility I appear to get the same error that 'make check' is experiencing.

display rose.jpg
dreddy: AnErrorHasOccurredReadingFromFile `rose.jpg': A system call received a parameter that is not valid. @ error/constitute.c/ReadIma
ge/639.
(and the imagemagick wizard is then display in an x-window)

I found that display will work with the file ImageMagick-6.8.5-6/images/examples.jpg.

I have trying "dispay -debug All <image>.jpg" to see what is different, but I'm not understanding what is different.

When display fails, here is an excerpt of the debug All output:

2013-06-03T10:23:43-05:00 0:00.000 0.000u 6.8.5 Configure dreddy[4392300]: utility.c/ExpandFilenames/941/Configure
Command line: display {-debug} {All} {Red.jpg}
2013-06-03T10:23:43-05:00 0:00.100 0.010u 6.8.5 Policy dreddy[4392300]: policy.c/IsRightsAuthorized/485/Policy
Domain: Path; rights=Read; pattern="Red.jpg" ...
2013-06-03T10:23:43-05:00 0:00.100 0.010u 6.8.5 Blob dreddy[4392300]: blob.c/OpenBlob/2536/Blob
read 3 magic header bytes
2013-06-03T10:23:43-05:00 0:00.100 0.010u 6.8.5 Cache dreddy[4392300]: cache.c/DestroyPixelCache/933/Cache
destroy
2013-06-03T10:23:43-05:00 0:00.100 0.010u 6.8.5 Configure dreddy[4392300]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/usr/local/etc/ImageMagick-6/magic.xml"

...(cut out a bunch of output here)

2013-06-03T10:23:43-05:00 0:00.150 0.050u 6.8.5 Locale dreddy[4392300]: locale.c/GetLocaleOptions/729/Locale
Searching for locale file: "/home/dreddy/.magick/english.xml"
2013-06-03T10:23:43-05:00 0:00.150 0.050u 6.8.5 Configure dreddy[4392300]: locale.c/LoadLocaleList/1093/Configure
Loading locale configure file "/usr/local/etc/ImageMagick-6/english.xml" ...
2013-06-03T10:23:43-05:00 0:00.160 0.050u 6.8.5 Exception dreddy[4392300]: constitute.c/ReadImage/639/Exception
AnErrorHasOccurredReadingFromFile `Red.jpg': A system call received a parameter that is not valid.
2013-06-03T10:23:43-05:00 0:00.160 0.050u 6.8.5 Cache dreddy[4392300]: cache.c/DestroyPixelCache/933/Cache
destroy Red.jpg[0]
2013-06-03T10:23:43-05:00 0:00.160 0.050u 6.8.5 Resource dreddy[4392300]: resource.c/RelinquishMagickResource/851/Resource
Memory: 2.097MB/0B/2GiB
dreddy: AnErrorHasOccurredReadingFromFile `Red.jpg': A system call received a parameter that is not valid. @ error/constitute.c/ReadImag
e/639.
2013-06-03T10:23:43-05:00 0:00.160 0.050u 6.8.5 Policy dreddy[4392300]: policy.c/IsRightsAuthorized/485/Policy
Domain: Coder; rights=Read; pattern="LOGO" ...
2013-06-03T10:23:43-05:00 0:00.160 0.050u 6.8.5 Cache dreddy[4392300]: cache.c/DestroyPixelCache/933/Cache
destroy
2013-06-03T10:23:43-05:00 0:00.170 0.050u 6.8.5 Policy dreddy[4392300]: policy.c/IsRightsAuthorized/485/Policy
Domain: Coder; rights=Read; pattern="GIF" ...
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

Here is the start of the test-suite.log file:

=========================================
ImageMagick 6.8.5: ./test-suite.log
=========================================

# TOTAL: 39
# PASS: 28
# SKIP: 0
# XFAIL: 0
# FAIL: 11
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/cli-pipe
====================

1..8
lt-identify: AnErrorHasOccurredReadingFromFile `/tmp/magick-65143544lnth7F-WaL7c': A file or directory in the path name does not exis
t. @ error/constitute.c/ReadImage/639.
ok
PASS: tests/cli-pipe.tap 1
lt-identify: AnErrorHasOccurredReadingFromFile `/tmp/magick-9635042DtAQkB_2boic': A file or directory in the path name does not exist
. @ error/constitute.c/ReadImage/639.
not ok
FAIL: tests/cli-pipe.tap 2
lt-convert: AnErrorHasOccurredReadingFromFile `/tmp/magick-151391283grVsl--at7c': A file or directory in the path name does not exist
. @ error/constitute.c/ReadImage/639.
lt-convert: no images defined `null:' @ error/convert.c/ConvertImageCommand/3106.
not ok
FAIL: tests/cli-pipe.tap 3
lt-convert: AnErrorHasOccurredReadingFromFile `/tmp/magick-15139130j-8CIz-TatEc': A file or directory in the path name does not exist
. @ error/constitute.c/ReadImage/639.
lt-convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3106.
lt-identify: no decode delegate for this image format `/tmp/magick-19267862ANYIXcrTaryc' @ error/constitute.c/ReadImage/552.
not ok
FAIL: tests/cli-pipe.tap 4
lt-convert: AnErrorHasOccurredReadingFromFile `/tmp/magick-19267864ZPhaSKr-ar7c': A file or directory in the path name does not exist
. @ error/constitute.c/ReadImage/639.
lt-convert: no images defined `-' @ error/convert.c/ConvertImageCommand/3106.
lt-identify: no decode delegate for this image format `/tmp/magick-15139132PoMInC--atMc' @ error/constitute.c/ReadImage/552.
not ok
FAIL: tests/cli-pipe.tap 5
lt-convert: AnErrorHasOccurredReadingFromFile `/PATCHES/IBM/OPEN_SOURCE/ImageMagick-6.8.5-6/tests/rose.pnm': A system call received a
parameter that is not valid. @ error/constitute.c/ReadImage/639.
lt-convert: no images defined `-' @ error/convert.c/ConvertImageCommand/3106.
lt-identify: no decode delegate for this image format `/tmp/magick-8389808E-ugDw_2blac' @ error/constitute.c/ReadImage/552.
not ok
FAIL: tests/cli-pipe.tap 6
lt-convert: AnErrorHasOccurredReadingFromFile `/PATCHES/IBM/OPEN_SOURCE/ImageMagick-6.8.5-6/tests/rose.pnm': A system call received a
parameter that is not valid. @ error/constitute.c/ReadImage/639.
lt-convert: no images defined `miff:-' @ error/convert.c/ConvertImageCommand/3106.
lt-identify: no decode delegate for this image format `/tmp/magick-36897246mugG2TsXa4Uc' @ error/constitute.c/ReadImage/552.
not ok
FAIL: tests/cli-pipe.tap 7
not ok
FAIL: tests/cli-pipe.tap 8
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

Messages like "AnErrorHasOccurredReadingFromFile" mean ImageMagick cannot locate or cannot read its configuration files. Check your file permissions. Try -debug configure:
  • convert -debug configure xc: null:
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

Tried as suggested, not sure what it means:

convert -debug configure x: null:
2013-06-03T11:42:05-05:00 0:00.000 0.000u 6.8.5 Configure dreddy[44237764]: utility.c/ExpandFilenames/941/Configure
Command line: convert {-debug} {configure} {x:} {null:}


I also used the debug configure option with display: (it appears to be finding the config files, and I do have read permissions for the files found in /usr/local/etc/ImageMagick-6)

display -debug configure funkjam.jpeg
2013-06-03T11:41:44-05:00 0:00.000 0.000u 6.8.5 Configure dreddy[30737240]: utility.c/ExpandFilenames/941/Configure
Command line: display {-debug} {configure} {funkjam.jpeg}
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/usr/local/etc/ImageMagick-6/magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/share/ImageMagick-6/magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/usr/local/lib/ImageMagick-6.8.5//config-Q16/magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: configure.c/GetConfigureOptions/589/Configure
Searching for configure file: "/home/dreddy/.magick/magic.xml"
2013-06-03T11:41:44-05:00 0:00.020 0.010u 6.8.5 Configure dreddy[30737240]: magic.c/LoadMagicList/681/Configure
Loading magic configure file "/usr/local/etc/ImageMagick-6/magic.xml" ...
2013-06-03T11:41:44-05:00 0:00.060 0.010u 6.8.5 Configure dreddy[30737240]: locale.c/LoadLocaleList/1093/Configure
Loading locale configure file "/usr/local/etc/ImageMagick-6/locale.xml" ...
2013-06-03T11:41:44-05:00 0:00.070 0.010u 6.8.5 Configure dreddy[30737240]: locale.c/LoadLocaleList/1093/Configure
Loading locale configure file "/usr/local/etc/ImageMagick-6/english.xml" ...
dreddy: AnErrorHasOccurredReadingFromFile `funkjam.jpeg': A system call received a parameter that is not valid. @ error/constitute.c/
ReadImage/639.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

Try again, however, use xc: instead of x:. Does that simple command work? Now try
  • convert xc: info:
Does it succeed? If so, there may be a problem with just the JPEG coder. Try
  • convert -list format
Is JPEG listed with a mode of rw-?
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

convert xc: info:
xc: XC 1x1 1x1+0+0 16-bit sRGB 0.000u 0:00.000

Yes, jpeg is listed as rw
(extracted from output)

JPEG* rw- Joint Photographic Experts Group JFIF format (62)
JPG* rw- Joint Photographic Experts Group JFIF format (62)
PJPEG* rw- Joint Photographic Experts Group JFIF format (62)

libjpeg is installed, here is the version info:

libjpeg-devel-6b-6 Development/Libraries Thu May 2 15:39:57 CDT 2013 Development tools for programs which will use the libjpeg library.
libjpeg-6b-6 System Environment/Libraries Tue Jan 15 10:21:13 CST 2013 A library for manipulating JPEG image format files.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

Let's see if the problem is specific to your JPEG image or your JPEG delegate library. Type
  • convert xc: image.jpg
    identify -verbose image.jpg
If these commands work, post a URL to your image. We'll download it and see if we can read it.
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

I found that the examples.jpg that ships with ImageMagick works with display and identify. This is the only image that I have had success using display or identify against.

However, if I run the convert command the file is reduced to 160 bytes in size and no longer works. This seems to happen to any of the jpg image files.

ls -l examples.jpg
-rw-rw-r-- 1 dreddy gmsdevel 633932 Apr 13 2011 examples.jpg
convert xc: examples.jpg
ls -l examples.jpg
-rw-rw-r-- 1 dreddy gmsdevel 160 Jun 03 14:02 examples.jpg

Running identify without running convert first yields:

Image: examples.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 734x2972+0+0
Resolution: 72x72
Print size: 10.1944x41.2778
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 0 (0)
max: 255 (1)
mean: 176.617 (0.692616)
standard deviation: 80.4379 (0.315443)
kurtosis: -1.43967
skewness: -0.366315
Green:
min: 0 (0)
max: 255 (1)
mean: 175.231 (0.687181)
standard deviation: 82.6887 (0.32427)
kurtosis: -1.48279
skewness: -0.359914
Blue:
min: 0 (0)
max: 255 (1)
mean: 170.509 (0.668661)
standard deviation: 87.5866 (0.343477)
kurtosis: -1.57605
skewness: -0.32677
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 174.119 (0.682819)
standard deviation: 83.6243 (0.327939)
kurtosis: -1.49151
skewness: -0.356547
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 734x2972+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 92
Orientation: Undefined
Properties:
date:create: 2013-06-03T13:49:01-05:00
date:modify: 2011-04-13T18:33:26-05:00
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: 93b5b0bff946ce5775c6f230a041bfbca5b6f198e214777f9a7705b96f52556d
Artifacts:
filename: examples.jpg
verbose: true
Tainted: False
Filesize: 634KB
Number pixels: 2.181M
Pixels per second: 8.079MB
User time: 0.260u
Elapsed time: 0:01.269
Version: ImageMagick 6.8.5-6 2013-06-03 Q16 http://www.imagemagick.org
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

The problem is the JPEG delegate library interface. Sometimes this can happen if ImageMagick is compiled against certain JPEG header files that do not exactly match the header offsets of the JPEG delegate library. Try downloading and installing the JPEG library from source and then rebuild ImageMagick and install. That may fix the problem.
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

I will give that a try.

My current libjpeg comes from IBM's AIX Toolbox for Linus applications, so it is 'pre-built'.

http://www-03.ibm.com/systems/power/sof ... alpha.html
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

Built and Installed the jpeg library from source, rebuilt imagemagick, and I appear to be getting the same problems.

I am a bit perplexed why the examples.jpg image works with display, but none of the others.

Any other thoughts on how I might troubleshoot this build ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

Post a URL to your image/ We'll see if we can reproduce the problem.
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

The images are bundled with the ImageMagick software.

Here is the examples.jpg, which works: https://noms2.wei-pipeline.com/images/examples.jpg

display examples.jpg
(works fine, displays as expected)


Here is another, which does not work: https://noms2.wei-pipeline.com/images/configure.jpg

display configure.jpg
images: AnErrorHasOccurredReadingFromFile `configure.jpg': A system call received a parameter that is not valid. @ error/constitute.c
/ReadImage/639.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: 'make check' failing. "A system call received a paramete

Post by magick »

Edit magick/constitute.c around line 638. Comment out the destroy / return. ImageMagick is exiting when a system call error occurs when the error may be benign. Rebuilt and reinstall ImageMagick. The code should look like this:

Code: Select all

  if (GetBlobError(image) != MagickFalse)
    {
      ThrowFileException(exception,FileOpenError,
        "AnErrorHasOccurredReadingFromFile",read_info->filename);
      /* image=DestroyImageList(image);
      read_info=DestroyImageInfo(read_info);
      return((Image *) NULL); */
    }
dave
Posts: 15
Joined: 2013-05-06T08:41:28-07:00
Authentication code: 6789

Re: 'make check' failing. "A system call received a paramete

Post by dave »

The failing jpeg images now display!

The tiff images I've tested work just fine.

I'd sure like to get the jpeg images working correctly. Does this mean I've got a problem down in coders/jpeg.c or my libjpeg.a install?
Post Reply