Issue 25348 - Huge load time when printers not found on the network
Summary: Huge load time when printers not found on the network
Status: CLOSED DUPLICATE of issue 28763
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: current
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: philipp.lohmann
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 06:21 UTC by franckmartin
Modified: 2004-08-26 10:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description franckmartin 2004-02-11 06:21:34 UTC
In all version of OpenOffice on linux at least. OO takes several minutes to
load, if any of the configured printer is not found on the network. It seems it
looks for the printers and then wait for some timeout to occur. Writer or
Impress can take several minutes to load.

the utility spadmin behaves the same....
Comment 1 thorsten.martens 2004-02-11 08:59:58 UTC
TM->BH: I changed this from Defect to Enhancement due to the fact, that this
behaviour was implemented because of getting information about available
printers and printer-settings during startup - and not while working with OOo.
So a non stable system might cause those problems.
Comment 2 franckmartin 2004-02-11 22:13:52 UTC
I changed that back to defect as it is one...

When you have a laptop that connects to a network with one or two printers and
then you go on the road and connect to the internet or any network and want to
open an OO document, it takes about 3-5mn for OO to start because it cannot find
the printers of your "home" network.

Basically, this problem, makes OO not suitable for laptops...

Cheers...
Comment 3 thhart 2004-02-28 20:09:20 UTC
I just want to confirm this issue and its priority as described by frankmartin.
However it is not a minute to wait but some 20-30 seconds on mine machine. I
assume that it depends on the processor speed. This is the odd of the thing, it
does not simply try to connect to the printers in the network, but the cpu usage
is going at highest level for this waiting time. And it does not happen only on
startup of OO but on every open of a document or access to the printer dialog.
I attach a stacktrace of the relevant sections of my system (RedHat 9.0 i386, OO
Version 1.1.0, German)

If I open a document this happens in the stacktrace for each printer and waits
about 10 seconds after this block:


lstat64("/SGENPRT", 0xbfffdd10)         = -1 ENOENT (No such file or directory)
open("/SGENPRT", O_RDONLY)              = -1 ENOENT (No such file or directory)
lstat64("/usr/local/OpenOffice.org1.1/program/../share/psprint/driver/SGENPRT.PS",
{st_mode=S_IFREG|0644, st_size=25278, ...}) = 0
open("/usr/local/OpenOffice.org1.1/program/../share/psprint/driver/SGENPRT.PS",
O_RDONLY) = 30
lseek(30, 0, SEEK_SET)                  = 0
lseek(30, 0, SEEK_CUR)                  = 0
read(30, "*PPD-Adobe: \"4.0\"\n*% Adobe PostS"..., 1024) = 1024
close(30)     
Comment 4 franckmartin 2004-02-28 22:01:19 UTC
I don't think it is porcessor based, as it may have some role in it, but I think
it is more linked to the size of the document and certainly to the number of
printers on the network. I have about 5 printers on my work network that I use,
when I'm home on the Internet and try to open a document, I get real frustrated...

I have a pentium 4 2.4Ghz

Yes you are right it is for each document opened, and only if the network is up
on linux. If the network is down then there is no problem...

I think it could be linked to the set up of the network too...

I think I raised the priority to highest level as now it is confirmed and this
problem is a no go for laptops or mobile computing...

Cheers
Comment 5 bettina.haberer 2004-05-11 14:48:02 UTC
Hello Philipp, I assume, this printing-issue is one for you. This is not an
enhancement; please take over this bug. If you are not the right owner, please
re-aasign it to the appropriate developer. Thank you.
Comment 6 philipp.lohmann 2004-05-11 15:16:20 UTC
thhart: what you attached actually is not a stacktrace but a trace of the system
calls (produced with strace). If you actually had a stack trace (attach to
soffice.bin with gdb and type "where") this might be more informative.

Actually this sounds a little like issue 6431, but that was fixed in OOo1.1.0 by
making printer detection asynchronous.

From what you wrote this method should reproduce this issue:

- configure multiple printers on a CUPS server
- create a document (e.g. writer), save
- disconnect network cable
- start soffice with the document just saved.

Is that right ? Please confirm or tell me a method to reproduce this behaviour.
Comment 7 franckmartin 2004-05-17 05:23:18 UTC
The correct method to reproduce the error is:
- configure multiple printers on a CUPS server on Network A
- create a document (e.g. writer), save
- disconnect network cable and connect to Network B
- start soffice with the document just saved.

Having no network, does not reproduce the error, as OO does not try to look for
the printers on the network (printer discovery?).
Comment 8 philipp.lohmann 2004-05-24 11:45:07 UTC
target
Comment 9 philipp.lohmann 2004-07-07 16:46:19 UTC
I still cannot reproduce this - which may of course be caused by the fact that i
do not have two networks available. BTW: could you please tell what version
"current" actually is ? Or what exactly you mean by "all" versions of OpenOffice
- i assume that you haven't actually tried every release you can select in the
ListBox above ;-)
Comment 10 philipp.lohmann 2004-08-26 10:10:42 UTC
With issue 28763 solved in 680m49 all methods of printer discovery are
asynchronous so they cannot influence application startup. Of course printers
will not be able to be accessed whilst not discovered.

*** This issue has been marked as a duplicate of 28763 ***
Comment 11 philipp.lohmann 2004-08-26 10:11:27 UTC
closing duplicate