Bug#522417: ghostscript: Doesn't work with Brother printers

2011-04-09 Thread Jonathan Nieder
Hi,

Antonio Aguilar wrote:

> - Debian unstable (installed a week ago).
[...]
> - Brother HL-2030 - CUPS+Gutenprint v5.2.6 [en] driver
>
> When I try to print with my Brother Hl-2030 it doesn't work.

Even though this may well be the same bug, could you file it
separately so it can be unmerged if appropriate?  I guess the package
to file against would be cups or foomatic-db, since that is the
"front-end" whose maintainers would know what information to get and
what back-end to blame it on.

> I have
> tried with ghostscript from stable (8.71) and unstable (9.01). When
> I try the Mike Simons reproducer it outputs this:
>
> $ /usr/bin/gs -r1200 -g10200x13200 -q -dNOPROMPT \
>   -dNOPAUSE -dSAFER -sDEVICE=bit -sOutputFile=- - -c quit \
>   < /usr/share/cups/data/testprint | wc
> GPL Ghostscript 9.01: Unrecoverable error, exit code 1
>   8  56 630

If you get rid of the "| wc" then the result becomes more obvious:

| $ gs -r1200 -g10200x13200 -q -dNOPROMPT -dNOPAUSE -dSAFER -sDEVICE=bit \
|   -sOutputFile=- - -c quit < /usr/share/cups/data/testprint
| Error: /undefined in #CUPS-BANNER
| Operand stack:
| 
| Execution stack:
|%interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   
1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
[...]

In other words, the testprint file is not a postscript file.
Debugging would require the full relevant pipeline; see

 http://fedoraproject.org/wiki/Printing/Debugging#Finding_where_the_problem_lies

Looking at /usr/share/foomatic/db/source/printer/Brother-HL-2030.xml,
I see:

  B
  hl1250

> Finally I get working the printer using the foomatic drivers:
> Brother HL - 2030 Foomatic/hl1250

Ah, ok.  I suppose the failures happen with

  
gutenprint
  

My foomatic-db-fu is not so great, so the closest I could find is
/usr/share/foomatic/db/source/driver/gutenprint-ijs.5.2.xml which says

 
  
  gs -q -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=ijs 
-sIjsServer=ijsgutenprint.5.2 -dIjsUseOutputFD%A 
-sIjsParams="STP_VERSION=5.2.6,%B"%Z -sOutputFile=- -
 

i.e., device=ijs, not device=bit.

Changing "debug: 0" to "debug: 1" in /etc/foomatic/filter.conf and
looking at /tmp/foomatic-rip.log might be helpful.

> The CUPS  error's logs contains:
>
> E [09/Apr/2011:11:14:29 +0200] [Job 9] File
> '/System/Library/ColorSync/Profiles/sRGB Profile.icc' not found

This sounds interesting and worth reporting (or finding a similar
bug), too.  I don't know if it's related, either.

Thanks, and hope that helps.
Jonathan



-- 
To UNSUBSCRIBE, email to debian-printing-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110409211740.GA4496@elie



Bug#522417: ghostscript: Doesn't work with Brother printers

2011-04-09 Thread Jonas Smedegaard
On 11-04-09 at 12:04pm, Antonio Aguilar wrote:
> - Debian unstable (installed a week ago).
> - Kernel 2.6.32 (due to graphics drivers incompatible, for now, with
> 2.6.38).
> - Brother HL-2030 - CUPS+Gutenprint v5.2.6 [en] driver
> 
> When I try to print with my Brother Hl-2030 it doesn't work. I have
> tried with ghostscript from stable (8.71) and unstable (9.01). When
> I try the Mike Simons reproducer it outputs this:
> 
> aaguilar@MACHINE:~$ /usr/bin/gs -r1200 -g10200x13200 -q -dNOPROMPT
> -dNOPAUSE -dSAFER -sDEVICE=bit -sOutputFile=- - -c quit <
> /usr/share/cups/data/testprint | wc
> GPL Ghostscript 9.01: Unrecoverable error, exit code 1
>   8  56 630
> aaguilar@MACHINE:~$ /usr/bin/gs -r1200 -g10200x13200 -q -dNOPROMPT
> -dNOPAUSE -dSAFER -sDEVICE=bit -sOutputFile=- - -c quit <
> /usr/share/cups/data/testprint | wc
> GPL Ghostscript 8.71: Unrecoverable error, exit code 1
>   9  60 647
> 
> The CUPS  error's logs contains:
> 
> E [09/Apr/2011:11:14:29 +0200] [Job 9] File
> '/System/Library/ColorSync/Profiles/sRGB Profile.icc' not found
> 
> E [09/Apr/2011:11:15:21 +0200] [Job 10] File
> '/System/Library/ColorSync/Profiles/sRGB Profile.icc' not found
> 
> I don't know if this is relative to the problem.

It might be related: In recent Debian releases of Ghostscript I ripped 
the included icclib library but forgot to instead link against the 
shared system library instead as intended.  This should be fixed with 
Ghostscript 9.0.2~dfsg-1 just uploaded a moment ago.  Please test if 
that works.

That one is also a new upstream release, with bugfixes related to color 
calibration, so even if it works now and not earlier on it might still 
be a different bug than the icclib breakage that is the cause.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: Digital signature


Bug#522417: ghostscript: Doesn't work with Brother printers

2011-04-09 Thread Antonio Aguilar

Hello,

I have the same problem. My specs:

- Debian unstable (installed a week ago).
- Kernel 2.6.32 (due to graphics drivers incompatible, for now, with 
2.6.38).

- Brother HL-2030 - CUPS+Gutenprint v5.2.6 [en] driver

When I try to print with my Brother Hl-2030 it doesn't work. I have 
tried with ghostscript from stable (8.71) and unstable (9.01). When I 
try the Mike Simons reproducer it outputs this:


aaguilar@MACHINE:~$ /usr/bin/gs -r1200 -g10200x13200 -q -dNOPROMPT 
-dNOPAUSE -dSAFER -sDEVICE=bit -sOutputFile=- - -c quit < 
/usr/share/cups/data/testprint | wc

GPL Ghostscript 9.01: Unrecoverable error, exit code 1
  8  56 630
aaguilar@MACHINE:~$ /usr/bin/gs -r1200 -g10200x13200 -q -dNOPROMPT 
-dNOPAUSE -dSAFER -sDEVICE=bit -sOutputFile=- - -c quit < 
/usr/share/cups/data/testprint | wc

GPL Ghostscript 8.71: Unrecoverable error, exit code 1
  9  60 647

The CUPS  error's logs contains:

E [09/Apr/2011:11:14:29 +0200] [Job 9] File 
'/System/Library/ColorSync/Profiles/sRGB Profile.icc' not found


E [09/Apr/2011:11:15:21 +0200] [Job 10] File 
'/System/Library/ColorSync/Profiles/sRGB Profile.icc' not found


I don't know if this is relative to the problem.

Finally I get working the printer using the foomatic drivers: Brother HL 
- 2030 Foomatic/hl1250


Regards,

Antonio



--
To UNSUBSCRIBE, email to debian-printing-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4da02f3d.8030...@gmail.com