Issue 9539 - Open Office hangs up giving 100% CPU utilization when it tries to open a word document containing one large string of integers..
Summary: Open Office hangs up giving 100% CPU utilization when it tries to open a word...
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: 643C
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2002-11-26 06:47 UTC by sujit
Modified: 2013-08-07 14:43 UTC (History)
2 users (show)

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


Attachments
word file used for testing (400.00 KB, application/octet-stream)
2002-11-26 06:48 UTC, sujit
no flags Details
The original attachment with spaces inserted after every 10 pages (400.00 KB, application/octet-stream)
2003-01-30 15:08 UTC, aidan.butler
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sujit 2002-11-26 06:47:45 UTC
Summary
Open Office hangs up giving 100% CPU utilization when it tries to open a word 
document containing one large string of integers.. 

System Configuration 
Platform: PC
OS: WinXP, NT 5.01
Version: 2600

Steps to replicate bug

1.	Open this word document using File->Open
2.	Application hangs up trying to open this file 

Notes
I am also attaching the file used.
The reason I feel that this is an important bug to fix is because the 
application does not handle an error like this gracefully. The application 
should not hang up while opening the document. This is because the user can 
have documents which are large in size and would least expect the application 
to fail at this point of time. Besides the file used for this test case is 
just 401 kb.
Comment 1 sujit 2002-11-26 06:48:34 UTC
Created attachment 3764 [details]
word file used for testing
Comment 2 Unknown 2002-11-26 21:48:15 UTC
Replicated on
Platform: PC
OS: Win2000, XP
Version: 2195, 2600

Notes:
Sometimes the word file above does not open properly in word. Word 
sometimes displays the text as a picture. Therefore in order to see 
the file you may have to open the file in Wordpad.

The application crashes both with the original steps and also when 
the Open With... command (choosing OpenOffice 643c) is used to open 
the file. When the file is opened using OpenOffice 1.0.1 however, the 
application does not crash. The application is able to indicate that 
it cannot open the file and closes the application down.

I made modifications to the file provided above, by breaking the text 
down into more managable portions, instead of just one long string. 
However the program still crashes.

Although I don't know if it is common for anyone to produce a file 
with just one long text string, many large text strings are more 
common. 

I hope that this matter will be looked into as soon as possible. 

Comment 3 prgmgr 2002-11-29 02:31:04 UTC
Sujit and Bharath, thank you for using and supporting OOo.

For formalities sake, duplicated on Win2k Server, OOo 643C.

Another bounds check from the team.  Expect more to come.
Comment 4 prgmgr 2002-11-29 02:31:32 UTC
Changing to new and assigning to CMC.
Comment 5 caolanm 2002-11-29 16:45:38 UTC
cmc->aidan: This is one for you :-), ww8par.cxx ReadText adds text to
a string. It needs to handle when the case of the txtnode containing 
STRING_LEN better. If the len of the string hits string_len it needs
to force the parser to act as if 0xd a para break was encountered so
as to read in huge text like this as seperate paragraphs for each
maximum len chunk.
Comment 6 aidan.butler 2003-01-30 15:07:16 UTC
Aidan: This has been fixed for the next release. The initial problem
is to do with the paragraphs being greater than 65K in size. There is
still a problem with the test document that Caolan thinks may be due
to the lack of spaces in the document. Inserting a space after every
10 pages or so, makes the document load eventually.  See second
attachment.

 
Comment 7 aidan.butler 2003-01-30 15:08:53 UTC
Created attachment 4506 [details]
The original attachment with spaces inserted after every 10 pages
Comment 8 aidan.butler 2003-01-30 15:13:22 UTC
Aidan: Reopening for assignment to QA
Comment 9 aidan.butler 2003-01-30 15:20:46 UTC
Aidan->Mru: Can you verify this. The MS Word importer can now handle
docs with paragraphs greater than 65K in size. There is still a
problem with performance (possibly layout), but this cannot be fixed
in the ww8 filter.
Comment 10 Joost Andrae 2003-02-17 11:38:42 UTC
JA: re-prioritized according to new priority guide lines.
JA->MRU: please check this. I changed the priority to P2 because this
scenario describes a hangup...
Comment 11 michael.ruess 2003-02-24 14:20:36 UTC
Looks fixed with internal Milestone 644m4s4.
Comment 12 michael.ruess 2003-02-24 14:21:19 UTC
Closed. Fix will be available with OpenOffice 1.1 Beta (will be
released soon).