Issue 17046 - Writer freezes when loading a word document that loads in 1.02
Summary: Writer freezes when loading a word document that loads in 1.02
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: PC All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: crash, oooqa
Depends on:
Blocks: 14053
  Show dependency tree
 
Reported: 2003-07-18 06:10 UTC by ezza
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

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


Attachments
ms-word document that causes freeze (gzipped) (28.21 KB, application/octet-stream)
2003-07-18 06:13 UTC, ezza
no flags Details
simple document: table with wrapping and inner table (19.50 KB, application/octet-stream)
2003-07-28 12:04 UTC, Oliver-Rainer Wittmann
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ezza 2003-07-18 06:10:45 UTC
See attached word document

The writer freezes when loading this document and must be killed from the Close
Program dialogue, losing any unsaved information in other writer windows.
The progress bar goes to 100% and disapears before the freeze occurs.
btw this is under win98se.

The file loads OK in 1.02 for win32 (with some table formatting/position glitches).

This _might_ be related to bug 15771, but not to bug 16629 (which is confirmed
linux only).

PS: Sorry if this is got submitted twice, the first submit didn't seem to work...
Comment 1 ezza 2003-07-18 06:13:28 UTC
Created attachment 7820 [details]
ms-word document that causes freeze (gzipped)
Comment 2 dankegel 2003-07-23 02:59:35 UTC
Confirmed on Linux with OOo1.1rc.
Here's a stack dump created by running the program under gdb
and hitting ^C.  
http://kegel.com/openoffice/hang-17046.txt
Different runs get same stack dump differing only slightly at top.
Comment 3 h.ilter 2003-07-28 09:34:44 UTC
HI->OD: In discuss with AMA yours.
Comment 4 Oliver-Rainer Wittmann 2003-07-28 12:04:46 UTC
Created attachment 8064 [details]
simple document: table with wrapping and inner table
Comment 5 Oliver-Rainer Wittmann 2003-07-28 12:16:48 UTC
OD->CMC (28.07.2003):
AMA and I figured out that we have a basic problem with importing a
table with wrapping and another table inside this table - see attached
document 'TableWithWrapArroundAndInnerTable.doc'. We thought that this
defect is the bug cause of the freeze in the writer layout. In the
original bugdoc you will find two such tables.

After loading the original bugdoc, we got the assertion 'Table in
table: Not implemented." On investigation of the bugdoc we detected
the basic problem: If we have a table, which has wrapping arround and
has another inner table, the text, which have to be outside the outer
table is placed inside the table during the import.
This seems to be happen in the original bugdoc with the first table in
the document. Thus, the second table in the bugdoc is also placed
inside the first table.
Comment 6 caolanm 2003-08-05 16:00:52 UTC
Tables in tables are very hard to handle in the winword filter, we
turn them into tables inside frames inside tables, which is pretty good. 

But what adds to the complexity is that word reuses its paragraph
absolute positioning for tables, so we must close such "APOs" at the
same level (or lower) as which they were opened, and only open them if
one was not opened before, the current code would open one if it was
not at the same level, which is not correct, it should only open such
an apo is none is already open, and leave the case of one opening and
another closing at the same level to the different test for seperate
byt adjoining apos.
Comment 7 caolanm 2003-08-05 16:10:59 UTC
note: wrap around for a table implies that such "APO" properties exist
for that table. So the outer table is wrap around therefore it has APO
properties and so gets a frame around it on import. The inner table is
not "wrap around" but will always get a frame because its an inner
table and that's the only way to get a table in a table.

The apo properties on an table already inside an apo, (or their lack)
should neither 
a) trigger the insertion of a frame because it is already inside a
frame due to APO props, or 
b) trigger the closing of the frame because that can only be closed at
the same (or lower) level at which it was opened.

cmc: A bit complex, but the short of it is that it works for both smal
land original document and even looks right. But will require a good
bit of testing for 1.1.1
Comment 8 caolanm 2003-08-08 11:44:06 UTC
reopen to reassign
Comment 9 caolanm 2003-08-08 11:44:33 UTC
cmc->mru: Tables from hell working in corkfilterteam10
Comment 10 michael.ruess 2003-08-13 11:40:15 UTC
Fix verified in CWS corfilterteam10.
Comment 11 michael.ruess 2003-08-13 11:43:30 UTC
Fix will be included in OO 1.1.1.
Comment 12 ezza 2003-08-14 05:22:14 UTC
> Fix verified in CWS corfilterteam10.
> Fix will be included in OO 1.1.1.

Woohoo!! Thanks guys/gals!

:-)

(I love open source!)

Comment 13 michael.ruess 2004-01-27 14:35:05 UTC
No löoop anymore in soon upcoming OO 1.1.1. Checked with srx645m27.