Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 341207 - app-text/ghostscript-gpl-9.00 corrupt printing with hplip printers
Summary: app-text/ghostscript-gpl-9.00 corrupt printing with hplip printers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Printing Team
URL: http://bugs.ghostscript.com/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-16 07:08 UTC by Andreas Proteus
Modified: 2011-03-24 09:42 UTC (History)
13 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Testcase for issue (testcase.tar.gz,57.23 KB, text/plain)
2011-02-19 22:27 UTC, Richard
Details
A scan of a print out of the testcase (printout.tiff,59.16 KB, text/plain)
2011-02-19 22:31 UTC, Richard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Proteus 2010-10-16 07:08:10 UTC
Printing anything (pdf, ps, txt etc) that it is more than one page long
from the second page onwards prints horizontal stripes of ever increasing density.

Rebuilding hplip and cups  makes no difference.
All versions hplip and cups available in portage are affected.

Going back to =app-text/ghostscript-gpl-8.71-r6 printing goes back to normal.

My printer is an Officejet J5700 ( I have no other printer to test it)

Reproducible: Always
Comment 1 drftcicfn 2010-10-17 11:56:03 UTC
Exactly the same problem and the same solution with Canon Pixma IP3000 (gutenprint drivers).
Here is my emerge --info and useflags:

$ emerge --info cups gutenprint ghostscript-gpl
Portage 2.2_rc96 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r10 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.35-gentoo-r10-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.1
Timestamp of tree: Sun, 17 Oct 2010 01:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo roslin science x11 Lokalne
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe -mmmx -m3dnow -msse -msse2 -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=k8-sse3 -O2 -pipe -mmmx -m3dnow -msse -msse2 -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ http://gentoo.telcom.net.ua/ http://gentoo.mneisen.org/"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/roslin /var/lib/layman/science /var/lib/layman/x11 /usr/local/portage/other"
SYNC="rsync://serw/gentoo-portage"
USE="3dnow 3dnowext a52 aac acl acpi alsa amd64 bindist branding bzip2 cairo cdr cli consolekit cracklib cuda cups custom-optimization cxx dbus djvu dri dvd dvdr emboss exif faad fam fbcon ffmpeg firefox foomaticdb fortran gdbm gif gphoto2 iconv java5 java6 jpeg kde lcms libnotify lzma lzo mad mikmod minimal mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses network nls nodrm nptl nptlonly nsplugin ntfs nvidia ogg opengl openmp optimization optimized-qmake pam pango pcre pdf perl png ppds pppd python3 qt3support qt4 readline reflection reiserfs sdl session sse sse2 sse3 ssl svg symlink sysfs syslog tcpd threads tiff truetype unicode usb vdpau vorbis x264 xcb xcomposite xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" NETBEANS_MODULES="apisupport harness ide java nb mobility enterprise profiler websvccommon ruby" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18 jruby" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-print/cups-1.4.4-r2 was built with the following:
USE="acl dbus gnutls java jpeg (multilib) pam perl png python samba threads tiff usb -X -debug -kerberos -ldap -php -slp -ssl -static-libs -xinetd" LINGUAS="pl -da -de -es -eu -fi -fr -id -it -ja -ko -nl -no -pt -pt_BR -ru -sv -zh -zh_TW"                                                                                                                          
net-print/gutenprint-5.2.5-r1 was built with the following:
USE="cups foomaticdb (multilib) ppds readline -gimp -gtk"
LDFLAGS="-Wl,-O1"

app-text/ghostscript-gpl-8.71-r6 was built with the following:
USE="cairo cups djvu (multilib) -X -bindist -gtk -jpeg2k" LINGUAS="-ja -ko -zh_CN -zh_TW"
Comment 2 Bertrand Piétu 2010-10-21 22:13:12 UTC
Same problem and same solution, here with hplip-3.10.9, cups-1.4.4 and Photosmart D5160.
emerge --info

Portage 2.1.9.20 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.12.1-r1, 2.6.35-gentoo-r11 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r11-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 21 Oct 2010 06:45:02 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es es_ES"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /var/lib/layman/bertri"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr berkdb branding bzip2 cairo cdda cddb cdr consolekit cracklib crypt cue cups cxx dbus desktopglobe device-mapper dirac dri dts dv dvb dvd dvdr ebook emboss encode exif extras faac fam ffmpeg firefox flac fontconfig fortran gdbm geoip gif gphoto2 gpm gsm gtk hal hddtemp iconv id3tag ipv6 java jingle jpeg kde kipi lame laptop lcms ldap libnotify lm_sensors lzma mad matroska midi mikmod mmx mmxext mng modules mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack ncurses networkmanager nls nptl nptlonly ogg ogm opengl openmp pam pango pdf perl plasma png ppds pppd pulseaudio python qt3support qt4 quicktime readline rss samba schroedinger sdl semantic-desktop spell srt sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs system-sqlite taglib tcpd templates theora thumbnail tiff truetype udev unicode usb v4l2 vaapi vdpau video vorbis vpx wavpack wicd x264 xcb xml xorg xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2 canon directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Dennis Schridde 2010-11-02 23:27:44 UTC
(In reply to comment #1)
> Exactly the same problem and the same solution with Canon Pixma IP3000
> (gutenprint drivers).
Confirming the problem for app-text/poppler-0.14.4, net-print/cups-1.4.4-r2, app-text/ghostscript-gpl-9.00, net-print/gutenprint-5.2.5-r1, net-print/foomatic-filters-4.0.4 . I tried remerging them all, to no effect.

Please update the Summary to something like "app-text/ghostscript-gpl-9.00: Currupt printing - horizontal stripes after 1st page", since the symptom seems always the same and it is valid for more than just HP printers.
Comment 4 Dennis Schridde 2010-11-02 23:31:36 UTC
P.S: More info on what these stripes look like: It seems as if parts of the page are printed over and over again while the printer-head moves forward. Similar to what transparency or skybox issues look like in 3D games.
Comment 5 Dennis Schridde 2010-11-03 08:31:18 UTC
Upstream the bug is tracked at http://bugs.ghostscript.com/show_bug.cgi?id=691733
Please set the URL of this bug accordingly.
Comment 6 Andrew Savchenko gentoo-dev 2010-12-03 21:55:36 UTC
The same problem with ghostscript-gpl-9.00, hplip-3.10.9, cups-1.4.4-r2.
And I have found one more related problem: on *some* images colors are inverted after printing. Good example is cups test page: cups banner logo became inverted.

$ emerge --info
Portage 2.2.0_alpha5 (default/linux/x86/10.0, gcc-4.5.1, glibc-2.12.1-r3, 2.6.35.7-yoruichi i686)
=================================================================
System uname: Linux-2.6.35.7-yoruichi-i686-AMD_Athlon-tm-_XP_3200+-with-gentoo-2.0.1
Timestamp of tree: Fri, 03 Dec 2010 21:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 3.1.2 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r2
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/ccache:     3.1.2
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.4
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.3.6-r1, 4.4.5, 4.5.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo science java-overlay sunrise bircoph local
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -mstackrealign -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -fexcess-precision=fast -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -mstackrealign -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -fexcess-precision=fast -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps y"
FEATURES="assume-digests binpkg-logs candy ccache collision-protect distcc distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -mstackrealign -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -fexcess-precision=fast -pipe"
GENTOO_MIRRORS=" ftp://orionis/distributions/1Linux/gentoo/portage ftp://10.51.13.199/public/gentoo http://mirror.yandex.ru/gentoo-distfiles  ftp://ftp.corbina.net/pub/Linux/gentoo http://distfiles.gentoo.org http://mirror.netcologne.de/gentoo"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-march=athlon-xp -m32 --param l1-cache-line-size=64 --param l1-cache-size=64 --param l2-cache-size=512 -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -mstackrealign -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -ftree-loop-distribution -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -fexcess-precision=fast -pipe -Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en ja"
MAKEOPTS="-j4 --load-average=5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/java-overlay /var/lib/layman/sunrise /var/lib/layman/bircoph /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi adns afs aften aim aio alsa amr amrnb amrwb ao artworkextra audiofile bash-completion bcmath bidi binfilter blas bluetooth branding bzip2 cairo calendar caps ccache cddb cdinstall cdparanoia cdr chasen chm cjk cleartype cli clisp colordiff cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx cyrillic dbus device-mapper dga dhcp dia dirac directfb djvu dmx doc dri dts dv dvd dvdr dvdread dvi ebook editor elf emf enca encode enscript ermt examples exif expat faac faad fbcon festival ffmpeg fftw firefox flac flash fontconfig foomaticdb fortran fpx freetds freetype frei0r ftp gcj gcrypt gd gdbm geoip ggi gif gimp ginac git glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm gps graphite graphviz gs gsl gsm gtk gucharmap h224 h281 h323 hdf5 hdri iconv icq icu id3tag idn imagemagick imap imlib immqt-bc inkjar ipod iproute2 ipv6 jabber jack jadetex java6 javascript jbig jingle jpeg jpeg2k kdehiddenvisibility kerberos keyscrub kpathsea kqemu ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate libwww lm_sensors logrotate lto lzma lzo mad maildir mailwrapper matroska md5sum mhash mikmod mime mjpeg mmap mmx mng modplug modules mp3 mpeg mplayer msn mudflap musepack musicbrainz mysql mysqli nas ncurses netcdf network network-cron nls nntp nocd nodrm nptlonly nsplugin nuv objc objc++ offensive ogg openal opencore-amr openexr opengl optimized-qmake oscar otr pam pango pcntl pcre pdf perl pgf plotutils png pop portaudio posix postproc postscript ppds pppd pronounce pstricks qt3support qt4 quicktime raw rdesktop readline recode restrict-javascript rfc3779 rle rrdtool samba scanner schroedinger sdl session sharedmem shorten sip sipim slang slp smi smime sms smtp sndfile sockets socks5 soundtouch sox sparse speex spell sqlite sqlite3 srtp sse ssl startup-notification strong-optimization subversion supernodal svg svga sysfs syslog szip t1lib taglib tcpd theora tiff timezone timidity tordns truetype twolame type3 unicode usb utempter utils v4l v4l2 vamp vcd videos vim vim-syntax vnc vorbis wav wavpack wifi win32codecs wireshark wmf x264 x86 xattr xcb xface xft xinerama xml xorg xosd xpm xprint xrandr xscreensaver xv xvid yahoo yaz ziffy zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en ja" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Oldrich Jedlicka 2011-01-19 20:10:48 UTC
(In reply to comment #6)
> The same problem with ghostscript-gpl-9.00, hplip-3.10.9, cups-1.4.4-r2.
> And I have found one more related problem: on *some* images colors are inverted
> after printing. Good example is cups test page: cups banner logo became
> inverted.

There are definitely problems in ghostscript-gpl-9.00 itself. I've tried trunk and things got better, but still the image was somehow "inverted". That was caused by the arithmetic overflow when converting RGBW (RGBK) data to plain RGB. I have a patch that makes printing work with latest ghostscipt trunk (see https://bugs.launchpad.net/bugs/695962), but the colors are not so good as with previous ghostscript versions. I think the color model still has some problems.

I've checked the patches used for ghostscript-gpl and they are taken from Fedora. Fedora is currently using some additional ICC/color model fixes, so it would be worth trying them too. But I think my patch for hplip is needed to have at least some printing.
Comment 8 Pacho Ramos gentoo-dev 2011-01-19 20:21:15 UTC
In my case I needed to downgrade to 8.71-r6 as djvu files started to be printed with wrong colors, but not sure if it's related with all these problems (well, I need to find a djvu file with colors and shareable)
Comment 9 Oldrich Jedlicka 2011-01-19 21:10:40 UTC
The color problem is different to the originally reported problem here. Anyway, if you anybody wants to check if he has the same problem as me, he can check the launchpad bug - I scanned and attached print-outs with wrong colors from my printer. There are scans of original problem with ghostscript-gpl 9.0, version from trunk and version from trunk plus patched hplip.
Comment 10 Richard 2011-01-30 12:38:53 UTC
This issue has been a pain on my system since October. I have wasted a huge amount of toner and a significant amount of paper trying to determine the cause. I imagine other people are having issues too, because a bug in ghostscript-gpl is not an obvious cause.

Is there any chance that app-text/ghostscript-gpl-9.00 could be masked until it is fixed?
Comment 11 Dennis Schridde 2011-01-30 17:51:03 UTC
(In reply to comment #10)
> Is there any chance that app-text/ghostscript-gpl-9.00 could be masked until it
> is fixed?
+1 - I masked it myself already, locally
Comment 12 Andrew Savchenko gentoo-dev 2011-01-30 18:34:16 UTC
(In reply to comment #11)
> +1 - I masked it myself already, locally
+many

If this bug is for hplip only, why not to add an appropriate dependency for hplip. But I'm afraid this ghostscript version may fail on other processing as well.
Comment 13 Richard 2011-01-30 19:43:26 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > +1 - I masked it myself already, locally
> +many
> 
> If this bug is for hplip only, why not to add an appropriate dependency for
> hplip. But I'm afraid this ghostscript version may fail on other processing as
> well.
> 

I do not think you can mask a package based on what packages you have installed. You could probably do a BLOCKER, but that would likely confuse people.

Also, I suspect that hplip is not the only thing affected too, although I don't know enough about ghostscript to test that theory.
Comment 14 Oldrich Jedlicka 2011-01-30 20:20:07 UTC
The "overflow" in color model is in ghostscript, so any printer driver using raster from ghostscript's cups driver cannot fix that by itself to get correct colors out of it. I haven't had time to investigate the problem with the ghostscript team yet, so feel free to create a bug on ghostscript site (I will add my details or I hopefully get to create it in the following week).
Comment 15 Dennis Schridde 2011-01-30 21:15:32 UTC
(In reply to comment #14)
> feel free to create a bug on ghostscript site
Please do not, as it exists already and GS even claims it is fixed. See URL field of this bug.
Comment 16 Richard 2011-01-30 22:00:38 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > feel free to create a bug on ghostscript site
> Please do not, as it exists already and GS even claims it is fixed. See URL
> field of this bug.
> 

Comment #7 here suggests that is not the case. Anyway, upstream claims that this is fixed in the ghostscript trunk, not ghostscript 9.00. As far as what the upstream bug report says, ghostscript 9.00 is definitely affected.
Comment 17 Richard 2011-01-30 22:01:52 UTC
I misread comment #15. I thought tge author was against masking ghostscript 9.00. Nevermind.
Comment 18 Oldrich Jedlicka 2011-01-30 22:17:45 UTC
(In reply to comment #15)
> (In reply to comment #14)
> > feel free to create a bug on ghostscript site
> Please do not, as it exists already and GS even claims it is fixed. See URL
> field of this bug.

I tried it something around 15 days ago with trunk and it was definitely not fixed. Anyway, I will try it again and see the result. If there is color model arithmetic overflow, I will report it.

The version 9.00 had broken colors on images while trunk 15 days ago had broken color model as I said. I've developped a tool to extract BMP from the raster to verify my findings.
Comment 19 Andrew Savchenko gentoo-dev 2011-01-31 02:17:42 UTC
(In reply to comment #13)
> I do not think you can mask a package based on what packages you have
> installed. You could probably do a BLOCKER, but that would likely confuse
> people.

Uh, sorry, I meant blocker of course. Or at least some warning for buggy ghostscript versions badly affecting hplip. This will save some time and grey hair for people.

Comment 20 Richard 2011-01-31 08:22:59 UTC
(In reply to comment #19)
> (In reply to comment #13)
> > I do not think you can mask a package based on what packages you have
> > installed. You could probably do a BLOCKER, but that would likely confuse
> > people.
> 
> Uh, sorry, I meant blocker of course. Or at least some warning for buggy
> ghostscript versions badly affecting hplip. This will save some time and grey
> hair for people.
> 

The only version with the issue is =app-text/ghostscript-gpl-9.00 and it is not clear that hplip is the only thing that is affected. Anything that uses ghostscript in the same way as hplip should be affected too and it is not possible to add blockers for that. People who are unaffected can simply add =app-text/ghostscript-gpl-9.00 to package.unmask.
Comment 21 Alec Meyers 2011-01-31 15:38:06 UTC
I can confirm that I get wrong output with other printers (Brother with foomaticdb and an old HP though gutenprint) although the badness varies. On the Brother, I get a light-grey background in places where it should be white.

The HPLIP is the worst because when I last printed, instead of printing a black-and-white graphviz diagram, it covered the whole page with dark brownish-maroon.
Comment 22 Oldrich Jedlicka 2011-02-01 20:22:23 UTC
I've created bug for the slightly wrong RGBW colors (arithmetic overflow) for ghostscript:

  http://bugs.ghostscript.com/show_bug.cgi?id=691922
Comment 23 Timo Gurr (RETIRED) gentoo-dev 2011-02-01 21:00:40 UTC
I've just committed app-text/ghostscript-gpl-9.00-r1 which incorporates the patches from the upstream bug so the initial problem should be fixed.

(In reply to comment #22)
> I've created bug for the slightly wrong RGBW colors (arithmetic overflow) for
> ghostscript:
> 
>   http://bugs.ghostscript.com/show_bug.cgi?id=691922

Huge thanks for investigating and creating an upstream bug for the remaining issue, could you please also file a separate bug on our bugzilla so we can close this one as fixed?
Comment 24 Oldrich Jedlicka 2011-02-01 21:25:47 UTC
(In reply to comment #23)
> I've just committed app-text/ghostscript-gpl-9.00-r1 which incorporates the
> patches from the upstream bug so the initial problem should be fixed.
> 
> (In reply to comment #22)
> > I've created bug for the slightly wrong RGBW colors (arithmetic overflow) for
> > ghostscript:
> > 
> >   http://bugs.ghostscript.com/show_bug.cgi?id=691922
> 
> Huge thanks for investigating and creating an upstream bug for the remaining
> issue, could you please also file a separate bug on our bugzilla so we can
> close this one as fixed?
> 

My color model problem is now hosted at

  http://bugs.gentoo.org/show_bug.cgi?id=353454

:-)
Comment 25 Timo Gurr (RETIRED) gentoo-dev 2011-02-01 21:41:59 UTC
(In reply to comment #24)
> My color model problem is now hosted at
> http://bugs.gentoo.org/show_bug.cgi?id=353454

Thanks! Closing this one as fixed.
Comment 26 Richard 2011-02-18 22:30:29 UTC
(In reply to comment #25)
> (In reply to comment #24)
> > My color model problem is now hosted at
> > http://bugs.gentoo.org/show_bug.cgi?id=353454
> 
> Thanks! Closing this one as fixed.
> 

I have an HP 1018 LaserJet Printer with =app-text/ghostscript-gpl-9.00-r1 and =net-print/hplip-3.11.1-r2. I am running Gentoo on ~amd64. I tried printing a newegg order invoice today. The newegg logo and hyperlink text printed, but all of the plaintext (bold or otherwise) was missing. I downgraded to app-text/ghostscript-gpl-8.71-r6 and it printed without a problem.

It appears that the original issue (i.e. corrupt printing with hplip printers) was not resolved. Should I file a new ticket for this or should this ticket be reopened?
Comment 27 Dennis Schridde 2011-02-19 08:01:02 UTC
(In reply to comment #26)
> I have an HP 1018 LaserJet Printer with =app-text/ghostscript-gpl-9.00-r1 and
> =net-print/hplip-3.11.1-r2. I am running Gentoo on ~amd64. I tried printing a
> newegg order invoice today. The newegg logo and hyperlink text printed, but all
> of the plaintext (bold or otherwise) was missing. I downgraded to
> app-text/ghostscript-gpl-8.71-r6 and it printed without a problem.
> 
> It appears that the original issue (i.e. corrupt printing with hplip printers)
> was not resolved. Should I file a new ticket for this or should this ticket be
> reopened?
I think I already reported that issue upstream at http://bugs.ghostscript.com/show_bug.cgi?id=691961
Comment 28 Oldrich Jedlicka 2011-02-19 08:55:58 UTC
(In reply to comment #27)
> (In reply to comment #26)
> > I have an HP 1018 LaserJet Printer with =app-text/ghostscript-gpl-9.00-r1 and
> > =net-print/hplip-3.11.1-r2. I am running Gentoo on ~amd64. I tried printing a
> > newegg order invoice today. The newegg logo and hyperlink text printed, but all
> > of the plaintext (bold or otherwise) was missing. I downgraded to
> > app-text/ghostscript-gpl-8.71-r6 and it printed without a problem.
> > 
> > It appears that the original issue (i.e. corrupt printing with hplip printers)
> > was not resolved. Should I file a new ticket for this or should this ticket be
> > reopened?
> I think I already reported that issue upstream at
> http://bugs.ghostscript.com/show_bug.cgi?id=691961

The bug is closed as WORKSFORME, but from the reports it looks like there doesn't exist any fix for the issue (which doesn't seem to work for anybody). It only shows the workaround to print to PS first. I had done some investigation with CUPS filters already, so I can help in this area. I will offer the help in the bug.
Comment 29 Dennis Schridde 2011-02-19 19:16:16 UTC
(In reply to comment #28)
> (In reply to comment #27)
> > (In reply to comment #26)
> > > I have an HP 1018 LaserJet Printer with =app-text/ghostscript-gpl-9.00-r1 and
> > > =net-print/hplip-3.11.1-r2. I am running Gentoo on ~amd64. I tried printing a
> > > newegg order invoice today. The newegg logo and hyperlink text printed, but all
> > > of the plaintext (bold or otherwise) was missing. I downgraded to
> > > app-text/ghostscript-gpl-8.71-r6 and it printed without a problem.
> > > 
> > > It appears that the original issue (i.e. corrupt printing with hplip printers)
> > > was not resolved. Should I file a new ticket for this or should this ticket be
> > > reopened?
> > I think I already reported that issue upstream at
> > http://bugs.ghostscript.com/show_bug.cgi?id=691961
> 
> The bug is closed as WORKSFORME, but from the reports it looks like there
> doesn't exist any fix for the issue (which doesn't seem to work for anybody).
Yes, GS folk couldn't reproduce the issue, and it worked for me when going the detour through PS, so I assumed it was not an issue with GS itself, but maybe with CUPS instead.
If you can reproduce this bug, too, depending on the GS version, that changes the facts significantly, though. Maybe that fact should be noted in the report over at GS bugzilla.
Comment 30 Richard 2011-02-19 19:24:16 UTC
I can reproduce this on my system very easily by trying to print newegg.com invoices. I suspect that the issue has something to do with the specific font that newegg uses for their invoices, but I have not done extensive testing to be certain.

I was going through a backlog of rebate applications yesterday, so I had to print all sorts of things. I recall seeing graphical corruption (white spots) in a barcode that was printed on one of the rebate forms. I wasted a dozen pieces of paper trying to print things until I thought of trying to go back to the older version of ghostscript-gpl. None of these issues appear with it.

Unfortunately, I do not have an account at upstream to post about this. Could someone pass on my report to them?
Comment 31 Dennis Schridde 2011-02-19 22:04:00 UTC
(In reply to comment #30)
> Unfortunately, I do not have an account at upstream to post about this. Could
> someone pass on my report to them?
They will very likely want more information, i.e. at least a testcase. If you can produce a PDF or PS file that shows the problem, that would be the first step.
Comment 32 Richard 2011-02-19 22:27:52 UTC
Created attachment 263095 [details]
Testcase for issue

(In reply to comment #31)
> (In reply to comment #30)
> > Unfortunately, I do not have an account at upstream to post about this. Could
> > someone pass on my report to them?
> They will very likely want more information, i.e. at least a testcase. If you
> can produce a PDF or PS file that shows the problem, that would be the first
> step.
> 

I saved one of my invoices to a HTML file and sanitized it. Upon printing the sanitized file from Chromium with =app-text/ghostscript-gpl-9.00-r1, most of the text is missing.

I have attached the testcase.
Comment 33 Richard 2011-02-19 22:31:33 UTC
Created attachment 263097 [details]
A scan of a print out of the testcase

Here is a scan of what this looks printed.

This was printed by a HP Laserjet 1018 printer. I am running ~amd64 with the test updates. The important information is probably that I have app-text/ghostscript-gpl-9.00-r1, net-print/cups-1.4.6 and net-print/hplip-3.11.1-r2 installed.
Comment 34 Richard 2011-02-19 22:34:10 UTC
I had meant to say that I am running Gentoo ~amd64 with the latest updates. I seem to have unwittingly omitted two characters.
Comment 35 Oldrich Jedlicka 2011-02-19 22:59:13 UTC
(In reply to comment #30)
> Unfortunately, I do not have an account at upstream to post about this. Could
> someone pass on my report to them?

This isn't a closed reporting system, I've created my account on 31st of January 2011 just to tell them about my problems. You can do it at
  http://bugs.ghostscript.com/createaccount.cgi
Comment 36 Richard 2011-02-19 23:10:36 UTC
(In reply to comment #35)
> (In reply to comment #30)
> > Unfortunately, I do not have an account at upstream to post about this. Could
> > someone pass on my report to them?
> 
> This isn't a closed reporting system, I've created my account on 31st of
> January 2011 just to tell them about my problems. You can do it at
>   http://bugs.ghostscript.com/createaccount.cgi
> 

Each project has its own bug tracker, so when you discover bugs in many system components, it becomes somewhat troublesome to keep opening new accounts to report bugs. With that said, I have opened an upstream bug report:

http://bugs.ghostscript.com/show_bug.cgi?id=691985

It might be a good idea to reopen this bug until this issue is fixed. I also suggest masking app-text/ghostscript-gpl-9.00 and app-text/ghostscript-gpl-9.00-r1 in portage until this is resolved.
Comment 37 Oldrich Jedlicka 2011-02-19 23:18:54 UTC
(In reply to comment #36)
> (In reply to comment #35)
> > (In reply to comment #30)
> > > Unfortunately, I do not have an account at upstream to post about this. Could
> > > someone pass on my report to them?
> > 
> > This isn't a closed reporting system, I've created my account on 31st of
> > January 2011 just to tell them about my problems. You can do it at
> >   http://bugs.ghostscript.com/createaccount.cgi
> > 
> 
> Each project has its own bug tracker, so when you discover bugs in many system
> components, it becomes somewhat troublesome to keep opening new accounts to
> report bugs. With that said, I have opened an upstream bug report:
> 
> http://bugs.ghostscript.com/show_bug.cgi?id=691985
> 
> It might be a good idea to reopen this bug until this issue is fixed. I also
> suggest masking app-text/ghostscript-gpl-9.00 and
> app-text/ghostscript-gpl-9.00-r1 in portage until this is resolved.

You might be interrested in my description added to original bug (referenced from the URL field in this bug report):

  http://bugs.ghostscript.com/show_bug.cgi?id=691733

Anyway, opening another bug for the same thing isn't good (developpers don't like it, because finding the duplicate isn't always a straightforward task), it is sufficient to "REOPEN" the existing one. Your new one might be marked as a duplicate of the old one.
Comment 38 Oldrich Jedlicka 2011-02-19 23:23:24 UTC
Sorry, I wanted to mention bug http://bugs.ghostscript.com/show_bug.cgi?id=691961 referenced in comment #27, so not the one in the URL field. I've added a shell script to identify the ghostscript arguments there.
Comment 39 Richard 2011-02-19 23:46:07 UTC
(In reply to comment #38)
> Sorry, I wanted to mention bug
> http://bugs.ghostscript.com/show_bug.cgi?id=691961 referenced in comment #27,
> so not the one in the URL field. I've added a shell script to identify the
> ghostscript arguments there.
> 

This is why I wanted someone else to handle communicating with the upstream developers. Anyway, since it was your idea for me to report this to upstream, I think it would be appropriate if you told upstream about the duplicate.
Comment 40 Oldrich Jedlicka 2011-02-20 00:04:26 UTC
(In reply to comment #39)
> (In reply to comment #38)
> > Sorry, I wanted to mention bug
> > http://bugs.ghostscript.com/show_bug.cgi?id=691961 referenced in comment #27,
> > so not the one in the URL field. I've added a shell script to identify the
> > ghostscript arguments there.
> > 
> 
> This is why I wanted someone else to handle communicating with the upstream
> developers. Anyway, since it was your idea for me to report this to upstream, I
> think it would be appropriate if you told upstream about the duplicate.

Done.

BTW, my idea was to register there, not to create duplicates ;-) This was only misunderstanding, but nothing big happened.