Apache OpenOffice (AOO) Bugzilla – Issue 41892
Crash when inserting chart in draw/impress
Last modified: 2005-02-07 15:40:38 UTC
This is a beta showstopper. Open a new draw/impress and insert a chart: Office crashes. Insert must use insert/chart or the inser chart-button. Ok in m75.
This is the relevant stack part (Linux): #0 0x00000800 in ?? () #1 0xb6a3d84a in SdrObject::IsGroupObject (this=0xae0741d0) at svdobj.hxx:756 #2 0xb6b1e8ad in SdrObjListIter::ImpProcessObjectList (this=0xbfffd614, rObjList=@0xae0836f8, eMode=IM_FLAT) at /work/dev/m76/SRC680/svx/source/svdraw/svditer.cxx:109 #3 0xb6b1e6be in SdrObjListIter (this=0xbfffd614, rObjList=@0xae0836f8, eMode=IM_FLAT, bReverse=0 '\0') at /work/dev/m76/SRC680/svx/source/svdraw/svditer.cxx:88 #4 0xae15c6c2 in GetObjWithId (nObjId=12, rObjList=@0xae0836f8, pIndex=0x0, eMode=IM_FLAT) at /work/dev/m76/SRC680/sch/source/core/objid.cxx:110 #5 0xae12a377 in ChartModel::DeleteChartObjects (this=0xae2fa828) at /work/dev/m76/SRC680/sch/source/core/chtmode4.cxx:1563 #6 0xae12b728 in ChartModel::BuildChart (this=0xae2fa828, bCheckRanges=0 '\0', whatTitle=0) at /work/dev/m76/SRC680/sch/source/core/chtmode4.cxx:1983 #7 0xae128b7a in ChartModel::Initialize (this=0xae2fa828) at /work/dev/m76/SRC680/sch/source/core/chtmode4.cxx:1190 #8 0xae1bfbb2 in SchChartDocShell::Draw (this=0xae2fc8e0, pOut=0xbfffda90, rSetup=@0xbfffda70, nAspect=1) at /work/dev/m76/SRC680/sch/source/ui/docshell/docshel1.cxx:187 #9 0xb5bcef92 in SfxObjectShell::DoDraw_Impl (this=0xae2fc8e0, pDev=0xbfffda90, rViewPos=@0xbfffda50, rScaleX=@0xbfffd9b4, rScaleY=@0xbfffd9a4, rSetup=@0xbfffda70, nAspect=1) at /work/dev/m76/SRC680/sfx2/source/doc/objembed.cxx:337 #10 0xb5bcec47 in SfxObjectShell::DoDraw (this=0xae2fc8e0, pDev=0xbfffda90, rObjPos=@0xbfffda50, rSize=@0xbfffda68, rSetup=@0xbfffda70, nAspect=1) at /work/dev/m76/SRC680/sfx2/source/doc/objembed.cxx:280 #11 0xb5b74f1f in SfxObjectShell::GetPreviewMetaFile (this=0xae2fc8e0, bFullContent=1 '\001') at gen.hxx:105 #12 0xb5bb0493 in SfxBaseModel::getTransferData (this=0xafe02e5c, aFlavor=@0xbfffddc8) at objsh.hxx:807 #13 0xae2c1c62 in OCommonEmbeddedObject::getPreferredVisualRepresentation () from /work/dev/m76/so/program/libembobj.so #14 0xb791506d in svt::EmbeddedObjectRef::GetGraphicReplacementStream () from /work/dev/m76/so/program/libsvt680li.so #15 0xb7915449 in svt::EmbeddedObjectRef::GetGraphicStream () from /work/dev/m76/so/program/libsvt680li.so #16 0xb79155d8 in svt::EmbeddedObjectRef::GetReplacement () from /work/dev/m76/so/program/libsvt680li.so #17 0xb79156c3 in svt::EmbedEventListener_Impl::modified () from /work/dev/m76/so/program/libsvt680li.so #18 0xb5baa7af in SfxBaseModel::changing (this=0xafe02e48) at /net/jumbo.germany/sol1/SRC680/src/sfx2/source/doc/sfxbasemodel.cxx:3038 #19 0xb5bb613a in SfxBaseModel::Notify (this=0xafe02e5c, rBC=@0x800, rHint=@0xbfffe0e8) at /net/jumbo.germany/sol1/SRC680/src/sfx2/source/doc/sfxbasemodel.cxx:2822 #20 0xb7cef5a1 in SfxBroadcaster::Broadcast () from /work/dev/m76/so/program/libsvl680li.so #21 0xae1c08de in SchChartDocShell::SetModified (this=0xae2fc8e0, bModified=1 '\001') at /work/dev/m76/SRC680/sch/source/ui/docshell/docshel1.cxx:493 #22 0xae159295 in ChartModel::SetChanged (this=0xae2fa828, bFlag=1 '\001') at /work/dev/m76/SRC680/sch/source/core/chartdoc.cxx:521 #23 0xb6b37b3e in SdrObjList::RemoveObject (this=0xae0836f8, nObjNum=0) at /work/dev/m76/SRC680/svx/source/svdraw/svdpage.cxx:492 #24 0xae112f31 in ChartModel::DeleteObject (this=0xae2fa828, pObj=0xae073420) at /work/dev/m76/SRC680/sch/source/core/chtmode1.cxx:225 #25 0xae12a2db in ChartModel::DeleteChartObjects (this=0xae2fa828) at /work/dev/m76/SRC680/sch/source/core/chtmode4.cxx:1554 #26 0xae12b728 in ChartModel::BuildChart (this=0xae2fa828, bCheckRanges=0 '\0', whatTitle=0) at /work/dev/m76/SRC680/sch/source/core/chtmode4.cxx:1983 #27 0xae184f86 in SchSetTransparent (aIPObj=@0xbfffe820, bTransp=1 '\001') at /work/dev/m76/SRC680/sch/source/ui/app/schdll.cxx:249 #28 0xb01c452a in SchDLL::SetTransparentBackground (aIPObj=@0xbfffe820, bTransp=1 '\001') at /net/jumbo.germany/sol1/SRC680/src/sch/source/ui/app/schlib.cxx:301 #29 0xb000191e in FuInsertOLE (this=0xae5ddac8, pViewSh=0xaef97320, pWin=0xaef97f60, pView=0xaef9eb08, pDoc=0xafe08750, rReq=@0xaec71e78) at /work/dev/m76/SRC680/sd/source/ui/func/fuinsert.cxx:416 #30 0xaff6fae7 in sd::DrawViewShell::FuTemp01 (this=0xaef97320, rReq=@0xaec71e78) at /net/jumbo.germany/sol1/SRC680/src/sd/source/ui/view/drviews8.cxx:303 #31 0xaff5f901 in sd::DrawViewShell::FuTemporary (this=0xaef97320, rReq=@0xaec71e78) at /net/jumbo.germany/sol1/SRC680/src/sd/source/ui/view/drviews2.cxx:1036 #32 0xaff870ba in SfxStubDrawViewShellFuTemporary (pShell=0xaef97320, rReq=@0xaec71e78) at sdslots.hxx:1055
I fixed this by removing a fix for internal bug number 109154. It appears to be ok to remove this line without reintroducing this bug. This is probably not the most elegant fix, but it works and obviously creates no regression. Even if it would cause regression it would have to do with the background of the chart being transparent or not, which at least could be worked around.
Note: We should have an eye on this. BuildChart deletes objects which results in a SetModified at the document, which posts an event that again might perform a BuildChart. This should never happen. As the current chart implementation will probably no longer be part of the next release after OOo 2.0, we might leave it like this for now.
reopened for resend
please verify in CWS impressbeta1 (so-cwsserv10)
resetting to fixed
Verified in CWS.
Tested in master. Closed.