Bug 118111 - no printing from KDE applications
Summary: no printing from KDE applications
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: KDE (show other bugs)
Version: RC 1
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 19:55 UTC by Michael Stather
Modified: 2005-10-26 08:14 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
CUPS error log with loglevel "debug" (293.18 KB, application/octet-stream)
2005-10-25 16:38 UTC, Michael Stather
Details
new CUPS error log (290.77 KB, application/octet-stream)
2005-10-25 18:46 UTC, Michael Stather
Details
errorlog.o (1.00 MB, application/octet-stream)
2005-10-25 20:36 UTC, Michael Stather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-09-20 19:55:51 UTC
I´ve setup a printer (Epson C86 on USB) using YaST2.
When I test the printing within YaST2 it work fine, however when I want to print
from other apps like kwrite simply nothing happens.
Comment 1 Johannes Meixner 2005-09-21 07:50:48 UTC
Without any info from the logs there is nothing I can do.
Of course I can print from applications (in particular from kwrite).
Therefore you must provide sufficient information so that I
have a chance to find out what your problem is.
Comment 2 Michael Stather 2005-09-21 11:05:34 UTC
Yes, that´s no problem. I just don´t know (in case of KDE apps) what I should
send you since I don´t see any logs. Do you know a suitable app for that?
Comment 3 Johannes Meixner 2005-09-21 12:19:26 UTC
First test whether printing works from command line like
lp -d <queue> /etc/SuSE-release
which should print the Suse release plain text file
or for PostScript file printing use
lp -d <queue> /usr/share/doc/packages/ghostscript/examples/colorcir.ps
which should print the color ellipse.
Replace <queu> with the printer queue name.

If this doesn't work see
http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html
how to get CUPS log messages:
---------------------------------------------------------------
If problems are encountered:
1.
Set the "LogLevel debug" in /etc/cups/cupsd.conf.
2.
Stop cupsd.
3.
Move /var/log/cups/error_log* to another location (or delete it)
in order to avoid having to search through gigantic log files.
4.
Start cupsd.
5.
Retry the action leading to the problem.
6.
Now /var/log/cups/error_log contains many messages
that are useful for troubleshooting. 
---------------------------------------------------------------
Attach /var/log/cups/error_log as plain text file to this bug.

If printing from command line works, it is a KDE problem.
See "How to report a KDE bug" at
http://www.opensuse.org/Submit_a_bug
Comment 4 Michael Stather 2005-09-21 16:24:10 UTC
OK, printing from the commandline works fine as well as from GNOME.Unfortunately
the logfiles mentioned in "how to report a KDE bug" either don´t exist or don´t
contain something useful. 
In SuSE 9.3 printing worked well in KDE. And isn´t the KDE version the same as
in 9.3?
Is there anything I can further help with finding the cause since printing is
very important for me.
Comment 5 Johannes Meixner 2005-09-22 07:23:28 UTC
A workaround:
Switch in the KDE printing dialog (via [Options])
from "CUPS (Common Unix Print System)"
to "Print through an external program (generic)"
and enter as "Print command" something like
lp -d <queue>
or for example
xpp
(/usr/bin/xpp is another graphical printing frontend in the package xpp)
or
gtklp
or whatever external print command you prefer.
Comment 6 Michael Stather 2005-09-22 10:11:16 UTC
Yes this workaround works.
Is this a known bug or what can I do to help fixing it?
Comment 7 Michael Stather 2005-10-08 10:53:31 UTC
It´s still the same with 10.1 Alpha1.
Comment 8 Michael Stather 2005-10-19 21:01:19 UTC
Sorry if this is annoying, but I experience this now with 2 computers so I think this is not a very rare problem.
Printing is essential IMHO so could something be done about this?
Comment 9 Michael Stather 2005-10-19 21:53:17 UTC
I just saw that the KDE print management doesn´t show the printers I configured with YaST any more. Perhaps this should be solved first.
Comment 10 Stephan Kulow 2005-10-20 12:33:47 UTC
But they are shown from http://localhost:631/printers ? Does kdeprint show you to what it's connected to? As it works for so many others, something must be setup wrong. Perhaps a strace of kdeprint can reveal the problem.
Comment 11 Stephan Kulow 2005-10-20 12:34:11 UTC
sorry, replace kdeprint with kprinter above
Comment 12 Michael Stather 2005-10-20 12:57:28 UTC
OK is was wrong. I tried to use the workaround by Johannes Meisner and changed to "print through external program". But I didn´t find the "Print command" entry field. Where can I find it?
And still I´d help in finding the "real" problem.
Comment 13 Stephan Kulow 2005-10-20 13:03:44 UTC
still, kprinter is the tool you want to debug first.
Comment 14 Michael Stather 2005-10-20 13:07:27 UTC
OK, how sahould I start?
Comment 15 Stephan Kulow 2005-10-20 13:16:24 UTC
kprinter /etc/groups - see what error you get.
Comment 16 Michael Stather 2005-10-20 13:34:49 UTC
There´s no error, it was my fault.
I entered "lp -d stylusc86" as the print command and the workaround works now.
Comment 17 Michael Stather 2005-10-25 05:26:32 UTC
I just tested and there is also no printing from firefox using CUPS. It´s the same as with KDE just nothing is printed, I don´t get any error.
Comment 18 Stephan Kulow 2005-10-25 07:53:56 UTC
if it's the same with firefox, I guess it's time we give you to the experts that can ask expert questions
Comment 19 Johannes Meixner 2005-10-25 08:12:40 UTC
As "printing from the commandline works fine as well as from GNOME"
(se comment #4), it is no problem in CUPS.

I have neither an idea why it doesn't work from KDE (I am no KDE expert)
nor do I have an idea why firefox cannot print (I am no firefox expert)
nor do I know how to debug KDE and/or firefox.
I suggest the KDE experts debug the KDE part and a new bug report
is made regarding the firefox problem.

Michael,
please open a new bug report regarding your firefox printing problem.
Comment 20 Stephan Kulow 2005-10-25 09:40:28 UTC
well, firefox does not use the "KDE part"
Comment 21 Stephan Kulow 2005-10-25 09:41:05 UTC
back to #15
Comment 22 Michael Stather 2005-10-25 15:04:23 UTC
/etc/groups doesn´t exist on my system, so I tried to print /etc/group (I disabled the workaround and switched back to using CUPS).
I was asked about converting the data before printing, I poressed "convert" and kprinter displayed the progress dialog and then closed.
I could see this in the console:

michael@r098088:~> kprinter /etc/group
[ 1 pages * 1 copy ] left in /tmp/kde-michael/kdeprint_2HQHb4rz

When I didn´t convert the data this line didn´t appear, so kprinter didn´t return an error message or something. But there is no printing done :(
Comment 23 Johannes Meixner 2005-10-25 15:24:43 UTC
To log what CUPS does in this case, see
http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html
"If problems are encountered":

1.
Set the "LogLevel debug" in /etc/cups/cupsd.conf.
2.
Stop cupsd.
3.
Move /var/log/cups/error_log* to another location (or delete it)
in order to avoid having to search through gigantic log files
4.
Start cupsd.
5.
Retry the action leading to the problem.
6.
Now /var/log/cups/error_log* contains many messages
that are useful for troubleshooting. 

Directly after one single failed test print, copy the log like
cp /var/log/cups/error_log /tmp/cups.error_log
and then attach /tmp/cups.error_log to the bug as plain text attachment.
Comment 24 Michael Stather 2005-10-25 16:38:54 UTC
Created attachment 55342 [details]
CUPS error log with loglevel "debug"
Comment 25 Michael Stather 2005-10-25 16:39:19 UTC
I tried to print /etc/group and attached the CUPS log
Comment 26 Klaus Singvogel 2005-10-25 18:14:36 UTC
The logfile doesn't contain the relevant part. It's flooded with other stuff,
which looks like, that you enabled "debug2" instead of "debug"  in /etc/cups/cupsd.conf. :(

Please try again.

Do the following steps (1-4) as user "root", the rest can be done as any user.

1. stop your cups daemon
   rccups stop
2. edit /etc/cups/cupsd.conf
   LogLevel debug
3. remove old logfiles
   rm /var/log/cups/error_log
4. start cups daemon again
   rccups start
5. print file /etc/group
   kprinter /etc/group
6. Attache error_log to this bugzilla entry

Thanks in advance.
Comment 27 Michael Stather 2005-10-25 18:46:15 UTC
Created attachment 55360 [details]
new CUPS error log
Comment 28 Michael Stather 2005-10-25 18:46:43 UTC
I attached a new log. The loglevel was and is set to "debug", not "debug2"
Comment 29 Klaus Singvogel 2005-10-25 20:15:35 UTC
Thanks.

Sorry, but it looked very like "debug2" output.

Nevertheless, the logfile misses the relevant again. :-( 
You don't have a file named /var/log/cups/error_log.O at your host which you can attache here?
Comment 30 Michael Stather 2005-10-25 20:36:15 UTC
Created attachment 55372 [details]
errorlog.o
Comment 31 Michael Stather 2005-10-25 20:37:17 UTC
I attached the error_log.O.
Comment 32 Johannes Meixner 2005-10-26 06:29:26 UTC
Again the error_log is full of useless debug messages
I guess from the driver - unfortunately some drivers produce
much too much debug messages :-(
Which driver do you use?
(Simply attach the PPD file from /etc/cups/ppd/<queue>.ppd
 as plain text to this bug.)

Please try again with "LogLevel info" and please use
explicitely the mime type "text/plain" for the attachments
(otherwise it falls back to "application/octet-stream" which cannot
 be viewed directly in a browser - at least not in my Mozilla).
Comment 33 Michael Stather 2005-10-26 07:39:41 UTC
I was using the epson printer driver from www.avasys.co.jp (because there was no support for a C86 in SuSE).
I changed it to use a C84 (which is the US version) and it works from KDE too.
Strange that the native drivers work from your test program but not from KDE. So I think you can close this bug report. Or if you want to help me debugging this (because SuSE should support the native drivers) then I can test further.
Comment 34 Johannes Meixner 2005-10-26 08:08:18 UTC
I know that the printer driver(s) from www.avasys.co.jp
are <beeep> <beeep> <beeep> ...  because the printer drivers
are not working in compliance to CUPS.

In contrast the Iscan scanner driver from Epson Avasys 
(at least the actual driver i.e. the "epkowa" backend)
is working in full compliance to SANE.

For example see:
http://lists.alioth.debian.org/pipermail/sane-devel/2005-October/014988.html
-----------------------------------------------------------------------------
A few days ago I tested a proprietary printer driver from
a manufacturer for a low-level all-in-one device.
I set up a CUPS queue to print into a file but this nice
proprietary driver did't care how the queue was set up.
It simply spits out its printer specific binary stuff directly
on the first USB printer (a real good PostScript printer)
which printed tons of sheets with nonsense characters ;-)
-----------------------------------------------------------------------------

It is a valid bug for the Avasys driver
but it is INVLID for Suse Linux.
Comment 35 Johannes Meixner 2005-10-26 08:14:37 UTC
No, we cannot support such broken-by-design drivers, see
http://portal.suse.com/sdb/en/2003/11/jsmeix_print-info-for-manufacturers.html

We do not have the manpower to re-design such drivers
and we cannot do it in this particular case because crucial parts
of this driver software are not available as open source
(only as proprietary binary-only i386-only library).

Please send a bug report to the authors of this broken driver.

Regarding Firefox:
If it still doesn't print, please open a new bug report
and attach a CUPS error_log for one failed attempt.