Anti-aliased X display mode of Ghostscript does not work, in gv anti-aliasing needs to get turned off therefore
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
gv (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ghostscript
If gv is invoked on certain PDF files, a ghostscript crash occurs. However if pdf2ps is run on the offending PDF, the resulting postscript file -can- be displayed by gv.
Attached is an example PDF which works with acroread. When fed to gv, the following appears in a pink "Ghostscript messages" window:
Error: /rangecheck in --.discardtrans
Operand stack:
--dict:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop 1755 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- GPL Ghostscript 8.71: Unrecoverable error, exit code 1
2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:
Current allocation mode is local
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: ghostscript 8.71.dfsg.
ProcVersionSign
Uname: Linux 2.6.35-28-generic x86_64
Architecture: amd64
CupsErrorLog:
Date: Thu Mar 31 10:45:54 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
Lpstat:
device for hp-LaserJet-3030: hp:/usb/
device for hp-LaserJet-
MachineType: System manufacturer System Product Name
Papersize: letter
PpdFiles:
hp-LaserJet-3030: HP LaserJet 3030 - CUPS+Gutenprint v5.2.6 Simplified
hp-LaserJet-
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: ghostscript
dmi.bios.date: 03/08/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1303
dmi.board.
dmi.board.name: P6T
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
Changed in ghostscript (Ubuntu): | |
status: | New → Confirmed |
Changed in gv (Ubuntu): | |
status: | New → Triaged |
To work around the problem turn off "Antialias" in the "State" menu and the file will display immediately. To let gv permanently start with anti-aliasing turned off, choose "gv Options" in the "State" menu, turn off "Antialias" there, "Save" and "Dismiss".
You are hitting a general problem of recent Ghostscript versions. The anti-aliased X output (output device "x11alpha") is broken and most files do not display in this mode. The workaround for now is to use the non-anti-aliased "x11" standard output device. Therefore I have already changed the defaults in Ghostscript so that a simple "gs <file>" call uses "x11" and not "x11alpha".
I have added a task for "gv" for applying the workaround to the "gv" package so that it comes with anti-aliasing turned off by default.
The problem of the non-working "x11alpha" device is already reported upstream and I hope it will be fixed soon.