View previous topic :: View next topic |
Author |
Message |
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Mon Sep 09, 2002 11:35 am Post subject: KDE print dialog freezes for minutes (I use cups) |
|
|
Hi, my printer management dialog (in kcontrol) hangs many minutes while fetching printer data from cupsd. After that it spits out: Code: | kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3/lib/libkdecore.so.4: undefined symbol: init_kcm_printmgr
kdecore (KLibLoader): WARNING: KLibrary: The library kcm_printmgr does not offer an init_kcm_printmgr function
ASSERT: "!name.isEmpty()" in kinstance.cpp (55)
QToolBar::QToolBar main window cannot be 0. | Also the kprinter dialog freezes always for a long time.
Then when I click 'Print' a job gets sent to the printer, which prints ok (almost) but again the dialog stops redrawing/responding for many minutes.
Sometimes I get also X errors.
The problem seems te be related with cups, but cups works ok from the web interface and commandline.
I "USE" cups 1.1.15 and kde 3.0.3
any ideas?
(I got so many problems with cups and my deskjet 400, that I almost go back to lprng and apsfilter) |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Mon Sep 09, 2002 3:14 pm Post subject: |
|
|
Here it is working OK. Check that you have your hostname in /etc/hosts.
You can also try emerging kdelibs and kdebase again.
As for dj400, I had no special problems with it, and it worked out of the box. _________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Mon Sep 09, 2002 7:57 pm Post subject: |
|
|
mksoft wrote: | Check that you have your hostname in /etc/hosts. | Trying! .... it works!!!! GREAT, thanks! My /etc/hosts was somewhat garbled with wrong ethnet names (thought they didn't matter) but now it works!
Thanks again! |
|
Back to top |
|
|
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Mon Sep 09, 2002 9:45 pm Post subject: |
|
|
Well, strange enough kprinter et al work ok when I'm offline (i have a pppd dial-up account) but not when I'm online.
Could it be that I have a not-officially-existent fqdn in /etc/hostname?
My /etc/hosts: Code: | 127.0.0.1 localhost
192.168.0.1 obelix.wbsoft.nl obelix
192.168.0.2 nognix | Should I remove the .wbsoft.nl (which does not really exist on the internet) from /etc/hostname, /etc/hosts of both ?
Any hints would be appreciated |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Mon Sep 09, 2002 9:54 pm Post subject: |
|
|
Why not just try and see what happens _________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Tue Sep 10, 2002 9:15 am Post subject: |
|
|
Well, no matter what I try (removing access permissions from /etc/cups/cupsd.conf, removing ~/.kde/share/config/kreprintrc etc), kprinter dialog comes up fine, and shows the default cups printer, but clicking 'Properties' causes the dialog to hang for 3 to 5 minutes. Then the properties dialog appears finally, with the correct options.
Also the kcontrol printmgr hangs as soon as I select the printer from the list. That one hangs infinitely.
The cups webinterface and commandline works, so it is a problem between KDEprint and cups I think KDEprint should handle these things better, its really putting me off with kde+cups. (Maybe I should go back to apsfilter+lprng) |
|
Back to top |
|
|
darge0flex Tux's lil' helper
Joined: 15 Jun 2002 Posts: 93
|
Posted: Thu Oct 17, 2002 1:34 pm Post subject: |
|
|
@wbsoft: i have the same problem. Did it work for you now?
cu |
|
Back to top |
|
|
darge0flex Tux's lil' helper
Joined: 15 Jun 2002 Posts: 93
|
Posted: Thu Oct 17, 2002 1:45 pm Post subject: |
|
|
IT WORKS NOW!!! I've just changed my /etc/hosts from
Code: | 192.168.1.1 darks00l |
to
Code: | 192.168.1.1 darks00l darks00l.localdomain |
Perfect! Isn't live easy?! Hope it will for work for you too!
cu |
|
Back to top |
|
|
yardbird l33t
Joined: 20 Apr 2002 Posts: 689 Location: nl.leiden
|
Posted: Thu Oct 17, 2002 7:25 pm Post subject: |
|
|
Hi,
kdeprint used to freeze on my box too. I found out that this happens when kde is compiled with the '-funroll-loops' flag (this was a known bug in kde 3.0.3 - don't know if this was fixed in 3.0.4). Crashes happen quite randomly (for example when trying to print konq segfaults, while koffice does not)
Hope this helps..... |
|
Back to top |
|
|
wbsoft n00b
Joined: 26 Aug 2002 Posts: 73 Location: the Netherlands
|
Posted: Fri Oct 18, 2002 6:24 am Post subject: |
|
|
Great!! Well I switched to lprng + apsfilter, so I will try later .. |
|
Back to top |
|
|
drowwen n00b
Joined: 12 Oct 2002 Posts: 22
|
Posted: Wed Jun 02, 2004 11:51 am Post subject: /etc/hosts & cupsd.conf |
|
|
Hi !
It's not sufficient to include your FQDN in /etc/hosts !
The FQDN do have to match the one in your /etc/cups/cupsd.conf
Code: |
...
# ServerName: the hostname of your server, as advertised to the world.
# By default CUPS will use the hostname of the system.
# To set the default server used by clients, see the client.conf file.
ServerName hostname.domainname
...
|
|
|
Back to top |
|
|
molander Tux's lil' helper
Joined: 20 Jun 2003 Posts: 110 Location: St. Louis
|
Posted: Wed Jun 02, 2004 5:46 pm Post subject: Re: KDE print dialog freezes for minutes (I use cups) |
|
|
wbsoft wrote: | Hi, my printer management dialog (in kcontrol) hangs many minutes while fetching printer data from cupsd. After that it spits out: Code: | kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3/lib/libkdecore.so.4: undefined symbol: init_kcm_printmgr
kdecore (KLibLoader): WARNING: KLibrary: The library kcm_printmgr does not offer an init_kcm_printmgr function
ASSERT: "!name.isEmpty()" in kinstance.cpp (55)
QToolBar::QToolBar main window cannot be 0. | Also the kprinter dialog freezes always for a long time.
Then when I click 'Print' a job gets sent to the printer, which prints ok (almost) but again the dialog stops redrawing/responding for many minutes.
Sometimes I get also X errors.
The problem seems te be related with cups, but cups works ok from the web interface and commandline.
I "USE" cups 1.1.15 and kde 3.0.3
any ideas?
(I got so many problems with cups and my deskjet 400, that I almost go back to lprng and apsfilter) |
Ideas? yeah, upgrade KDE and cups. KDE 3.2.2 is much much faster than 3.0 and 3.1. There are also several improvements wrt printing. =) |
|
Back to top |
|
|
j3pup n00b
Joined: 04 Nov 2004 Posts: 4
|
Posted: Thu Nov 11, 2004 3:14 am Post subject: |
|
|
This post worked to keep my kdeprint dialog from hanging. Here is what it took....
I added the Winchester.localdomain part to /etc/hosts
Code: | 192.168.123.101 Winchester Winchester.localdomain |
Then I went into /etc/cups/cupsd.conf and made the ServerName
Code: | ServerName Winchester@localdomain |
Now I can actually not cringe when I want to click on my printer!!! |
|
Back to top |
|
|
latch.r n00b
Joined: 04 Apr 2006 Posts: 38 Location: Ulm, Germany
|
Posted: Wed Sep 19, 2007 4:47 am Post subject: |
|
|
I don't use KDE, but was having a similar problem. Whenever I went to File->Print in the menu of various programs (Gnumeric, Evince, Firefox, ...) the program would just hang. Even trying to use lpr on the command line wouldn't work, but printing a test page from the CUPS admin did work.
Strangely, stopping my network (/etc/init.d/net.eth0 stop) fixed the problem. However, my printer was a network printer and so this prevented me from being able to print.
I found this thread (what do you search for with a problem like that?), and it made me think of the ServerName setting in the CUPS config. It triggered my memory - months ago I had changed it while I was trying to get printing working on a different network.
I went into /etc/cups/client.conf and commented out my ServerName entry, and its fixed the problem. It might be worth checking this if you have a similar problem. |
|
Back to top |
|
|
|