Apache OpenOffice (AOO) Bugzilla – Issue 72060
new Chart: DocumentHolder::ShowUI() for new chart crashes due to reparenting and empty DockingAreaAcceptor
Last modified: 2007-07-17 16:09:39 UTC
1. New Calc document 2. Enter some numbers and insert a Chart => Before the Hatchborder is drawn, the Office crashes in Window::SetParent() Please fix on CWS chart2mst3. As a workaround, I changed two lines to avoid the crash. For reproducing the crash, un-comment the two lines starting with //HOTFIX in embeddedobj/source/general/docholder.cxx (lines 814 and 899) or switch back to revision 1.19.10.9. Stack : > vcl680mi.dll!Window::ImplGetFirstOverlapWindow() Line 1596 + 0x3 bytes C++ vcl680mi.dll!Window::SetParent(Window * pNewParent=0x00000000) Line 6223 + 0x8 bytes C++ fwk680mi.dll!framework::LayoutManager::implts_reparentChildWindows() Line 3937 C++ fwk680mi.dll!framework::LayoutManager::setDockingAreaAcceptor(const com::sun::star::uno::Reference<com::sun::star::ui::XDockingAreaAcceptor> & xDockingAreaAcceptor={...}) Line 3826 C++ embobj.dll!DocumentHolder::ShowUI(const com::sun::star::uno::Reference<com::sun::star::frame::XLayoutManager> & xContainerLM={...}, const com::sun::star::uno::Reference<com::sun::star::frame::XDispatchProvider> & xContainerDP={...}, const rtl::OUString & aContModuleName={...}) Line 814 + 0x3e bytes C++ embobj.dll!OCommonEmbeddedObject::SwitchStateTo_Impl(long nNextState=4) Line 379 + 0x1a bytes C++ embobj.dll!OCommonEmbeddedObject::changeState(long nNewState=4) Line 522 + 0xc bytes C++ embobj.dll!OCommonEmbeddedObject::doVerb(long nVerbID=-1) Line 604 + 0x10 bytes C++ sfx680mi.dll!SfxInPlaceClient::DoVerb() + 0x245 bytes C++ sc680mi.dll!ScTabViewShell::ActivateObject() + 0x374 bytes C++ sc680mi.dll!FuInsertChart::FuInsertChart(ScTabViewShell * pViewSh=0x0939bf88, Window * pWin=0x0939de60, SdrView * pView=0x0938dd10, SdrModel * pDoc=0x093bd3d8, SfxRequest & rReq={...}) Line 700 C++ sc680mi.dll!ScTabViewShell::ExecDrawIns() + 0x288 bytes C++
cd: Accepted. I have to look why reparenting and the new docking area acceptor changes collides. As I introduced the reparenting about 1 year ago I have to check the code again to find a good solution.
cd: Fixed by MBA.
cd->kla: Please verify.
Confirmed that the two hot-fix commented-out lines are uncommented now, and the crash no longer happens.
changed target to 2.3
set keyword and changed issue type
verified
Verified fixed in m221