Issue 87005 - Crash when formatting in template of master document changed
Summary: Crash when formatting in template of master document changed
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.3
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-13 17:04 UTC by to2
Modified: 2017-05-20 11:13 UTC (History)
3 users (show)

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


Attachments
Updating from template of Master_simple.odm should work, updating of Master_Heading.odm should fail. (245.68 KB, text/plain)
2008-03-13 17:18 UTC, to2
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description to2 2008-03-13 17:04:21 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.
Comment 1 to2 2008-03-13 17:18:54 UTC
Created attachment 52079 [details]
Updating from template of Master_simple.odm should work, updating of Master_Heading.odm should fail.
Comment 2 michael.ruess 2008-03-14 13:19:17 UTC
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. 
Comment 3 Oliver Specht 2008-07-14 14:43:35 UTC
->mru: I must be doing something wrong. I get only one box to confirm an update
and it doesn't crash.
Comment 4 michael.ruess 2008-07-14 15:38:28 UTC
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.
Comment 5 Oliver Specht 2008-07-14 16:01:29 UTC
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 
Comment 6 to2 2008-09-12 14:00:32 UTC
Tested in 3.0.0 OOO300m5 Build 9350. Unfortunatly still occurs as reported.
Comment 7 frank.loehmann 2008-10-27 11:16:09 UTC
cc me.
Comment 8 Marcus 2017-05-20 11:13:30 UTC
Reset assigne to the default "issues@openoffice.apache.org".