[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#379510: gnome-cups-manager test page doesn't print



Package: cupsys
Version: 1.2.1-4

When I select Desktop->Administration->Printing from the Gnome desktop
menu, and then right click on my printer (hp_LaserJet_1320) and select
Properties, and then click on "Print a Test Page", no test page
prints.

The file it should be printing is
/usr/share/gnome-cups-manager/xd2-testpage-letter.eps

Trying that at the command line:

~$ lpr /usr/share/gnome-cups-manager/xd2-testpage-letter.eps
~$ tail -1 /var/log/cups/error_log
E [23/Jul/2006:18:25:29 -0400] PID 2183 
 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!

and it doesn't print.

This is version 0.31-1.1 of gnome-cups-manager.

My debugging efforts:

Setting "LogLevel debug" in /etc/cups/cupsd.conf, I see this in
/etc/cups/error_log:

... Started filter /usr/lib/cups/filter/pstops (PID 9369) for job 3399.
... Started filter /usr/lib/cups/filter/foomatic-rip
...
... [Job 3399] Error: /undefined in ESPwl

This tells me that the test page is being fed to pstops and
ghostscript is dying on the resulting code from pstops.

Setting "debug: 1" in /etc/foomatic/filter.conf, I get the input to
foomatic-rip (the output from pstops) in /tmp/foomatic-rip.ps.

ghostscript works on xd2-testpage-letter.eps, but fails on
foomatic-rip.ps with the same "/undefined in ESPwl" error.

Comparing foomatic-rip.ps to xd2-testpage-letter.eps, I see this:

      %%BeginResource: SDRes
      /b4_inc_state save def    % original test page code
      ...
      userdict/ESPwl{}bind put  % added by pstops
      %%EndSetup
      ...
      b4_inc_state restore      % original test page code
      %%PageTrailer
      gsave
      ESPwl                     % added by pstops

What is happening is that test page code saves the state, then pstops
code defines ESPwl, then test page code restores the state, which
causes ESPwl to be undefined again, then pstops code references ESPwl,
and ghostscript complains about it being undefined and dies, so the
job doesn't print.

I can work around the problem by commenting out the code "b4_inc_state
restore" in /usr/share/gnome-cups-manager/xd2-testpage-letter.eps

-- 
Russell O'Connor <roconnor2@tampabay.rr.com>





Reply to: