identify from imagemagick breaks with latest ghostscript 9.26

Bug #1806856 reported by Skully
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ghostscript (Ubuntu)
Confirmed
Undecided
Unassigned
imagemagick (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu 16.04.5 LTS
Release: 16.04

imagemagick:
  Installed: 8:6.8.9.9-7ubuntu5.13
  Candidate: 8:6.8.9.9-7ubuntu5.13

ghostscript:
  Installed: 9.26~dfsg+0-0ubuntu0.16.04.1
  Candidate: 9.26~dfsg+0-0ubuntu0.16.04.1

Following command gives trouble:

> identify -format '%wx%h,%[exif:orientation]' 'test.pdf[0]'

which results in

> identify: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT .....

The commands:
> identify -format '%wx%h,%[exif:orientation]' 'test.pdf'

and

> identify 'test.pdf[0]'

are working but not the combination of both.

After downgrading ghostscript to version 9.18 (9.18~dfsg~0-0ubuntu2), all commands are working again.

test.pdf is just some random pdf file on my filesystem.

See
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1806854

Tags: imagemagick
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please do not post identical bug reports for each package when you are not sure which package is the culprit. Please add tasks for each package in such a case, as I have done now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ghostscript (Ubuntu):
status: New → Confirmed
Changed in imagemagick (Ubuntu):
status: New → Confirmed
Revision history for this message
Skully (skully) wrote :

Hmm... have to revert that comment, restart on other machines did not do the trick. Only downgrade to 9.18 seems to work for now.

The complete error message is:

identify: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -dFirstPage=1 -dLastPage=1 "-sOutputFile=/tmp/magick-10621s1dvO7RspXlR%d" "-f/tmp/magick-10621b5cDfJLDPwtD" "-f/tmp/magick-10621kH6YeBIlijBp"' (-1) @ error/delegate.c/ExternalDelegateCommand/461.

Revision history for this message
Skully (skully) wrote :

> gs -q -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r72x72 -dFirstPage=1 -dLastPage=1
 sOutputFile=/tmp/test.png -f test.pdf

results in

   **** Error: Appearance dictionary (AP) lacks the mandatory normal (N) appearance.
               Output may be incorrect.
   **** Error: Appearance dictionary (AP) lacks the mandatory normal (N) appearance.
               Output may be incorrect.
Segmentation fault (core dumped)

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you, can you post an upstream bug report on https://bugs.ghostscript.com/ ? Please post a link to this report here, post your Ghostscript command line from comment #6, and after posting the upstream report, post a link to it into this bug report.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This seems to be the same as bug 1806517. Marking this bug as duplicate, no further upstream bug report needed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.