Samsung CLP-300 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Mac files, when printed to CUPS server, vanish with no error message [Debian unstable is not supported]
Posted by: myudkowsky ()
Date: March 26, 2008 08:24PM

I've just installed foo2qpdl for my CLP-300, and it's far superior to the Samsung drivers. The test printouts are crisp and clear.

I can print from the local server to my local server.

However, for some unknown reason my Mac (which can print without problems to a different CUPS server connected to a Canon inkjet) seems to be having trouble with this new server. The file from the Mac reaches the CUPS server but then stops on PostScript errors (as seen in the log file). I had this same problem with the Samsung unified drivers and then switched to foo2*, but the problem persists.

Furthermore, when there's an error on foo2*, the error does not result in a "stopped" job (as it did with the unified drivers and with splix). The job simply vanishes.

The log file informative and it seems that foo2qpdl-wrapper makes a pretty valiant effort to print the file. I won't include the entire file -- if someone needs it I can post it on postbin -- but it starts with:

D [26/Mar/2008:18:58:13 -0500] [Job 72] Reading PostScript input ...
D [26/Mar/2008:18:58:13 -0500] [Job 72] --> This document is DSC-conforming!
D [26/Mar/2008:18:58:13 -0500] [Job 72] Job claims to be DSC-conforming, but "%%BeginProlog" was missing before first line with another "%%Begin..." comment (is this a TeX/LaT
eX/dvips-generated PostScript file?). Assuming start of "Prolog" here.
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] -----------
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%BeginProlog
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%EndProlog
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] -----------
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%BeginSetup
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%BeginFeature: *Quality normal

This is eventually followed by some errors:
D [26/Mar/2008:18:58:13 -0500] [Job 72] -----------
D [26/Mar/2008:18:58:13 -0500] [Job 72] New page:  1 1
D [26/Mar/2008:18:58:13 -0500] [Job 72] Inserting option code into "PageSetup" section.
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%BeginPageSetup
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: %%EndPageSetup
D [26/Mar/2008:18:58:13 -0500] [Job 72] End of page header
D [26/Mar/2008:18:58:13 -0500] [Job 72] Stopping search for page header options
D [26/Mar/2008:18:58:13 -0500] [Job 72] Found: F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$F<_H$
D [26/Mar/2008:18:58:13 -0500] [Job 72] --> Output goes directly to the renderer now.
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] Starting renderer
D [26/Mar/2008:18:58:13 -0500] [Job 72] JCL: <job data> 
D [26/Mar/2008:18:58:13 -0500] [Job 72] 
D [26/Mar/2008:18:58:13 -0500] [Job 72] renderer PID kid4=29662
D [26/Mar/2008:18:58:13 -0500] [Job 72] renderer command: foo2qpdl-wrapper   -c -r600x600 -p0 -s1 -m0   -d1 -n1 -C10 -Gsamclp300-0.icm 
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] pcache: unable to open '~/.ghostscript/cache/gs_cache'
D [26/Mar/2008:18:58:14 -0500] [Job 72] GPL Ghostscript 8.62: Unrecoverable error, exit code 1
D [26/Mar/2008:18:58:14 -0500] [Job 72] cat: write error: Broken pipe
D [26/Mar/2008:18:58:14 -0500] [Job 72] sed: couldn't write 65 items to stdout: Broken pipe
D [26/Mar/2008:18:58:14 -0500] [Job 72] tail process done writing data to STDOUT
D [26/Mar/2008:18:58:14 -0500] [Job 72] KID4 finished
D [26/Mar/2008:18:58:14 -0500] [Job 72] Read 194 bytes of print data...
D [26/Mar/2008:18:58:14 -0500] [Job 72] KID3 finished
D [26/Mar/2008:18:58:14 -0500] Discarding unused printer-state-changed event...
D [26/Mar/2008:18:58:14 -0500] [Job 72] Wrote 194 bytes of print data...
D [26/Mar/2008:18:58:14 -0500] Discarding unused printer-state-changed event...
D [26/Mar/2008:18:58:14 -0500] [Job 72] Wrote 1 pages...
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%PageTrailer
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] PID 29654 (/usr/lib/cups/filter/pstops) exited with no errors.
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%Trailer
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%DocumentSuppliedResources:
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.

D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] PID 29654 (/usr/lib/cups/filter/pstops) exited with no errors.
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%Trailer
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%DocumentSuppliedResources:
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%Pages: 1
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%BoundingBox: 0 0 612 792
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Found: %%EOF
D [26/Mar/2008:18:58:14 -0500] [Job 72] --> Continue DSC parsing now.
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Closing renderer
D [26/Mar/2008:18:58:14 -0500] [Job 72] KID3 exited with status 0
D [26/Mar/2008:18:58:14 -0500] [Job 72] KID4 exited with status 0
D [26/Mar/2008:18:58:14 -0500] [Job 72] Renderer exit stat: 0
D [26/Mar/2008:18:58:14 -0500] [Job 72] Renderer process finished
D [26/Mar/2008:18:58:14 -0500] [Job 72] 
D [26/Mar/2008:18:58:14 -0500] [Job 72] Closing foomatic-rip.
D [26/Mar/2008:18:58:14 -0500] PID 29652 (/usr/lib/cups/filter/pdftops) exited with no errors.
D [26/Mar/2008:18:58:14 -0500] PID 29655 (/usr/lib/cups/filter/foomatic-rip) exited with no errors.
D [26/Mar/2008:18:58:14 -0500] PID 29657 (/usr/lib/cups/backend/usb) exited with no errors.
D [26/Mar/2008:18:58:14 -0500] [Job 72] File 0 is complete.
I [26/Mar/2008:18:58:14 -0500] [Job 72] Completed successfully.

And in fact CUPS lists this file, which never reached the printer, as having printed successfully.

I've tried running the file in /var/spool/cups through gs, using the options as given in the debug file, and it (eventually) segfaults!

I'm using Debian unstable, but even if I load Debian stable gs-eps I get the same problem.

To say the least this is quite puzzling. Does anyone have a solution to propose?



Edited 1 time(s). Last edit at 03/26/2008 09:13PM by rickrich.

Options: ReplyQuote
Re: Mac files, when printed to CUPS server, vanish with no error message
Posted by: rickrich ()
Date: March 26, 2008 09:12PM

Works here on Fedora 8 (32 and 64 bit)...
$ GSBIN=gs862 foo2qpdl-wrapper   -c -r600x600 -p0 -s1 -m0   -d1 -n1 -C10 -Gsamclp300-0.icm testpage.ps > xxx
$ ll xxx
-rw-rw-r-- 1 rick rick 304408 2008-03-26 20:05 xxx
Debian unstable is unsupported.

Options: ReplyQuote
Re: Mac files, when printed to CUPS server, vanish with no error message [Debian unstable is not supported]
Posted by: myudkowsky ()
Date: March 26, 2008 09:32PM

Thanks for your quick response!

Works in the wrapper here as well:

foo2qpdl-wrapper -c -r600x600 -p0 -s1 -m0 -d1 -n1 -C10 -Gsamclp300-0.icm output.ps > /tmp/xxx
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'
pcache: unable to open '/root/.ghostscript/cache/gs_cache'

# file /tmp/xxx
/tmp/xxx: HP Printer Job Language data

Which means... what? Why does GS fail in CUPS but not from the command line? (Note: I can't find a copy of the Mac output to test as PS input to the wrapper.)

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.