rastertoqpdl segfaults or produces black printouts

Bug #267903 reported by Günther Köckerandl
0
Affects Status Importance Assigned to Milestone
SpliX
Unknown
Unknown
splix (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: splix

Whenever I try to print anything on my Samsung ML-2510 the printout is either completely black or the printer doesn't print at all and the following messages appear in /var/log/cups/error_log:
E [08/Sep/2008:21:39:46 +0200] PID 14178 (/usr/lib/cups/filter/rastertoqpdl) crashed on signal 11!
E [08/Sep/2008:21:39:46 +0200] [Job 64] Can't write page 1 image
E [08/Sep/2008:21:39:46 +0200] PID 14177 (/usr/lib/cups/filter/pdftoraster) stopped with status 1!
E [08/Sep/2008:21:39:46 +0200] [Job 64] Job stopped due to filter errors.

Corresponding dmesg:
[ 8303.350635] rastertoqpdl[14181]: segfault at 7f163b12a000 ip 00007f163c6f3196 sp 0000000041b78e18 error 7 in libc-2.8.90.so[7f163c66e000+169000]

Using Samsung's Unified Linux Driver (see Samsung website), the printer works fine.

$ lsb_release -rd
Description: Ubuntu intrepid (development branch)
Release: 8.10

$uname -a
Linux box 2.6.27-2-generic #1 SMP Thu Aug 28 17:18:43 UTC 2008 x86_64 GNU/Linux

$ apt-cache policy splix
splix:
  Installed: 2.0.0~rc2-0ubuntu1
  Candidate: 2.0.0~rc2-0ubuntu1
  Version table:
 *** 2.0.0~rc2-0ubuntu1 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you generate a Backtrace as described on

https://wiki.ubuntu.com/DebuggingProgramCrash

and also post the file(s) which you have tried to print?

Changed in splix:
status: New → Incomplete
Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :

I'm sorry that the information provided so far ist too thin.

It seems that, if the print-job's media size differs from the printer's default media-size, rastertoqpdl segfaults.
My printer is set to A4 media, while all KDE programs use "Letter" by default. This probably has caused the crashes I observed earlier.
However, even if rastertoqpdl doesn't crash, the printouts still are completely black.

I've attached a small LaTeX document and the resulting input.ps/input.pdf files to demonstrate the problem. The document size is set to A4 media.
# ML-2510_(Ubuntu) is using Splix (rastertoqpdl):
# no crash/ black printout; see bug267903.tar.gz/target_media_a4/*
lp -d "ML-2510_(Ubuntu)" -o media=a4 input.ps

# segfault; see bug267903.tar.gz/target_media_letter/*
lp -d "ML-2510_(Ubuntu)" -o media=letter input.ps

As already mentioned, the Samsung-driver works fine in both cases. Unfortunatelly, I don't know how to efficiently debug a CUPS filter. I noticed, however, that everything seems to get piped through /usr/lib/cups/filter/pdftoraster before it is fed to rastertoqpdl. Therefore I've created a small wrapper script around pdftoraster which records command-line arguments, environment variables and the output from the "real" pdftoraster, which is then used as input to a "stand-alone" (i.e. not started by CUPS) rastertoqpdl with gdb or valgrind attached. If there is a better way to do this, please let me know.

The following debugging packages are installed:
cups-dbg libc6-dbg libcomerr2-dbg libgcc1-dbg libgcrypt11-dbg libgnutls26-dbg libgpg-error0-dbgsym libjpeg62-dbgsym libkeyutils1-dbgsym libkrb53-dbgsym libpng12-0-dbgsym libstdc++6-4.3-dbg libtasn1-3-dbg libtiff4-dbgsym splix-dbgsym zlib1g-dbg
Yet, gdb still complains about missing debugging symbols. I hope the backtraces help to isolate the problem nevertheless.

Please feel free to ask, if you need further information.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Thank you for all this info. I have informed the upstream author.

Can you do the following test, where the Ubuntu package is replaced by the distribution-indepenmdent LSB package:

dpkg -P splix
wget http://openprinting.org/download/printdriver/debian/dists/lsb3.2/main/binary-amd64/splix_2.0.0-0.rc2.0lsb3.2_amd64.deb
sudo apt-get install lsb
sudo dpkg -i splix_2.0.0-0.rc2.0lsb3.2_amd64.deb

Now remove your print queue and create a new one. Can you print now?

Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :

I've installed the LSB package; unfortunately, nothing has changed. Printing in Letter format causes a segfault while A4 produces a black page.
I've repeated the steps described in my last post and attached the results.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The black page is probably the same issue as described in bug 269691

Can you replace the file

/usr/lib/cups/filter/pdftoraster

by the file attached there (http://launchpadlibrarian.net/17900845/pdftoraster) and try again?

Does this solve the problem of the black page? Does it even resolve the problem of the crashing rastertoqpdl?

Changed in splix:
importance: Undecided → High
milestone: none → ubuntu-8.10-beta
Revision history for this message
Günther Köckerandl (gkoe-deactivatedaccount) wrote :

The supplied version of pdftoraster solves both problems: no black pages and rastertoqpdl doesn't crash. Thank you.
And sorry for getting you on the wrong track with rastertoqpdl.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

CUPS filter workaround solves this for the beta, moving milestone ...

Changed in splix:
milestone: ubuntu-8.10-beta → ubuntu-8.10
Revision history for this message
bwallum (rbw2) wrote :

I have a similar printer problem, the HP Foomatic drivers worked fine in Hardy but not in Intrepid
2.6.27-4-generic #1 SMP Wed Sep 24 01:30:51 UTC 2008 i686 GNU/Linux
HP 3600n Color laser Printer on LAN

HP Color Laserjet 3600 Foomatic/pxljr[en]
Does not print out test sheet properly omits Oubuntu header text and 100% Red, Yellow, Magenta colour blocks.

HP Color Laserjet 3600 Foomatic/hpijs[en]
Does not print out test sheet properly, omits Oubuntu header text (all colour blocks print ok)

BOTH:
When printing front page of news.bbc.co.uk prints out text but shows pics as black filled rectangles
Print Preview shows as expected.
Pagination and layout otherwise ok

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

bwallum, do you have a completely up-to-date Intrepid, especially with CUPS 1.3.8-11ubuntu1, pxljr 1.1-0ubuntu3, and HPLIP 2.8.7-0ubuntu3?

Revision history for this message
bwallum (rbw2) wrote :

"do you have a completely up-to-date Intrepid, especially with CUPS 1.3.8-11ubuntu1, pxljr 1.1-0ubuntu3, and HPLIP 2.8.7-0ubuntu3?"

Yes (as reported by Synaptic) and I have just updated the whole system.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

bwallum , both problems which you have reported are independent of this bug report. Please report new bugs in such a case.

The problem of the test page without Ubuntu logo and frames I have solved now. This will work correct again as soon as you get cups_1.3.8-11ubuntu2 with an update. I have uploaded this package now and it will be on the mirrors in some hours.

The problem of the color squares not being printed with the pxljr driver is an upstream bug of the driver. It is even independent of the PDF printing workflow. It happens the same way independent whether Ghostscript is fed with PDF or PostScript input. To work around it, print in "High" quality ("Printout Mode" option) or use the HPIJS driver.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

bwallum, news.bbc.co.uk prints correctly for me now (with the pxljr driver in "High" quality), used Firefox 2.x on a remote box). Probably the CUPS fix has covered this, too.

Revision history for this message
bwallum (rbw2) wrote :

Thanks Till, I will wait and see if the updates fix all my issues before raising a separate bug. Thanks for the time in responding, apologies for not filing the bug properly in the first place. Bye just now, Bob

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The SpliX crashes should not happen any more with the SpliX version which I have uploaded now.

The final fix of the CUPS package for the black pages will soon get uploaded, too.

Changed in splix:
status: Incomplete → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

New CUPS package is uploaded now. Please check whether you do not get black pages any more.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.