Bug 85308 - if the cups printserver isn't found, kdeprint blocks the UI forever
Summary: if the cups printserver isn't found, kdeprint blocks the UI forever
Status: CLOSED WORKSFORME
Alias: None
Product: kdeprint
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDEPrint Devel Mailinglist
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-16 03:48 UTC by Charles Samuels
Modified: 2008-12-31 17:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Samuels 2004-07-16 03:48:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

in kcontrol, set your cups printserver to blank (or to a host that doesn't exist).

When it tries to connect, it'll try to connect for a very long time, leading to what appears to be forever... and probably is. I left it for a couple hours once.
Comment 1 Michael Goffioul 2004-07-16 22:18:09 UTC
What you probably experience is a DNS timeout, which occurs in a CUPS library call (this is not directly in kdeprint's code). At work, I tried to enter wrong server name, but I get immediately an error message (either because the hostname doesn't exist, or because the port 631 is closed). But on some systems, this results in a DNS timeout; I guess this is related to the network configuration.
What you could test is to start the print manager in gdb, let it hang up and then CTRL-C + backtrace to locate the timeout. Normally it should be in the CUPS library (as kcontrol forks itself, it's easier to use "gdb kcmshell" + "run printmgr").
Comment 2 Charles Samuels 2004-07-18 20:08:16 UTC
this is very much a crash. If you want to print a document, and the print dialog blocks forever, and you didn't save before you started printing.  Well, that's data loss. That's also as good as the program locking up.

I'm changing it back to crash, and I'll hope that in the future you give a reason to your changes.
Comment 3 Kurt Pfeifle 2007-03-29 00:27:20 UTC
Charles,

is this still a problem with KDE 3.5.6?



------------------
(Note to self: close this bug as WORKSFORME if there is no feedback by reporter until end of April)
Comment 4 Charles Samuels 2007-03-29 05:22:20 UTC
Can't reproduce it anymore.

It's still kinda annoying that I can't cancel the print dialog while the "connecting to cups server" (or whatever) little box is up.
Comment 5 John Layt 2008-12-31 17:30:27 UTC
Closing old Resolved status bug.