Issue 9245 - Writer freezes when trying to open Word Document.
Summary: Writer freezes when trying to open Word Document.
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Windows 2000
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: ms_interoperability
Depends on:
Blocks:
 
Reported: 2002-11-15 11:32 UTC by ais
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

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


Attachments
Document that freezes OOO Writer (64.00 KB, patch)
2002-11-15 11:33 UTC, ais
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description ais 2002-11-15 11:32:31 UTC
The attached document causes OOO Writer to totally freeze, when trying to open 
it.

The document was created in Word 2000, and uses, for some odd reason, quite 
alot of text boxes.
Comment 1 ais 2002-11-15 11:33:07 UTC
Created attachment 3607 [details]
Document that freezes OOO Writer
Comment 2 Unknown 2002-11-19 20:53:03 UTC
I can duplicate this bug on Win NT 4.0, OOo 1.0.1.
When I opened this file in Word, it was O.K.
However, opening it in Writer, it froze.

I found the problem was in the text boxes.
When I deleted all of the text boxes, 
it was O.K. to open in Writer.
Even though remained only one text box, 
Writer became No Responding when opened it.
Comment 3 eric.savary 2003-04-13 02:21:50 UTC
ES->MIB: still freezes in 644m8
Comment 4 eric.savary 2003-04-13 02:23:41 UTC
Reassigned to MIB
Comment 5 michael.brauer 2003-04-14 08:51:16 UTC
Layout issue?
Comment 6 frank.meies 2003-04-14 09:42:17 UTC
FME->CMC: There seems to be a wrong SwFmtVertOrient item. nYPos is
LONG_MAX.
Comment 7 caolanm 2003-04-14 12:45:38 UTC
Well there are some ridiculously large location values set for some
frames which are therefore displayed outside the page in word. 

The first one is the frame between the visible frame with 0 in it and
the one with 20 in it. There is another frame there with "10" in it.
Checking by exporting to rtf confirms that its location truly is (in
twips)
\shpleft2147461945\shptop2147409467\shpright2147462602\shpbottom2147410037
while the first one which has a negative left in it is
\shpinst\shpleft-285\shptop34\shpright2937\shpbottom604. 

So this is the way the document actually is. I'm just passing on these
huge values near LONG_MAX from the document itself.
Comment 8 frank.meies 2003-04-15 10:24:25 UTC
FME: I don't have any idea what to do with this issue. Would you
propose to handle these values in the filter or in the layout?
Comment 9 caolanm 2003-04-15 10:54:14 UTC
Well for 2.0 and msinteroperability we need to support the general
issue of locations that are outside the page, e.g. if the values were
20000 twips vertically below the paragraph it would also be outside
the page and we'd have to hold onto it. ibis #108749# is a similiar
problem where a textbox is also positioned outside the page area. Is
the hang here related to the huge number ? Word's UI restricts the
values to be +-55,87cm i.e. SHORT_MIN/SHORT_MAX twips so I have no
idea how this document came to exist. If the filter clipped the
incoming values to this range would that help ?
Comment 10 frank.meies 2003-04-16 10:23:13 UTC
FME->CMC: Yes, this would help.
Comment 11 frank.meies 2003-04-24 14:36:14 UTC
FME->CMC: I think we should integrate the restriction of the values
into the filter, not the core. What do you think?
Comment 12 caolanm 2003-04-24 14:46:07 UTC
Certainly, bounce it back to me then and for the 2.0 I'll restrict the
values sent to layout to word's maximum UI values of
SHORT_MAX/SHORT_MIN, and if that doesn't fix this then I'll pass it
back :-)
Comment 13 frank.meies 2003-04-24 15:05:53 UTC
FME: SHRT_MAX twips is only a couple of pages. Our layout should
handle this correctly. Well, I hope so ;-)
Comment 14 caolanm 2003-04-28 17:48:27 UTC
accepted.
Comment 15 caolanm 2003-05-08 15:16:57 UTC
As discussed.
Comment 16 caolanm 2003-05-08 15:17:56 UTC
cmc->mmaher: As discussed.
Comment 17 martin_maher 2003-05-08 16:02:16 UTC
accepted
Comment 18 martin_maher 2003-05-19 14:55:51 UTC
Fixed in CWS limerickfilterteam08
Comment 19 martin_maher 2003-08-15 18:05:12 UTC
fixed in limerickfilterteam08
Comment 20 michael.ruess 2003-08-18 13:44:03 UTC
Checked fix in CWS filter08.
Comment 21 michael.ruess 2003-08-18 13:45:03 UTC
Fix will be included in OO 2.0.
Comment 22 utomo99 2003-11-18 09:18:38 UTC
Hi,

I found that this issue is Fixed, but target is OOo 2.0. 
Please consider to include this in OOo 1.1.1 if possible. 
Thankyou
Comment 23 michael.ruess 2003-11-27 09:37:04 UTC
o.k. in OO 2.0 snapshot src680m13.