Issue 33330 - Writer hangs on opening native (sxw) format document
Summary: Writer hangs on opening native (sxw) format document
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 1.1.2
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL: http://www.acooke.org/design.sxw
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2004-08-24 02:27 UTC by andrew_cooke
Modified: 2013-08-07 14:41 UTC (History)
2 users (show)

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


Attachments
Opening this file freezes OOo 1.1.2 (27.76 KB, application/vnd.sun.xml.writer)
2004-08-24 07:23 UTC, dcarrera
no flags Details
'Fixed' document (27.80 KB, application/vnd.sun.xml.writer)
2004-09-06 11:30 UTC, frank.meies
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andrew_cooke 2004-08-24 02:27:50 UTC
I've been working on a document for the last few days, saving it
regularly.  Just recently I needed to reboot the computer, so I saved and
closed OO, and now I cannot load the document.  Openoffice hangs - it
appears to be using CPU but never returns from opening the document.

This is OO 1.1.2, recently downloaded, running on a reasonably fast /
well-specced i386 laptop with win2k.

I have placed the file at http://www.acooke.org/design.sxw - if some kind
soul could download/open it and, if it opens ok, send me it via email in
some other format than sxw I'm hoping that I will be able to read it.

Alternatively, perhaps the file is corrupted?  It's only 28K, for the
document that you can see at http://www.acooke.org/design.pdf
(more-or-less - without the image, and perhaps with a little more work).

(This was originally posted, in similar form, to the users mail list - a
response there suggested I open a new issue; I searched for open/hang and found
nothing that seemed identical).
Comment 1 andrew_cooke 2004-08-24 02:48:40 UTC
Update: G. R. Singleton kindly sent me a recovered version of the file, so
things are not so desperate (although it's unformatted....).
Comment 2 dcarrera 2004-08-24 07:21:16 UTC
I can confirm this issue on Solaris SPARC running OOo 1.1.2.  The file does
indeed freeze OOo completely.  As far as I can tell, there is no corruption in
the zip format.  I had no trouble unzipping the file.  And zipping it again made
no difference.  There must be something in the .xml files themselves that is
causing this.

I will upload a copy of this file.

I am confirming the issue.

I set the target milestone to 1.1.4.  I imagine that is reasonable for this kind
of bugfix.

I am setting the priority level to P2.  The application freezes on basic
functionality (loading a file).  It also causes major loss of data (due to being
unable to open the file).

Cheers,
Daniel.
Comment 3 dcarrera 2004-08-24 07:22:41 UTC
Confirmed issue on Solaris SPARC running OOo 1.1.2.  Opening this file freezes
the application completely.  Can only kill OOo using 'kill -9'.
Comment 4 dcarrera 2004-08-24 07:23:52 UTC
Created attachment 17305 [details]
Opening this file freezes OOo 1.1.2
Comment 5 michael.ruess 2004-08-24 12:43:45 UTC
MRU->FME: loops after loading while formatting. Please have a look, if a 1.1.4
fix is possible. Thanks!
Comment 6 andrew_cooke 2004-08-24 14:54:47 UTC
FYI, also hangs in OOo 1.0.2 on Red Hat 9 i386.
Comment 7 andrew_cooke 2004-08-25 16:25:28 UTC
FYI, removing the style element for "design Contents 3" from style.xml is
sufficient to recover the data (isn't XML wonderful? ;o).
Comment 8 lohmaier 2004-08-29 00:13:00 UTC
added keyword...
Comment 9 frank.meies 2004-09-06 11:28:50 UTC
There's a table of contents in this document, the paragraph style for the
entries of the first level is set to 'design Contents 0' which is linked with
style 'design Heading 0'. 'design Headling 0' has set the 'keep with next
paragraph' attribute, which perfectly makes sense. 'design Contents 0' inherits
this setting, and with it all other styles 'design Contents *' styles. This
gives us a balanced section (the table of contents) with 36 paragraphs that try
to keep together. This is a rare situation (which of course should not cause a
freeze) but I doubt that this situation is intended by the author of this
document. I suggest to set this to OOo 2.0, because I do not like to touch this
highly sensitive code for the OOo 1.1 branch, especially not for such a weird
constallation of balanced section/keep attributes. Attached you will find a
version of this file with 'keep paragraph together' disabled for the 'design
Contents 0' style.
Comment 10 frank.meies 2004-09-06 11:30:52 UTC
Created attachment 17556 [details]
'Fixed' document
Comment 11 frank.meies 2004-09-06 11:47:34 UTC
In accordance with MRU, I set this to OOo 2.0. I also change the priority to 3,
since this is not an 'every day' problem.
Comment 12 frank.meies 2004-10-05 11:24:52 UTC
Allowing the StackHack to reset bLocked for e.g., nCnt < 5 solves the problem.
Comment 13 frank.meies 2004-10-06 08:40:45 UTC
FME: Fixed in

/cvs/sw/sw/source/core/inc/frmtool.hxx,v  <--  frmtool.hxx
new revision: 1.18.4.1; previous revision: 1.18
Comment 14 andrew_cooke 2004-10-06 11:49:47 UTC
Thanks!
Comment 15 frank.meies 2004-10-21 10:04:13 UTC
*** Issue 35845 has been marked as a duplicate of this issue. ***
Comment 16 frank.meies 2004-10-28 07:06:46 UTC
FME: Ready for QA.
Comment 17 frank.meies 2004-10-28 07:07:25 UTC
.
Comment 18 frank.meies 2004-10-28 07:07:48 UTC
.
Comment 19 michael.ruess 2004-10-29 13:56:51 UTC
Verified fix in CWS swqbugfixes08.
Comment 20 michael.ruess 2004-11-18 14:34:14 UTC
Checked integration in 680m62.