Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connected Components Abort Trap 6 Error #4372

Closed
fmw42 opened this issue Oct 15, 2021 · 2 comments
Closed

Connected Components Abort Trap 6 Error #4372

fmw42 opened this issue Oct 15, 2021 · 2 comments

Comments

@fmw42
Copy link

fmw42 commented Oct 15, 2021

ImageMagick version

7.1.0-10

Operating system

MacOS

Operating system, version and so on

OSX Sierra

Description

Connected Components Abort Traps when filtering on area

Image:

objects

magick objects.gif -type bilevel \
-define connected-components:mean-color=true \
-define connected-components:verbose=true \
-define connected-components:area-threshold=100 \
-connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color Abort trap: 6

Works fine in IM 6.9.12-25

convert objects.gif -type bilevel \
-define connected-components:mean-color=true \
-define connected-components:verbose=true \
-define connected-components:area-threshold=100 \
-connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color):
0: 256x171+0+0 119.3,80.7 33148 gray(0)
2: 120x135+104+18 159.5,106.5 8690 gray(255)
3: 50x36+129+44 154.2,63.4 1529 gray(0)
4: 21x23+0+45 8.8,55.9 409 gray(255)

Also works fine without the area threshold

magick objects.gif -type bilevel \
> -define connected-components:mean-color=true \
> -define connected-components:verbose=true \
> -connected-components 4 x.png

Objects (id: bounding-box centroid area mean-color):
0: 256x171+0+0 119.2,80.8 33117 gray(0)
2: 120x135+104+18 159.5,106.5 8690 gray(255)
3: 50x36+129+44 154.2,63.4 1529 gray(0)
4: 21x23+0+45 8.8,55.9 409 gray(255)
1: 4x10+252+0 253.9,4.1 31 gray(255)

Steps to Reproduce

See above

Images

See above

@urban-warrior
Copy link
Member

Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT main branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://imagemagick.org/download/beta/ by sometime tomorrow.

urban-warrior pushed a commit to ImageMagick/ImageMagick6 that referenced this issue Oct 16, 2021
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Nov 1, 2021
2021-10-28  7.1.0-13  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.1.0-13 GIT revision 19325:987f36b50:20211028

2021-10-28  7.1.0-13  Dirk Lemstra <[email protected]>
  * Fix stack overflow when parsing malicious ps image file (report from
    Muhammad Aldo Firmansyah).

2021-10-25  7.1.0-12  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.1.0-12 GIT revision 19318:113f8f901:20211025

2021-10-15  7.1.0-12  <quetzlzacatenango@image...>
  * Fix x64 build.

2021-10-24  7.1.0-11  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.1.0-11 GIT revision 19313:fbf76f2ef:20211024

2021-10-11  7.1.0-11  <quetzlzacatenango@image...>
  * Fix connected component abort trap (reference
    ImageMagick/ImageMagick#4372).
  * Fix possible unitialized values (reference
    ImageMagick/ImageMagick#4379).
  * Fix stack overflow when parsing malicious tiff image file (report from
    Muhammad Aldo Firmansyah).

2021-10-10  7.1.0-10  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.1.0-10 GIT revision 19236:07ebe6b6e:20211010

2021-10-03  7.1.0-10  <quetzlzacatenango@image...>
  * Improved algorithm for automatic calculation of pointsize for caption and
    labels.
  * Support -auto-orient option in the identify utlity.

2021-10-03  7.1.0-9  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.1.0-9 GIT revision 19220:7921bf068:20211003

2021-10-03  7.1.0-9  Dirk Lemstra <[email protected]>
  * Squash a dump truck load of VisualStudio compiler warnings.
  * Improved algorithm for automatic calculation of word breaks and pointsize
    for caption and labels.

2021-09-19  7.1.0-9  <quetzlzacatenango@image...>
  * Improve wrapping between words and within words (reference
    ImageMagick/ImageMagick#4227).
@fmw42
Copy link
Author

fmw42 commented Nov 9, 2021

Works fine now in IM 7.1.0-13 Q16-HDRI. Thanks.

@fmw42 fmw42 closed this as completed Nov 9, 2021
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this issue Nov 12, 2021
From [1]:

2021-10-28  7.1.0-13  Dirk Lemstra <[email protected]>
  * Fix stack overflow when parsing malicious ps image file (report from
    Muhammad Aldo Firmansyah).

2021-10-15  7.1.0-12  <quetzlzacatenango@image...>
  * Fix x64 build.

2021-10-11  7.1.0-11  <quetzlzacatenango@image...>
  * Fix connected component abort trap (reference
    ImageMagick/ImageMagick#4372).
  * Fix possible unitialized values (reference
    ImageMagick/ImageMagick#4379).
  * Fix stack overflow when parsing malicious tiff image file (report from
    Muhammad Aldo Firmansyah).

2021-10-03  7.1.0-10  <quetzlzacatenango@image...>
  * Improved algorithm for automatic calculation of pointsize for caption and
    labels.
  * Support -auto-orient option in the identify utlity.

2021-10-03  7.1.0-9  Dirk Lemstra <[email protected]>
  * Squash a dump truck load of VisualStudio compiler warnings.
  * Improved algorithm for automatic calculation of word breaks and pointsize
    for caption and labels.
  * Improve wrapping between words and within words (reference

2021-09-17  7.1.0-8  Dirk Lemstra <[email protected]>
  * Check for `null` in InvokeDelegate() (reference
    ImageMagick/ImageMagick#4225).

2021-09-11  7.1.0-7  Dirk Lemstra <[email protected]>
  * Fixed incorrect check when module is used as the domain in policy.xml
    that could allow the use of a disabled module. (reference
  * Prevent color reduction merging into one color (reference
    ImageMagick/ImageMagick#4059)

2021-08-21  7.1.0-6  <quetzlzacatenango@image...>
  * Tweak the bilevel image type (reference
    ImageMagick/ImageMagick#4121).
  * Converting from LAB to RGB leads to wrong colors (reference
    ImageMagick/ImageMagick#4105).

2021-08-12  7.1.0-5  Dirk Lemstra <[email protected]>
  * Added option (-dng:read-thumbnail=true) to read the thumbnail of a raw
    Image and store it as a profile called dng:thumbnail.
  * Heap-based buffer overflow in TIFF coder (alert from Hunter Mitchell).
  * Grayscale image write optimization.

2021-07-17  7.1.0-4  <quetzlzacatenango@image...>
  * Trim no longer returns an empty image on 1-pixel width input (reference
    ImageMagick/ImageMagick#3896).
  * remove virtual canvas offset from difference image.

2021-07-03  7.1.0-3  Dirk Lemstra <[email protected]>
  * Added option to set the pixel format option of ffmpeg when reading or
    writing a video file with -define video:pixel-format=<value>.
  * system() is not supported under IOS.
  * Accelerate subimage-search with FFT's (contributed by Fred).

2021-06-25  7.1.0-2  <quetzlzacatenango@image...>
  * malloc() corruption fix (reference
    ImageMagick/ImageMagick6#159).

2021-06-19  7.1.0-1  Dirk Lemstra <[email protected]>
  * Added option to set the vsync option of ffmpeg when reading or writing a
    video file with -define video:vsync=<value>.

2021-06-02  7.1.0-0  <quetzlzacatenango@image...>
  * SVG no longer hangs when handling class in <defs> (reference
    ImageMagick/ImageMagick#3818).
  * Bump minor version (reference
    ImageMagick/ImageMagick#3768)

2021-06-02  7.0.11-15  <quetzlzacatenango@image...>
  * Raise exception for invalid compose:args geometry (reference
    ImageMagick/ImageMagick#3765).

2021-05-20  7.0.11-14  Dirk Lemstra <[email protected]>
  * Added support for reading and writing 16-bit jxl images.

2021-05-12  7.0.11-13  Dirk Lemstra <[email protected]>
  * Fixed reading and writing the XMP chunk in a WebP image (reference
    ImageMagick/ImageMagick#3617).
  * Added support to set the jpeg-xl encoding effort with
    -define jxl:effort=<number>

2021-05-09  7.0.11-13  <quetzlzacatenango@image...>
  * label and caption sanity check is too conservative.

[1] https://github.com/ImageMagick/ImageMagick/blob/main/ChangeLog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants