Apache OpenOffice (AOO) Bugzilla – Issue 1676
Can't open Word Files in OO 638
Last modified: 2003-09-08 16:56:16 UTC
The following 3 attachments are created by MicroSoft Word and can be open using Word 97. When try to open using OO 638, a unrecoverable error was reported. These Word documents are actual and serious work, not generated for testing purpose, so the user was using quite some features in MS-Word.
Created attachment 509 [details] First Attachment that can't be open
Created attachment 510 [details] Second attachment that can't be opened
Created attachment 511 [details] Third document that can't be opened
Reassigned to mru.
It crashes in the Drawing Layer (Stack with 641e1). The files contain groups of graphics and text objects. When I ungroup them in Winword and them import the file into Writer, the crash doesn´t occur. I´ll attach a shorter document which shows the problem.
Created attachment 570 [details] Shorter document with grouped objects
*** Issue 1836 has been marked as a duplicate of this issue. ***
I will take care of this bug soon.
Hi Caolan, the problem is located in ww8graf.cxx in line 2578. A object is accessed that has already been deleted. if( bEraseThisObject ) { if( pGroupObject || (pSdrTextObj != pTrueObject) ) { SdrObject* pNewObj = pGroupObject ? pGroupObject->GetSubList()->GetObj(nOrdNum) : pTrueObject; pMSDffManager->ExchangeInShapeOrder(pSdrTextObj, 0,0, pNewObj); delete pRecord->pObj; //2578 !! pObj can be equal to pNewObj pRecord->pObj = pNewObj; } } The crash can been fixed easily, but the question here is, if it is correct to replace the object there. It will be good if you can evaluate this. Have fun, Sven
cmc: hmm, very dodgy logic. Fix checked in.
Crash begone in 641i
Now fixed for OpenOffice 641.
Works with OO641.