Issue 7553 - Performance issue opening document containing Internet reference
Summary: Performance issue opening document containing Internet reference
Status: REOPENED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: All All
: P3 Trivial with 48 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 28625 32390 49967 60384 62075 62764 65118 67002 69752 73012 74552 83269 84567 96389 (view as issue list)
Depends on: 101430 73788
Blocks: 41368
  Show dependency tree
 
Reported: 2002-09-06 19:28 UTC by fft
Modified: 2017-05-20 10:55 UTC (History)
12 users (show)

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


Attachments
SampleDoc.sxw is a document (in Chinese_cn) that frequently causes the fatal error. (16.22 KB, application/octet-stream)
2002-09-06 19:37 UTC, fft
no flags Details
File, that exposes problematic bahavior (574.71 KB, application/x-compressed)
2006-11-04 19:54 UTC, kpalagin
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description fft 2002-09-06 19:28:15 UTC
OpenOffice.org Writer may execute an invalid operation when loading some
documents containing reference to an Internet URL if the Internet connection is
not available at the time(or having incorrectly set Option\Internet\Proxy settings).

Windows2000 issuses a dialog saying "The instruction at '0x035c6f15' referenced
memory at '0x00000000'. The memory could not be 'read'" and terminates OOo Writer.

This doesn't occur to all documents containing Internet reference. And it
doesn't happen every time (but frequently) opening the document that had issued
this error. When testing, I found if the error occurs, Windows2000 seems always
complaining the same instruction address mentioned above.

One more problem is, if the Internet connection is very slow, it takes too
long(minutes) to load the document before OOo recovers from "freezing" when loading.
Comment 1 fft 2002-09-06 19:37:25 UTC
Created attachment 2742 [details]
SampleDoc.sxw is a document (in Chinese_cn) that frequently causes the fatal error.
Comment 2 Unknown 2002-09-16 20:10:00 UTC
I have successfully replicated the bug report by using the file 
attached. I opened the file online, it has been opened but slowly 
(about 3minutes, I use dial up). Then I went off line, and the file 
cannot be opened.
Comment 3 maxkennedy 2003-06-26 07:35:01 UTC
On an XP using OOo 1.1 Beta2, this document crashed Writer when
an internet connection is open, but doesn't crashes Writer when
an internet connection is not open.  

Comment 4 Rainer Bielefeld 2003-07-12 15:53:25 UTC
New per comments From YingZheng@openoffice.org 2002-09-16 12:10 PDT
and From maxkennedy 2003-06-25 23:35 PDT

I tried to reproduce the problem with 1.1Beta2 verman version WIN98SE
1. save attached testfile 
2. open file in explorer by double click with 1.1Beta2 during an open 
   ADSL internet connection
   expected: file should be opened
   actual: more or less no load from internet, WRITER hangs, must be 
   closed with task manager.


Questions:
- All systems?


Rainer
Comment 5 stefan.baltzer 2003-07-18 17:53:02 UTC
Reassigned to Éric.
Comment 6 eric.savary 2003-07-28 15:17:25 UTC
ES->All: yes it is platform independant

ES->ABI: AFAIK this problem has been partly fixed in cws_abi3. It 
istill takes too much time to load such a document with about 50+ 
graphics.

Comment 7 Rainer Bielefeld 2003-10-28 06:34:26 UTC
Platform changend due to Additional Comments From Eric Savary 2003-07-28

Rainer
Comment 8 andreas.bille 2003-11-13 16:00:17 UTC
ABI->ES: If a file contains 50 graphics which can be loaded, the
overall time is not so much determined by the loading core, but by the
way all graphics are loaded and rendered together. Nothing, which I
can influence (maybe someone in the application teams can). Otherwise,
where do you get your numbers from? Is there any specification,
against which you decide that the time is too long, or is it personal
feeling only?
Comment 9 Rainer Bielefeld 2003-11-13 16:36:24 UTC
Rainer -> ABI

Hi, die you read that that is not a general time problem but something
reproducible with the testfile? 

It should be tested if the same file with images local on harddisk or
embedded would be faster. But before I do all that work 
question ->ES : how sure are are you with "partly fixed in cws_abi3"?
Might be more useful to test example with that version.
 

Rainer
Comment 10 eric.savary 2003-11-27 13:13:42 UTC
Sorry, I thought this was refering to another issue.
Comment 11 eric.savary 2003-11-27 13:14:19 UTC
ES->BH: we must find a way to manage the time out in OOo when linked
contents exist in a document, for instance:
- Timeout earlier when contents are not available
- Allow the user to break the retrive process but load the document
Comment 12 bettina.haberer 2004-05-26 11:04:32 UTC
Hello Kay, could you please take over this bug. It might effect each
application, not only Writer. So I reassigned this one to you. If you are not
the right one, please assign it to the concerning developer. Thank you.
Comment 13 bettina.haberer 2004-05-26 11:06:14 UTC
Set to framework as it concerns all applications.
Comment 14 bettina.haberer 2004-05-26 12:14:42 UTC
Sorry Kai, your name ends with "i". :)
Comment 15 ooo 2004-06-03 10:06:08 UTC
seems to be related to fileobj.cxx
Comment 16 michael.brauer 2004-06-03 10:24:27 UTC
MIB->ES: What are we discussing currently?
a) a specific issue (crash) with a specific file, that is reproducable?
b) a feature enhancement that allows OOo to specify the timeout for HTTP
connerctions or something like this?
c) something else?
Comment 17 eric.savary 2004-06-03 12:06:36 UTC
ES->MIB: I can't reproduce the original report that tells about a *crash*.
I can reproduce the extreme slow loading time (about 5 minutes) of the document
when:
- no proxies are set or
- the connection is slow
- the graphics do not exist at the given addresse.

So it's a performance bug (thus I changed the title)
Comment 18 michael.brauer 2004-06-15 12:43:41 UTC
MIB: It is a well known issue that OOo is loading images synchronously. For my
point of view, that's okay, because SO is not a web browser, but an HTML editor.
Therfor it is valid to assume that the images contained in the document that
should be edited are loadable. An improvement of cause would be possible.
Since the issue occurs only under certain circumstances, P4/Office later seems
to be more appropriate.

Comment 19 andreas.martens 2004-06-15 15:50:20 UTC
I agree with MIB.
Comment 20 richlv 2004-07-16 13:17:32 UTC
file attached to http://qa.openoffice.org/issues/show_bug.cgi?id=29366 contains 
single linked image. if internet connection is not available 1.1.2 opens slowly, 
but then allows to edit docuemnt etc. 680m47 hangs when docuemnt is loaded. 
should i open a new issue or is this supposed to be handled by this one ?
Comment 21 eric.savary 2004-08-02 09:32:10 UTC
-> richlv: yes it is handled by this one. No need to open another issue.

->MIB/AMA: the fact that OOo is not a web browser does not justify the not
acceptable loading time of documents with linked content when no Internet
connection is available.
- save the front page of Yahoo.com localy (without graphics)
- open it in OOo after having turned the proxy settings off
-> it lasts 4 (four!) minutes before one can edit anything in the document or
even do something with OOo.

This is not acceptable. Every user (not aware about this conceptual bug) would
have killed OOo after, let's say, 40sec, believing OOo is hanging and eventually
causing a data loss.

Microsoft Word is not either a Web browser but it loads the same document (and
the document is then editable) in a couple of sseconds.

Thus I raise prio to P3 (though I really think it would be worth a P2)
Comment 22 eric.savary 2004-08-02 09:33:00 UTC
*** Issue 32390 has been marked as a duplicate of this issue. ***
Comment 23 michael.brauer 2004-08-02 10:12:47 UTC
If src680m46 was able to load a document, but src680m47 isn't then this does not
match the current issue that is only about pewrformce.

Please subimit a new issue to the sfx team.
Comment 24 eric.savary 2004-08-02 10:59:41 UTC
I asked richlv to detail the problem in the other issue.
Reassigning to you.
Comment 25 eric.savary 2004-08-02 11:21:17 UTC
ES->BH: I just rewrite my statement from last year (nov. 03):

we must find a way to manage the time out in OOo when linked
contents exist in a document, for instance:
- Timeout earlier when contents are not available
- Allow the user to break the retrive process but load the document

In other words:
- we have to see if this can enter in a PCD for OOo 3.0
- then build an I-Team (framework) to design an acceptable behaviour
Comment 26 eric.savary 2004-08-02 11:31:08 UTC
Reset to Enhancement
Comment 27 michael.ruess 2005-05-30 16:16:01 UTC
*** Issue 49967 has been marked as a duplicate of this issue. ***
Comment 28 arendjr 2005-09-09 13:40:28 UTC
I can still confirm this problem exists with OOo 1.9.118 on Windows and OOo
1.9.125 (Novell edition) on SUSE Linux 9.3.

Honoustly I think this is a very grave bug which should be fixed for OOo 2.0.
Think of the following scenario: You have a bunch of OpenDocument files on a
server in your corporate network which contain references to images on a server
in your network. Then the address of the referenced server changes. Of course
you now have to open the documents to correct the references, but OOo simply
hangs and sometimes even crashes when opening the documents. Some documents take
as much as much 10 minutes to open, where the entire OOo interface is frozen for
10 minutes. Sometimes OOo just keeps hanging, at which point you just kill it
after 15 minutes of being frozen.

But it's not just documents with references which can trigger this behavior. If
you just open a new document and go to Insert => Picture => From File... and you
enter an HTTP URL to a server on an unreachable network*, OOo just hangs, and
keeps hanging. (Again, I killed it after 15 minutes of hanging). 15 minutes is
really too much for a single HTTP timeout, so it can't be attributed to that alone.

Seriously, this is not just an enhancement request, this is a very grave bug.
OOo really should fetch external references asynchronously and should not hang
(forever?) when trying to fetch non-existing references.

*) To test: if you're on a 192.168.0.* network, just try referencing a
192.168.1.* address, provided there's no gateway to route to 192.168.1.*
addresses. This was tested on Linux, I don't know if the specifics differ
between platforms.
Comment 29 lars 2006-02-15 18:39:00 UTC
*** Issue 62075 has been marked as a duplicate of this issue. ***
Comment 30 lars 2006-03-04 16:17:32 UTC
*** Issue 62764 has been marked as a duplicate of this issue. ***
Comment 31 romato 2006-04-23 03:26:26 UTC
IMHO it is quite important that OOo informs the user of operations when is
loading external files:

Having my OOo (version 2.0, w/winXP) frozed i thought it crashed and that my
document was dead, and spent time manually recovering informations from
"contents.xml". (by chance, doing so, i found an image's URL, and understood the
problem). One could have spent many many hours doing such a recovery work,
without thinking that switching off his firewall will solve the problem!!. 

Most users won't wait 10 minutes: More thane 2 minutes whith a frozen
progression bar is understood as a crash by the user and "solved" by a Ctrl-Alt-Del!

PROPOSITION: A good part of a solution would be to add a log-line (similar to
netscape's) telling the user what is going on. Either or not replacing the
progression bar (and having mini-progression after the message (dots...).
- "opening file..." (this is so quick that will not disturb anybody)
- "uncompressing file xxxxxxxx.odt"
- "loading files whaterver1",
- "loading files whaterver2",
- "interpreting and formatting document"
- "loading external image href=http://www.01net.com/img/dot.gif"
- "..."
When it freezes (or takes a little too long), the last log line will stay,
becoming a way for the user to understand which particular action is so long to
complete, and it'll give him a chance to understand without using pkzip and a
text editor..

And when it doesn't freezes, the user probabely won't even see that small line
saying incomprehensible things changing too quickly.
(Loglines can be added to a log-file, making a debug action possible after the
"crash").

Hoping it can help...
Comment 32 kpalagin 2006-11-04 19:51:17 UTC
Happens to me as well. I am attaching "admin.zip", that exhibits the problem 
of slow loading and long delay before showing text and images. Competing word 
processor quickly displays the text, then in status shows "Retreiving" and 
progress bar.
Comment 33 kpalagin 2006-11-04 19:54:59 UTC
Created attachment 40324 [details]
File, that exposes problematic bahavior
Comment 34 Mathias_Bauer 2006-12-06 17:43:46 UTC
I can't understand how this can be treated as an enhancement. This is clearly a
defect. IIRC this is more or less a duplicate for some similar issues we have. I
take it for the time being and clean up later.
Comment 35 bettina.haberer 2006-12-06 18:39:07 UTC
Thank you Matthias to take it over. When I reset the issue type the first time
from enhancement to defect, it got reset from defect to enhancement again (issue
activity).
Comment 36 eric.savary 2006-12-20 07:22:34 UTC
ES->MBA: please have a look at issue 28625. Maybe we can close it (28625) at
duplicate of this one?
Comment 37 kpalagin 2006-12-31 20:58:03 UTC
*** Issue 73012 has been marked as a duplicate of this issue. ***
Comment 38 Mathias_Bauer 2007-01-17 08:48:57 UTC
*** Issue 28625 has been marked as a duplicate of this issue. ***
Comment 39 Oliver-Rainer Wittmann 2007-01-23 09:23:46 UTC
I've submitted issue 73788 to solve this problem in Writer for linked graphic
files. This issue will be solved in cws swqbf91
Comment 40 khbellgardt 2007-02-02 12:02:53 UTC
Issue 74114 has been marked as duplicate of issue 28625, which was marked as
duplicate of this issue. But is it really duplicate?

The case of issue 74114 is a plane writer document without html, no content from
the internet, no links to images from the internet. The problem never occured
when opening or editing the document or copying its content to other documents.
Its only during save. 
Comment 41 khbellgardt 2007-02-02 12:04:29 UTC
Issue 74114 has been marked as duplicate of issue 28625, which was marked as
duplicate of this issue. But is it really duplicate?

The case of issue 74114 is a plane writer document without html, no content from
the internet, no links to images from the internet. The problem never occured
when opening or editing the document or copying its content to other documents.
Its only during save. 
Comment 42 Mathias_Bauer 2007-02-02 12:13:27 UTC
It depends. :-)

It is a duplicate as it has the same root cause: OOo will hang if it runs into a
timeout accessing external resources. While this can be fixed for the case of
linked graphics it can't be fixed in case of *necessary* access to a hyperlink
while the document is saved. So if both problems can be fixed at all the fixes
will surely be different.

So in case a document could be provided that shows the problem described in
issue 74114 I would opt for reopening it and see if we can fix it. 

As you are the reporter of issue 74114: can you attach a typical document to
issue 74114 that shows the problem? Then we can decide how to proceed. For the
time being I reopen this issue.
Comment 43 eric.savary 2007-02-22 13:46:39 UTC
*** Issue 60384 has been marked as a duplicate of this issue. ***
Comment 44 andreas.schluens 2007-03-19 13:38:27 UTC
*** Issue 74552 has been marked as a duplicate of this issue. ***
Comment 45 andreas.schluens 2007-03-19 13:40:46 UTC
Issue #74552# was marked as duplicate.

Hint for QA: If this task will be fixed it should be tested on Vista too.
Comment 46 kpalagin 2007-04-16 10:22:05 UTC
*** Issue 65118 has been marked as a duplicate of this issue. ***
Comment 47 kpalagin 2007-04-20 20:38:00 UTC
*** Issue 67002 has been marked as a duplicate of this issue. ***
Comment 48 utomo99 2007-06-24 05:28:49 UTC
This performance issue still exist since 2002. I hope it will be taken care 
soon. 
Thanks
Comment 49 Mathias_Bauer 2007-06-24 12:11:53 UTC
If everything goes well at least the problem with linked graphics will be solved
in 2.3. That should be the biggest problem. Once experience will have shown that
our approachs works well the plan is to extend it to other kinds of linked
content as well.
Comment 50 thorsten.martens 2007-07-09 15:36:39 UTC
*** Issue 69752 has been marked as a duplicate of this issue. ***
Comment 51 Mathias_Bauer 2007-08-25 19:30:38 UTC
I wanted to inform all people interested in this issue that in OOo2.3 the first
step to solve this problem was done: Writer will not block anymore when loading
linked images.

I hope we can solve the remaining problems (linked images in other applications,
all other links in all applications) in further releases. But each journey
starts with the first step. :-)
Comment 52 eric.savary 2007-11-05 11:41:26 UTC
*** Issue 83269 has been marked as a duplicate of this issue. ***
Comment 53 Mathias_Bauer 2007-12-04 16:17:59 UTC
according to release status meeting -> target 3.x
Comment 54 michael.ruess 2007-12-14 12:20:43 UTC
*** Issue 84567 has been marked as a duplicate of this issue. ***
Comment 55 stefan.baltzer 2008-01-31 18:59:43 UTC
SBA: This Looks like a duplicate of issue 73788 ("Don't block Writer in order to
load linked graphic files"). That one was fixed for OOo 2.3.

When testing fix for issue 85717 ("non-blocking load of linked graphics in
Writer is broken") in CWS sw24bf03, I loaded the attached sxw without
performance problems.

I set this one to Duplicate. 
(This one is older, but all changes took place under the other issue ID).

*** This issue has been marked as a duplicate of 73788 ***
Comment 56 Oliver-Rainer Wittmann 2008-02-01 07:32:02 UTC
Issue 73788 only solve one part of the this issue - namely the performance with
references/links for graphics.

Thus, I undo the made change of SBA
Comment 57 ralfg 2008-04-17 17:20:47 UTC
(Please, raise priority: there are many duplicates)

I can confirm that OOo 2.3 freezes whenever I drag&drop a picture from the web
onto a text document. The freeze is hazardous:
 - I can still move the window, but now updates (strange screen drawings)
 - If I kill the window (Ctrl+Alt+Esc) a zombie process keeps running so
   unskilled users cannot start OOo any more!

Background: Debian Sarge + OOo 2.3 deb packages, Proxy used (WPAC autoconf).
(KDE system settings are valid). 100% reproducable. Only skilled users can handle 
this (save graphic locally and insert to document as file), migrators mock.
Comment 58 Mathias_Bauer 2008-04-18 12:25:54 UTC
This is a different problem, please try 2.4.
Comment 59 Mathias_Bauer 2009-05-07 14:55:13 UTC
As the task to make OOo responding while resolving linked content is a huge one,
the work is happening in several steps. Let me try to summarize where we are and
what we will achieve in the next releases.

Starting with OOo 2.4 Writer no longer hangs on loading files with linked graphics.
Starting with OOo 3.2 all OOo applications no longer will hang on saving files
with linked content (graphics or anything else). This was fixed for issue 50983
in CWS os128.

So two things are left:

- don't hang on loading linked non-graphical content
- don't hang on loading linked graphics in other applications than Writer

The first topic is covered by issue 41368. As this issue here started to become
a confusing read some time ago already ;-) and never touched anything else than
graphics in close detail, I would like to keep that out of here.

The second topic is in the works and I've added a dependency here that refers
the issue 101430 covering that work. Once this issue is fixed we can close this
issue here. 
Comment 60 malte_timmermann 2009-06-30 18:21:38 UTC
*** Issue 96389 has been marked as a duplicate of this issue. ***
Comment 61 Marcus 2009-06-30 20:37:36 UTC
set myself on CC
Comment 62 kjly 2012-04-16 18:20:45 UTC
Comment on attachment 40324 [details]
File, that exposes problematic bahavior

When copy from internet to document in Open Office the program freezes up
Comment 63 Marcus 2017-05-20 10:55:30 UTC
Reset assigne to the default "issues@openoffice.apache.org".