Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14967 - printed output is garbled when upgrading from gimp-print-cups 4.3.5 to 4.3.8-r1
Summary: printed output is garbled when upgrading from gimp-print-cups 4.3.5 to 4.3.8-r1
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-02 06:56 UTC by chris lindley
Modified: 2003-03-09 05:55 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chris lindley 2003-02-02 06:56:51 UTC
When printing to a win2000 connected Epson stylus colout 640 via samba and cups
printed output is garbled after upgrading from gimp-print-cups 4.3.5 to
4.3.8-r1.  The new printer driver has been selected via the cups web interface.

Downgrading to 4.3.5 solves the problem.

Reproducible: Always
Steps to Reproduce:
1. upgrade gimp-print-cups
2. change printer driver to reflect the upgrade
3.print to win2k connected Epson stylus colour 640 via samba and cups

Actual Results:  
printed output is garbled.

Expected Results:  
printed correctly!! :-)

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-ck2 i686 AMD Duron(tm) processor
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ libwww mikmod mpeg ncurse
s nls pdflib png qtmt quicktime spell xml2 xmms xv zlib gdbm berkdb slang readli
ne svga tcltk java guile X sdl gpm tcpd pam ssl python esd imlib oggvorbis gnome
 gtk qt motif opengl mozilla cdr 3dnow mmx truetype -alsa -arts bonobo dvd evo g
tkhtml -kde matrox pda perl pic samba wmf"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-s -march=athlon -O2 -pipe -fomit-frame-pointer -fexpensive-optimization
s -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -funroll-loops -m3
dnow -mmmx -ffast-math -fforce-addr"
CXXFLAGS="-s -march=athlon -O2 -pipe -fomit-frame-pointer -fexpensive-optimizati
ons -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -funroll-loops -
m3dnow -mmmx -ffast-math -fforce-addr"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Matt Taylor 2003-02-02 13:11:47 UTC
I printed to a epson stylus C60 connected directly to the parallel port and the output was all messed up.  It worked before upgrading gimp-print-cups, gimp-print, and cups.
Comment 2 DC 2003-02-06 20:28:59 UTC
I can confirm this problem also on an Epson Stylus Color 640, connected directly to the parallel port. Trying to print produces pages of strange symbols at different sizes. Downgrading to 4.3.5 fixes the problem. (Incidentally, does anyone else notice that 720 DPI mircoweave produces faint and fuzzy text in 4.3.5?)
Comment 3 Matthew Turk (RETIRED) gentoo-dev 2003-02-12 20:04:40 UTC
Same with Epson 80C. 
Comment 4 Diego Liziero 2003-03-03 11:29:27 UTC
Same with Epson Stylus Color 740, gimp-print-cups-4.3.8-r1, cups-1.1.18-r4
Comment 5 Thomas Raschbacher gentoo-dev 2003-03-07 10:55:22 UTC
please try gimp-print-cups-4.3.10 instead and if this doesn't work use gimp-print-4.2.5 (since gimp-print is stable branch and gimp-print-cups is devel branch)
Comment 6 Diego Liziero 2003-03-07 14:23:20 UTC
I don't know if this report is ok because I tried gimp-print-cups-4.3.10
without recompiling ghostscript.
I made a "ln -s /usr/lib/libgimpprint-4.3.10.so /usr/lib/libgimpprint-4.3.5.so"
to make the gs command work again (it was complaining
about the missing libgimpprint-4.3.5.so)

However the contents of the 2 temporary binary files
made by gs in /var/spool/cups/tmp/
are exactly the same with gimpprint-4.3.10 and with gimpprint-4.3.5
so I think that the missing recompilation of ghostscript
didn't change the result.

The result of this test is the same failure of gimp-print-cups-4.3.8-r1
the pages show the same garbage.

Now I'm back to the working 4.3.5.
Comment 7 Thomas Raschbacher gentoo-dev 2003-03-07 15:58:53 UTC
u should recompile gs too to find out if it works ..
Comment 8 Diego Liziero 2003-03-07 17:42:54 UTC
Second try, ghostscript doesn't compile anymore:
---
src/gdevstp.c:172: too few arguments to function `stp_get_media_size'
src/gdevstp.c:172: invalid use of void expression
src/gdevstp.c:259: invalid type argument of `->'
src/gdevstp.c:541: too many arguments to function `stp_set_printer_defaults'
src/gdevstp.c: In function `stp_open':
src/gdevstp.c:590: invalid type argument of `->'
src/gdevstp.c:593: invalid type argument of `->'
src/gdevstp.c:603: warning: implicit declaration of function `stp_set_orientation'
src/gdevstp.c:603: `ORIENT_PORTRAIT' undeclared (first use in this function)
src/gdevstp.c:603: (Each undeclared identifier is reported only once
src/gdevstp.c:603: for each function it appears in.)
src/gdevstp.c: In function `Image_get_row':
src/gdevstp.c:648: `STP_IMAGE_OK' undeclared (first use in this function)
make: *** [obj/gdevstp.o] Error 1
 
!!! ERROR: app-text/ghostscript-7.05.6 failed.
---

More info about the output sent to the printer:
I made a named pipe in /dev/lp0 and with the command
cat /dev/lp0 |tee output-epson-cups-ok |cat >>/dev/printers/0
I captured the output of the working gimp-print:

# od -N 144 -c output-epson-cups-ok
0000000 033   @ 033   (   R  \b  \0  \0   R   E   M   O   T   E   1   P
0000020   M 002  \0  \0  \0   S   N 003  \0  \0  \0 001 033  \0  \0  \0
0000040 033   (   G 001  \0 001 033   (   U 005  \0 004 004 004 240 005
0000060 033   (   K 002  \0  \0 002 033   (   i 001  \0  \0 033   U  \0
0000100 033   (   e 002  \0  \0 020 033   (   D 004  \0   @   8   x   (
0000120 033   (   C 004  \0   r 020  \0  \0 033   (   c 004  \0  \0  \0
0000140   E 020 033   (   S  \b  \0   E  \v  \0  \0   r 020  \0  \0 033
0000160   i  \0 001 002 322 002   0  \0 201 377 201 377 201 377 201 377
0000200 201 377 260 377  \0 300 201 377 201 377 201 377 201 377 201 377

and then the one of gimp-print-cups-4.3.10 for the same test page

# od -N 128 -c output-epson-cups-4.3.10
0000000 033   i  \0 001 002 322 002   0  \0 201 377 201 377 201 377 201
0000020 377 201 377 260 377  \0 300 201 377 201 377 201 377 201 377 201
0000040 377 260 377  \0 300 201 377 201 377 201 377 201 377 201 377 260
[..]

The two files are identical apart from the first 111 bytes that
are missing in the gimp-print-cups-4.3.10 broken output.

Maybe in the gimp-print mailing-list
someone can understand why the initial
control sequence for epson printers is not sent in
the new experimental versions.
Comment 9 Thomas Raschbacher gentoo-dev 2003-03-08 04:15:14 UTC
yeah .. doesn't look like an error i could have made ... i talked to the gimp people .. they said that maybe gs wasn't updated when they released new gimp-print-4.3.x ... -> gotta wait ... 

if u find something out please post here (i'll try the next release again when it's out ..)
Comment 10 Robert Krawitz 2003-03-08 19:49:47 UTC
Please copy gimp-print-devel@sourceforge.net on Gimp-print issues (don't cc the bugs to them, but do alert the gimp-print-devel list).

I'm curious what 
Comment 11 Thomas Raschbacher gentoo-dev 2003-03-09 05:54:31 UTC
i'll subscribe to both of them and try to keep up2date and tell them ok? ;)
Comment 12 Thomas Raschbacher gentoo-dev 2003-03-09 05:55:32 UTC
mark for later atm