Issue 5649 - OpenOffice.org Writer crashes on opening a long document
Summary: OpenOffice.org Writer crashes on opening a long document
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-07 16:36 UTC by Unknown
Modified: 2013-08-07 14:43 UTC (History)
1 user (show)

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


Attachments
A document with a section inside a footnote. (5.26 KB, application/octet-stream)
2003-01-31 16:46 UTC, openoffice
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2002-06-07 16:36:25 UTC
I've been working on a 45 page document with images and graphs etc for 2 days 
without problems. For no apparent reason Writer crashed, and now every time I 
try to reopen my document the blue bar across the bottom gets approx 80% of the 
way across to show that the file is loading before I get a message that 'An 
unrecoverable error has occurred. All modified files have been saved and can 
probably be recovered at program restart.' Contrary to this message nothing is 
recoverable.

I'm running Win2k SP1, but have reproduced the identical error on a machine 
running Windows XP. The Dr Watson log info is:
 App:  (pid=1392)
 When: 6/7/2002 @ 16:16:47.328
 Exception number: c0000005 (access violation)

If you want fuller Dr Watson info let me know and I'll email you the log file.

I really hope this can be sorted - I've lost vital work for an exam due on 
Monday!!!

Many thanks

Harry
Comment 1 openoffice 2002-06-10 10:25:54 UTC
dvo: The crash occurs in the XMLParaContext destructor.
~XMLParaContext creates a text cursor over the current paragraph in
order to set the paragraph's attributes; in this case
XText::createTextCursorByRange fails and returns an empty reference ->
GPF.
The responsible implementation is
SwXFootnote::createTextCursorByRange, so this happens while importing
a footnote. The problem is apparently in unoftn.cxx#463. More
specifically, the following check fails, aRef is not being assigned to
and thus remains empty:
 if( aPam.GetNode()->FindStartNode() ==  
       pTxtFtn->GetStartNode()->GetNode())
			aRef = ...;

dvo->sba: I think TL should handle this. Please consider which version
this should be targeted for.
Comment 2 eric.savary 2003-01-30 20:45:59 UTC
ES->DVO: that's great how you cab get stack only looking at a proble
description ;-))). To evaluate a target we need to know if this may
happen to a lot of user, since when and so on. Well we need to have a
*bugdoc* to can play with.
You discretly ask for it, isn't it? So you can better decide how ro
rate it.
By default, it will be a OOo 1.1 Beta
Comment 3 openoffice 2003-01-31 16:44:16 UTC
dvo->es: Oops, I had forgotten about this one. I had indeed asked the
submitter for a bugdoc, which he promptly supplied. Added was a
comment stating asking for confidentiality which I think we should
honour, which is why I haven't submitted it to IssueZilla and won't do
so either. I also promised to delete it later, but luckily only did a
half-assed job about it (I still have the original e-mail), so i can
still reproduce the problem... :-)

Either way: The bug still isn't fixed in the current build. Since I
have a better understanding of these issues now, I have created a much
smaller bug-doc showing the same problem. I will post that doc. The
problem apparently occurs when a footnote contains a text section (at
the end?).
Comment 4 openoffice 2003-01-31 16:46:27 UTC
Created attachment 4521 [details]
A document with a section inside a footnote.
Comment 5 openoffice 2003-01-31 17:51:51 UTC
dvo: Fixed for OOo 1.1. 
Patch is in sw/source/core/unocore/unftn.cxx, sw006.

dvo->tl: This is your turf; please review.
Comment 6 openoffice 2003-02-12 17:45:50 UTC
.
Comment 7 ulf.stroehler 2003-02-17 12:30:13 UTC
US->HBrinkm: as said reopened for verification and chown.
Comment 8 ulf.stroehler 2003-02-17 12:31:14 UTC
.
Comment 9 openoffice 2003-02-17 13:05:52 UTC
Ready for QA
Comment 10 eric.savary 2003-02-19 13:40:02 UTC
fixed
Comment 11 eric.savary 2003-02-19 13:40:20 UTC
verified
Comment 12 eric.savary 2003-02-23 14:32:19 UTC
Ok in 644m4s4