unexpected css::container::ElementExistException in SwXFrame::attachToRange

Stephan Bergmann sbergman at redhat.com
Fri May 31 01:07:57 PDT 2013


Loading test3.docx attached to 
<https://bugs.freedesktop.org/show_bug.cgi?id=41466> "Missing notes and 
moved components after importing .docx file" leads to an unexpected 
css::container::ElementExistException in SwXFrame::attachToRange 
(resulting in std::unexpected abort with --enable-dbgutil) in recent 
master builds, where the exception is thrown as below.  Someone more 
familiar with the sw code would need to decide how to address this.

Stephan

> #0  com::sun::star::container::ElementExistException::ElementExistException (this=0x161bc20) at lo/core/workdir/unxlngx6/UnoApiHeadersTarget/udkapi/normal/com/sun/star/container/ElementExistException.hpp:17
> #1  0x00007fffd137d9cf in SvxUnoNameItemTable::insertByName (this=0x7fffc9a0ddd8, aApiName="Gradient 7", aElement=uno::Any {Style = com::sun::star::awt::GradientStyle_LINEAR, StartColor = 8421504, EndColor = 14277081, Angle = 0, Border = 0, XOffset = 0, YOffset = 0, StartIntensity = 100, EndIntensity = 100, StepCount = 0}) at lo/core/svx/source/unodraw/UnoNameItemTable.cxx:111
> #2  0x00007fffce67c427 in BaseFrameProperties_Impl::FillBaseProperties (this=0x161e7c0, pDoc=0x13f8620, rToSet=..., rFromSet=..., rSizeFound=@0x7fffffff904f: false) at lo/core/sw/source/core/unocore/unoframe.cxx:270
> #3  0x00007fffce67e879 in SwFrameProperties_Impl::AnyToItemSet (this=0x161e7c0, pDoc=0x13f8620, rSet=..., rSizeFound=@0x7fffffff904f: false) at lo/core/sw/source/core/unocore/unoframe.cxx:625
> #4  0x00007fffce6872bf in SwXFrame::attachToRange (this=0x7fffc9a046f8, xTextRange=uno::Reference to (SwXTextRange *) 0x7fffc95ebd70) at lo/core/sw/source/core/unocore/unoframe.cxx:2146
> #5  0x00007fffce6897e2 in SwXFrame::attach (this=0x7fffc9a046f8, xTextRange=uno::Reference to (SwXTextRange *) 0x7fffc95ebd70) at lo/core/sw/source/core/unocore/unoframe.cxx:2466
> #6  0x00007fffce68b804 in SwXTextFrame::attach (this=0x7fffc9a04650, xTextRange=uno::Reference to (SwXTextRange *) 0x7fffc95ebd70) at lo/core/sw/source/core/unocore/unoframe.cxx:2731
> #7  0x00007fffce75f54a in SwXText::insertTextContent (this=0x7fffe0ad44d0, xRange=uno::Reference to (SwXTextCursor *) 0x7fffc99f1f80, xContent=uno::Reference to (SwXTextFrame *) 0x7fffc9a04678, bAbsorb=0 '\000') at lo/core/sw/source/core/unocore/unotext.cxx:617
> #8  0x00007fffc9c1170d in writerfilter::dmapper::DomainMapper_Impl::PushShapeContext (this=0x14edc80, xShape=uno::Reference to (SwXTextFrame *) 0x7fffc9a04738) at lo/core/writerfilter/source/dmapper/DomainMapper_Impl.cxx:1723
> #9  0x00007fffc9bd455b in writerfilter::dmapper::DomainMapper::lcl_startShape (this=0x14ef5f0, xShape=uno::Reference to (SwXTextFrame *) 0x7fffc9a04738) at lo/core/writerfilter/source/dmapper/DomainMapper.cxx:3505
> #10 0x00007fffc9d5d40e in writerfilter::LoggedStream::startShape (this=0x14ef608, xShape=uno::Reference to (SwXTextFrame *) 0x7fffc9a04738) at lo/core/writerfilter/source/resourcemodel/LoggedResources.cxx:151
> #11 0x00007fffc9d1b8b8 in writerfilter::ooxml::OOXMLFastContextHandlerShape::sendShape (this=0x7fffc9a94f10, Element=1577992) at lo/core/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx:2046
> #12 0x00007fffc9d1c981 in writerfilter::ooxml::OOXMLFastContextHandlerWrapper::lcl_createFastChildContext (this=0x7fffc99f3a30, Element=1577992, Attribs=uno::Reference to (sax_fastparser::FastAttributeList *) 0x7fffc9aa79f8) at lo/core/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx:2308
> #13 0x00007fffc9d15160 in writerfilter::ooxml::OOXMLFastContextHandler::createFastChildContext (this=0x7fffc99f3a30, Element=1577992, Attribs=uno::Reference to (sax_fastparser::FastAttributeList *) 0x7fffc9aa79f8) at lo/core/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx:275
> #14 0x00007fffcf76cbd6 in sax_fastparser::FastSaxParser::callbackStartElement (this=0x7fffe0ad6008, pwName=0x15bef20 "v:textbox", awAttributes=0x1515170) at lo/core/sax/source/fastparser/fastparser.cxx:832
> #15 0x00007fffcf769747 in sax_fastparser::call_callbackStartElement (userData=0x7fffe0ad6008, name=0x15bef20 "v:textbox", atts=0x1515170) at lo/core/sax/source/fastparser/fastparser.cxx:106
> #16 0x00007fffcf7821fb in doContent (parser=0x1542700, startTagLevel=0, enc=0x7fffcf9bf480 <utf8_encoding>, s=0x1626e75 "<v:textbox><w:txbxContent><w:p w:rsidR=\"00C4245D\" w:rsidRPr=\"0059319A\" w:rsidRDefault=\"00C4245D\" w:rsidP=\"0059319A\"><w:pPr><w:jc w:val=\"center\"/><w:rPr><w:lang w:val=\"cs-CZ\"/></w:rPr></w:pPr><w:r><w:r"..., end=0x1626fd1 "", nextPtr=0x1542730, haveMore=1 '\001') at lo/core/workdir/unxlngx6/UnpackedTarball/expat/lib/xmlparse.c:2443
> #17 0x00007fffcf781376 in contentProcessor (parser=0x1542700, start=0x1622fd0 "</w:t></w:r><w:proofErr w:type=\"spellStart\"/><w:r><w:rPr><w:rFonts w:ascii=\"Arial\" w:hAnsi=\"Arial\"/><w:sz w:val=\"20\"/><w:lang w:val=\"cs-CZ\"/></w:rPr><w:t>xxx</w:t></w:r><w:proofErr w:type=\"spellEnd\"/>"..., end=0x1626fd1 "", endPtr=0x1542730) at lo/core/workdir/unxlngx6/UnpackedTarball/expat/lib/xmlparse.c:2105
> #18 0x00007fffcf780662 in XML_ParseBuffer (parser=0x1542700, len=16384, isFinal=0) at lo/core/workdir/unxlngx6/UnpackedTarball/expat/lib/xmlparse.c:1651
> #19 0x00007fffcf780528 in XML_Parse (parser=0x1542700, s=0x7fffc99fc010 "/w:t></w:r><w:proofErr w:type=\"spellStart\"/><w:r><w:rPr><w:rFonts w:ascii=\"Arial\" w:hAnsi=\"Arial\"/><w:sz w:val=\"20\"/><w:lang w:val=\"cs-CZ\"/></w:rPr><w:t>xxx</w:t></w:r><w:proofErr w:type=\"spellEnd\"/><"..., len=16384, isFinal=0) at lo/core/workdir/unxlngx6/UnpackedTarball/expat/lib/xmlparse.c:1617
> #20 0x00007fffcf76bbcd in sax_fastparser::FastSaxParser::parse (this=0x7fffe0ad6008) at lo/core/sax/source/fastparser/fastparser.cxx:659
> #21 0x00007fffcf76b126 in sax_fastparser::FastSaxParser::parseStream (this=0x7fffe0ad6008, maStructSource=...) at lo/core/sax/source/fastparser/fastparser.cxx:473
> #22 0x00007fffc9d067f8 in writerfilter::ooxml::OOXMLDocumentImpl::resolve (this=0x14fdf80, rStream=...) at lo/core/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx:343
> #23 0x00007fffc9cf9cc0 in WriterFilter::filter (this=0x7fffe0ad7ed8, aDescriptor=uno::Sequence of length 12 = {...}) at lo/core/writerfilter/source/filter/ImportFilter.cxx:118
> #24 0x00007ffff6193ad9 in SfxObjectShell::ImportFrom (this=0x13e19b0, rMedium=..., bInsert=false) at lo/core/sfx2/source/doc/objstor.cxx:2261
> #25 0x00007ffff618be13 in SfxObjectShell::DoLoad (this=0x13e19b0, pMed=0x13e9290) at lo/core/sfx2/source/doc/objstor.cxx:754
> #26 0x00007ffff61d0d2a in SfxBaseModel::load (this=0x7fffe5e1f538, seqArguments=uno::Sequence of length 13 = {...}) at lo/core/sfx2/source/doc/sfxbasemodel.cxx:1888
> #27 0x00007ffff62b6d7b in SfxFrameLoader_Impl::load (this=0x7fffe0190cb8, rArgs=uno::Sequence of length 11 = {...}, _rTargetFrame=uno::Reference to (framework::Frame *) 0x7fffe40c8038) at lo/core/sfx2/source/view/frmload.cxx:598
> #28 0x00007fffe169298b in framework::LoadEnv::impl_loadContent (this=0x7fffe40bbaf0) at lo/core/framework/source/loadenv/loadenv.cxx:1169
> #29 0x00007fffe168ed87 in framework::LoadEnv::startLoading (this=0x7fffe40bbaf0) at lo/core/framework/source/loadenv/loadenv.cxx:397
> #30 0x00007fffe1615c55 in framework::LoadDispatcher::impl_dispatch (this=0x7fffe40bba70, rURL=..., lArguments=uno::Sequence of length 4 = {...}, xListener=empty uno::Reference) at lo/core/framework/source/dispatch/loaddispatcher.cxx:119
> #31 0x00007fffe161592c in framework::LoadDispatcher::dispatchWithReturnValue (this=0x7fffe40bba70, rURL=..., lArguments=uno::Sequence of length 4 = {...}) at lo/core/framework/source/dispatch/loaddispatcher.cxx:65
> #32 0x00007ffff76b98aa in comphelper::SynchronousDispatch::dispatch (xStartPoint=uno::Reference to (framework::Desktop *) 0x7fffe40bfa40, sURL="file://Downloads/test3.docx", sTarget="_default", nFlags=0, lArguments=uno::Sequence of length 4 = {...}) at lo/core/comphelper/source/misc/synchronousdispatch.cxx:69
> #33 0x00007ffff7aba8de in desktop::DispatchWatcher::executeDispatchRequests (this=0x7fffe0ab30f0, aDispatchRequestsList=std::__debug::vector of length 1, capacity 1 = {...}, bNoTerminate=false) at lo/core/desktop/source/app/dispatchwatcher.cxx:384
> #34 0x00007ffff7ac9fe4 in desktop::OfficeIPCThread::ExecuteCmdLineRequests (aRequest=...) at lo/core/desktop/source/app/officeipcthread.cxx:1060
> #35 0x00007ffff7a8ea32 in desktop::Desktop::OpenClients () at lo/core/desktop/source/app/app.cxx:2509
> #36 0x00007ffff7a8bda6 in desktop::Desktop::OpenClients_Impl (this=0x7fffffffe390) at lo/core/desktop/source/app/app.cxx:2018
> #37 0x00007ffff7a8bd6b in desktop::Desktop::LinkStubOpenClients_Impl (pThis=0x7fffffffe390, pCaller=0x0) at lo/core/desktop/source/app/app.cxx:2013
> #38 0x00007ffff3054678 in Link::Call (this=0x129f1b0, pCaller=0x0) at lo/core/include/tools/link.hxx:123
> #39 0x00007ffff361e0cc in ImplHandleUserEvent (pSVEvent=0x129da40) at lo/core/vcl/source/window/winproc.cxx:1986
> #40 0x00007ffff361f633 in ImplWindowFrameProc (pWindow=0x1180fd0, nEvent=22, pEvent=0x129da40) at lo/core/vcl/source/window/winproc.cxx:2601
> #41 0x00007ffff362dcd3 in SalFrame::CallCallback (this=0x11814c0, nEvent=22, pEvent=0x129da40) at lo/core/vcl/inc/salframe.hxx:243
> #42 0x00007ffff362d75e in SalGenericDisplay::DispatchInternalEvent (this=0x6b15e0) at lo/core/vcl/generic/app/gendisp.cxx:91
> #43 0x00007fffe592805a in GtkData::userEventFn (data=0x622780) at lo/core/vcl/unx/gtk/app/gtkdata.cxx:935
> #44 0x00007fffe59280b5 in call_userEventFn (data=0x622780) at lo/core/vcl/unx/gtk/app/gtkdata.cxx:945
> #45 0x0000003222c47a55 in g_main_dispatch (context=0x65b230) at gmain.c:2715
> #46 g_main_context_dispatch (context=context at entry=0x65b230) at gmain.c:3219
> #47 0x0000003222c47d88 in g_main_context_iterate (context=context at entry=0x65b230, block=block at entry=0, dispatch=dispatch at entry=1, self=<optimized out>) at gmain.c:3290
> #48 0x0000003222c47e44 in g_main_context_iteration (context=0x65b230, may_block=0) at gmain.c:3351
> #49 0x00007fffe5926f1e in GtkData::Yield (this=0x622780, bWait=true, bHandleAllCurrentEvents=false) at lo/core/vcl/unx/gtk/app/gtkdata.cxx:574
> #50 0x00007fffe592aabe in GtkInstance::Yield (this=0x622520, bWait=true, bHandleAllCurrentEvents=false) at lo/core/vcl/unx/gtk/app/gtkinst.cxx:404
> #51 0x00007ffff306e3e4 in ImplYield (i_bWait=true, i_bAllEvents=false) at lo/core/vcl/source/app/svapp.cxx:422
> #52 0x00007ffff306a97d in Application::Yield (i_bAllEvents=false) at lo/core/vcl/source/app/svapp.cxx:456
> #53 0x00007ffff306a91e in Application::Execute () at lo/core/vcl/source/app/svapp.cxx:401
> #54 0x00007ffff7a8a148 in desktop::Desktop::Main (this=0x7fffffffe390) at lo/core/desktop/source/app/app.cxx:1720
> #55 0x00007ffff3076e65 in ImplSVMain () at lo/core/vcl/source/app/svmain.cxx:162
> #56 0x00007ffff3076f4e in SVMain () at lo/core/vcl/source/app/svmain.cxx:198
> #57 0x00007ffff7acc8b6 in soffice_main () at lo/core/desktop/source/app/sofficemain.cxx:82
> #58 0x0000000000400968 in sal_main () at lo/core/desktop/source/app/main.c:48
> #59 0x0000000000400949 in main (argc=2, argv=0x7fffffffe578) at lo/core/desktop/source/app/main.c:47


More information about the LibreOffice mailing list