Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE print dialog freezes for minutes (I use cups)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Mon Sep 09, 2002 11:35 am    Post subject: KDE print dialog freezes for minutes (I use cups) Reply with quote

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
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Mon Sep 09, 2002 3:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Mon Sep 09, 2002 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Mon Sep 09, 2002 9:45 pm    Post subject: Reply with quote

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?
Code:
obelix.wbsoft.nl

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
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Mon Sep 09, 2002 9:54 pm    Post subject: Reply with quote

Why not just try and see what happens :?: ;-)
_________________
There's someone in my head but it's not me - Pink Floyd
Back to top
View user's profile Send private message
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Tue Sep 10, 2002 9:15 am    Post subject: Reply with quote

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 :x 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
View user's profile Send private message
darge0flex
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 93

PostPosted: Thu Oct 17, 2002 1:34 pm    Post subject: Reply with quote

@wbsoft: i have the same problem. Did it work for you now?

cu
Back to top
View user's profile Send private message
darge0flex
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jun 2002
Posts: 93

PostPosted: Thu Oct 17, 2002 1:45 pm    Post subject: Reply with quote

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?! :P Hope it will for work for you too!

cu
Back to top
View user's profile Send private message
yardbird
l33t
l33t


Joined: 20 Apr 2002
Posts: 689
Location: nl.leiden

PostPosted: Thu Oct 17, 2002 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
wbsoft
n00b
n00b


Joined: 26 Aug 2002
Posts: 73
Location: the Netherlands

PostPosted: Fri Oct 18, 2002 6:24 am    Post subject: Reply with quote

Great!! Well I switched to lprng + apsfilter, so I will try later .. :-)
Back to top
View user's profile Send private message
drowwen
n00b
n00b


Joined: 12 Oct 2002
Posts: 22

PostPosted: Wed Jun 02, 2004 11:51 am    Post subject: /etc/hosts & cupsd.conf Reply with quote

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
View user's profile Send private message
molander
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 110
Location: St. Louis

PostPosted: Wed Jun 02, 2004 5:46 pm    Post subject: Re: KDE print dialog freezes for minutes (I use cups) Reply with quote

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
View user's profile Send private message
j3pup
n00b
n00b


Joined: 04 Nov 2004
Posts: 4

PostPosted: Thu Nov 11, 2004 3:14 am    Post subject: Reply with quote

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
View user's profile Send private message
latch.r
n00b
n00b


Joined: 04 Apr 2006
Posts: 38
Location: Ulm, Germany

PostPosted: Wed Sep 19, 2007 4:47 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum