Bug 48900

Summary: Print dialog hangs application
Product: [Unmaintained] kdeprint Reporter: Nicolas Laplante <nicolas.laplante>
Component: generalAssignee: Michael Goffioul <kdeprint_bugs>
Status: CLOSED WORKSFORME    
Severity: normal CC: admr_rat, jlayt, wilbert
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Laplante 2002-10-09 00:10:24 UTC
Version:            (using KDE KDE 3.0.8)
Installed from:    Gentoo Packages
Compiler:          gcc-3.2 -march=athlon-xp -mcpu=athlon-xp -O3
OS:          Linux

When trying to print a document in any app that use kdeprint, the print dialog hanges and is not fully painted. I can't choose any option nor close the application. I have to use xkill. The KDE print control center has the same problem, as soon as CUPS is chosen as the printing subsystem.

I'm using CUPS as the printing backend. 

BTW, in the bottom of the print dialog, there's a line which says: "Connected to localhost:631" and it sits there forever. I looked in the CUPS configuration and there are no access restrictions. I even deleted my ~/.kde/share/config/kdeprintrc but it didn't work. 

Printing a document (ie. lpr somefile.pdf) works from the command line.
Comment 1 Michael Goffioul 2002-10-09 13:25:57 UTC
*** Bug 48908 has been marked as a duplicate of this bug. ***
Comment 2 Michael Goffioul 2002-10-09 13:26:54 UTC
*** Bug 47692 has been marked as a duplicate of this bug. ***
Comment 3 Michael Goffioul 2002-10-09 13:30:47 UTC
Could you try to compile the following piece of C-code
(use "gcc -o ppd ppd.c -lcups"), and run it by giving a printer
name as argument. This little test program should try to
retrieve the printer driver of the given printer, like
KDEPrint is doing, and that might cause it to hang.
In a normal run, you should see on stdout a location
indicating where the driver has been downloaded.

Michael.

FILE: ppd.c
======================
#include <cups/cups.h>
#include <stdio.h>

int main( int argc, char **argv )
{
Comment 4 Nicolas Laplante 2002-10-09 17:22:06 UTC
Ok I got it working.      
      
First your ppd.c file resulted in this:      
      
[code]      
nlaplan@blacksnake c $ ./ppd lp     
filename: /var/tmp/3da4484c6af86     
     
Now let me tell you how I got it to work:     
     
First I tried to open the KDE print manager. It hanged, for like 5-6 minutes.     
I almost forgot it.     
     
Then it came up and I clicked on my printer's name (lp), 'Print manager' and   
then 'Configure manager';   
   
In the cups server tab, I saw something about a username and password. But  
since I'm not on a local network and CUPS is running on my localhost, I  
clicked on  "use anonymous access" . Since then, there's no wait time at all 
when trying to print and all applications seem to print well. 
 
 
     
     
     
Comment 5 Jiri Barton 2002-10-18 11:08:50 UTC
I had the same problem but the anonymous access solution didn't work for me. 
What did work was to add 
 
ServerName <my IP address> 
 
to the /etc/cups/cupsd.conf. 
 
My cfg is Mandrake cooker (i.e. gcc 3.2), KDE CVS 
Comment 6 John Layt 2008-12-31 12:27:57 UTC
Closing old Resolved status bug.