Apache OpenOffice (AOO) Bugzilla – Issue 87005
Crash when formatting in template of master document changed
Last modified: 2017-05-20 11:13:30 UTC
I create a template T. From that template I create 1 master-document M and 2 sub-documents S1 and S2. Then I integrate subs into master document. When I change a format style, for instance the font height of "Standard" format in template T and open master-document M, Writer chrashes. This has been that way since version 2.0. Investigations: Crash doesn't occur, if S1 and S2 are empty (1 paragraph, no text). Crash doesn't occur, if S1 and S2 contain some words in Standard format style. But for writing a book I need some more format styles than "Standard" only. Crash occurs if S1 and S2 contain 1 line "Heading" and 1 line in "Standard" format style. It is possible to let the sub-documents update their styles from template. But the update in master-document fails. First it asks "Update all links?" - Yes. Then it asks "Format styles in your template changed, do you like to update?" - Yes - and crash. I experienced this with the german version.
Created attachment 52079 [details] Updating from template of Master_simple.odm should work, updating of Master_Heading.odm should fail.
MRU->OS: extract the attached archive and keep the given path/folder as is. Change the font in the template to e.g. 10pt, open the Master_Heading.odm, confirm the two "update?" messages -> crash.
->mru: I must be doing something wrong. I get only one box to confirm an update and it doesn't crash.
I managed to remember how to crash exactly... here's step by step: 1. open the template in Texte/Dokumentvorlagen OOO/ 2. in the template change font size of Default para style and save template. 3. Open Master_Heading.odm in Texte/VibroMatrix Doku 1.6/ Now you should get two queries (one for Links update, one for style update). After these queries -> crash. If you are still not able to reproduce, we should both have a look tomorrow.
Finally I was able to reproduce. The template directory had to be added to the template path. Reassigned to OD stack: swmi.dll!SwPageFrm::RemoveFlyFromPage() + 0x23 Bytes swmi.dll!SwFrm::RemoveFly() + 0x23 Bytes swmi.dll!SwFlyFrm::~SwFlyFrm() + 0xb0 Bytes swmi.dll!SwFlyFreeFrm::~SwFlyFreeFrm() + 0xb4 Bytes swmi.dll!SwFlyAtCntFrm::~SwFlyAtCntFrm() + 0x18 Bytes swmi.dll!SwFlyAtCntFrm::`vector deleting destructor'() + 0xb Bytes swmi.dll!DelFlys() + 0x67 Bytes swmi.dll!SwPageFrm::PrepareFooter() + 0x93 Bytes swmi.dll!SwPageFrm::Modify() + 0x1b6 Bytes swmi.dll!SwLayoutFrm::SetFrmFmt() + 0x3d Bytes swmi.dll!SwPageFrm::SetPageDesc() + 0x17 Bytes swmi.dll!SwFrm::CheckPageDescs() + 0x217 Bytes swmi.dll!SwCntntFrm::_UpdateAttr() + 0x17b Bytes swmi.dll!SwCntntFrm::Modify() + 0x84 Bytes swmi.dll!SwTxtFrm::Modify() + 0x7a2 Bytes swmi.dll!SwModify::Modify() + 0xc5 Bytes swmi.dll!SwCntntNode::Modify() + 0x130 Bytes swmi.dll!SwTxtNode::Modify() + 0x70 Bytes swmi.dll!SwModify::Modify() + 0xc5 Bytes swmi.dll!SwFmt::Modify() + 0x188 Bytes > swmi.dll!SwTxtFmtColl::Modify(SfxPoolItem * pOld=0x00ebeb54, SfxPoolItem * pNew=0x00ebeb6c) Zeile 357 swmi.dll!SwFmt::SetFmtAttr() + 0xce Bytes swmi.dll!SwTxtFmtColl::SetFmtAttr(const SfxItemSet & rSet={...}) Zeile 398 + 0xc Bytes swmi.dll!SwDoc::CopyFmtArr(const SvPtrarr & rSourceArr={...}, SvPtrarr & rDestArr={...}, SwFmt * (const String &, SwFmt *, unsigned char, unsigned char)* fnCopyFmt=0x09b53e09, SwFmt & rDfltFmt={...}) Zeile 2008 swmi.dll!SwDoc::ReplaceStyles(SwDoc & rSource={...}) Zeile 2215 swmi.dll!SwDocShell::_LoadStyles(SfxObjectShell & rSource={...}, unsigned char bPreserveCurrentDocument=0) Zeile 1245 swmi.dll!SwDocShell::LoadStyles(SfxObjectShell & rSource={...}) Zeile 1212 sfxmi.dll!SfxObjectShell::UpdateFromTemplate_Impl() Zeile 1336 sfxmi.dll!SfxViewFrame::UpdateDocument_Impl() Zeile 3822 sfxmi.dll!SfxFrameLoader_Impl::load(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> & rArgs={...}, const com::sun::star::uno::Reference<com::sun::star::frame::XFrame> & rFrame={...}) Zeile 536 fwkmi.dll!06e477d0() [Unten angegebene Rahmen sind möglicherweise nicht korrekt und/oder
Tested in 3.0.0 OOO300m5 Build 9350. Unfortunatly still occurs as reported.
cc me.
Reset assigne to the default "issues@openoffice.apache.org".