Issue 10826 - OO +/- system lockup with scroll, save of doc with many footnotes
Summary: OO +/- system lockup with scroll, save of doc with many footnotes
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.2
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: ms_interoperability, oooqa
: 14074 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-01-21 13:52 UTC by matthewbrett
Modified: 2013-08-07 14:41 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 matthewbrett 2003-01-21 13:52:24 UTC
I have a large document (1.5M rtf) with many sections and footnotes.  It will
load, save, scroll without problem in Word 97/2000.

In OO 1.0.2, 1.0.1, StarOffice 6.0; 
1) Saving as OO format results in an indefinite (at least < 30 min) hang.  A new
doc composed of the first half of the original takes ~5mins to save on my 2.2GHz
pentium, 1GB RAM.

2) Scrolling up and down using the scroll bar eventually results in a long
sometimes permanent freeze with 100% CPU usage.  On two linux systems (RH8, 00
1.0.1; 1 = 1GHz, 256BM; 2 = 2000+athlon, 128MB) this has also resulted in the
whole system hanging indefinitely).

I have put the zipped file at:
ftp://ftp.mrc-cbu.cam.ac.uk/pub/imaging/Temp/pan123.zip
Comment 1 ingenstans 2003-05-07 17:48:28 UTC
cannot load it at all in 644_m11
Comment 2 h.ilter 2003-05-08 14:54:56 UTC
Reassigned to MRU
Comment 3 michael.ruess 2003-05-20 15:52:38 UTC
MRU->DVO: at the end of the import the assertion "PageDescs
überindiziert". Please evaluate if this is caused by the core or the
filter.
Comment 4 openoffice 2003-05-21 11:08:35 UTC
dvo->cmc: There's a problem in the RTF-filter. On first look, things
broke after CWS jollyfilterteam05 integration. :-/

At the end of 

    void rtfSections::InsertSegments(bool bNewDoc)

the following code (swparrtf.cxx#1067)

    myDummyIter aDEnd = maDummyPageNos.end();
    for (myDummyIter aDummy = maDummyPageNos.begin(); aDummy != aDEnd;
++aDummy)
        mrReader.pDoc->DelPageDesc(*aDummy);

wants to delete page descriptors that don't exist. (It tries to delete
 the sixth PageDesc of five.)

I find the code a bit weird anyway, since 

   void SwDoc::DelPageDesc( USHORT i )

gets a numeric argument, but the numbers are just indices which of
course change during the deletion. Without adjustments in the loop,
this would only seem to work if maDummyPageNodes contains only one
element or was sorted in decreasing order.
Comment 5 caolanm 2003-05-21 12:13:37 UTC
cmc: Yes. Was fixed in soberfilterteam06. Will check and confirm this
in a post soberfilterteam06 integration installset.
Comment 6 caolanm 2003-05-21 12:39:00 UTC
cmc->dvo: In SRX645m2 the rtf bug is fixed, and now it hangs/crashes
back in pagination after lots of looping louie's. In the 1.0.1 the
code which was introduced in filterteam05 and fixed in filterteam06
didn't exist, so the original problem must the one that is now visible
again in SRX645m2
Comment 7 caolanm 2003-05-21 12:40:31 UTC
649 pages, huge amount of footnotes.
Comment 8 openoffice 2003-05-21 12:46:12 UTC
dvo->fme: Looping Louie (after SRX645m2). Strangely, this is targetted
at OOo 2.0.
Comment 9 caolanm 2003-05-22 12:24:46 UTC
*** Issue 14074 has been marked as a duplicate of this issue. ***
Comment 10 dankegel 2003-05-25 17:54:19 UTC
I'm going out on a limb here and changing the target release to
ooo1.1rc on the theory that all known crash bugs could/should
be fixed for ooo1.1.  If I'm wrong, and this crash bug requires
a major rewrite to fix, please mark this bug as ms_interoperability
when you change the target back.  Thanks...
Comment 11 frank.meies 2003-06-05 14:11:48 UTC
FME: There are at least two loops caused by this document. I found a
potential fix for one of them. Unfortunately there is still the other
loop, which seems to be quite evil. There is no easy, low risk fix for
that one. As discussed with SBA, I set this back to OOo 2.0.
Comment 12 frank.meies 2003-12-18 07:58:10 UTC
.
Comment 13 frank.meies 2004-07-22 14:06:17 UTC
FME: Wow, that was a hard one. After a couple of fixes the document finally
opens. Well, formatting it takes quite some time, but after saving it as *.sxw
file, formatting will be much faster.

sw/source/core/layout/flowfrm.cxx rev. 1.40.20.2
sw/source/core/layout/wsfrm.cxx rev. 1.56.20.2
sw/source/core/text/frmform.cxx rev. 1.50.20.1
Comment 14 frank.meies 2004-07-28 12:47:23 UTC
.
Comment 15 frank.meies 2004-07-28 12:47:46 UTC
Ready for QA.
Comment 16 frank.meies 2004-07-28 12:48:05 UTC
.
Comment 17 michael.ruess 2004-07-30 10:21:52 UTC
Checked fix in CWS swqbugfixes04.
Comment 18 michael.ruess 2004-09-08 09:38:27 UTC
Checked in 680m52. Closed.
Comment 19 matthewbrett 2005-01-05 22:28:12 UTC
I have just downloaded 680_m65, and noticed the following odd effect.  The first
time I open the document (Pan123.rtf), the first page is displayed, but the
program continues with very high CPU usage indefinitely (> 45 minutes Pentium 4
3.0 GHz).   If I close openoffice, and start it again, I do not get the high CPU
use after loading.  Deleting the ~/.openoffice.org1.9.65 directory makes the
effect return.

I have also noticed huge variation in times for the document to load between
machines:  Pentium M 1.2 GHz, 1GB RAM = 6.5 minutes; P4 2.6 1GB = 7.5 minutes,
P4 3.0 2GB = less than one minute.  Memory may not have been a factor however,
as the P4 2.6 had a reported ~500MB free memory during loading. 
Comment 20 michael.ruess 2005-01-06 12:24:32 UTC
Yes I also could see the problem with 680m65 or m67. But with newest m69, it
works. I checked this with internal build, which will be released soon.
Comment 21 michael.ruess 2005-01-06 12:29:09 UTC
Closed.
Comment 22 matthewbrett 2005-05-09 06:06:38 UTC
I have just downloaded 1.9.100-1; the problem of indefinite load time on first
load remains for Pan123.doc.  Note, as before, that killing and restarting OO
resolves the problem, and removing my .openoffice directory causes the problem
to return.
Comment 23 michael.ruess 2005-05-10 09:08:22 UTC
Could you please submit a new issue for this, so that this one won't become too
complex here (will be VERY uncomfortable too handle properly). Thanks for your
patience.
Comment 24 michael.ruess 2005-05-10 09:12:34 UTC
Please also attach the "offending" document, because the above mentioned link is
not valid anymore.