https://bugs.documentfoundation.org/show_bug.cgi?id=157726
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #5 from Julien Nabet <[email protected]> --- On pc Debian x86-64 with master sources updated today, I could reproduce this. Noticing this on console: warn:reportdesign:173744:173744:reportdesign/source/filter/xml/xmlfilter.cxx:141: com.sun.star.xml.sax.SAXParseException message: "[ line 2]: unknown error at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:604" wrapped: com.sun.star.lang.IndexOutOfBoundsException message: "Index (0) needs to be a positive integer smaller than the shape count (0)! at /home/julien/lo/libreoffice/svx/source/unodraw/unopage.cxx:356" PublicId: SystemId: LineNumber: 2 ColumnNumber: 23966 I tried this patch: diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx index 1c98d239243f..12568ce7a5e8 100644 --- a/reportdesign/source/core/api/Section.cxx +++ b/reportdesign/source/core/api/Section.cxx @@ -457,7 +457,7 @@ sal_Bool SAL_CALL OSection::hasElements( ) uno::Any SAL_CALL OSection::getByIndex( ::sal_Int32 Index ) { ::osl::MutexGuard aGuard(m_aMutex); - return m_xDrawPage.is() ? m_xDrawPage->getByIndex(Index) : uno::Any(); + return this->getCount() ? m_xDrawPage->getByIndex(Index) : uno::Any(); } // XEnumerationAccess but now I've got: #0 0x00007f9da30d8a63 in __gnu_debug::_Safe_sequence_base::_M_detach_all() () at /lib/x86_64-linux-gnu/libstdc++.so.6 #1 0x00007f9c32166255 in __gnu_debug::_Safe_sequence_base::~_Safe_sequence_base() (this=0x55bf36f8bab8) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/debug/safe_base.h:221 #2 0x00007f9c336d7be5 in __gnu_debug::_Safe_sequence<std::__debug::vector<SwXMLTableContext::ColumnWidthInfo, std::allocator<SwXMLTableContext::ColumnWidthInfo> > >::~_Safe_sequence() (this=0x55bf36f8bab8) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/debug/safe_sequence.h:108 #3 0x00007f9c336d7a65 in __gnu_debug::_Safe_container<std::__debug::vector<SwXMLTableContext::ColumnWidthInfo, std::allocator<SwXMLTableContext::ColumnWidthInfo> >, std::allocator<SwXMLTableContext::ColumnWidthInfo>, __gnu_debug::_Safe_sequence, true>::~_Safe_container() (this=0x55bf36f8bab8) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/debug/safe_container.h:41 #4 0x00007f9c336d4a06 in std::__debug::vector<SwXMLTableContext::ColumnWidthInfo, std::allocator<SwXMLTableContext::ColumnWidthInfo> >::~vector() (this=0x55bf36f8bab8) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/debug/vector:230 #5 0x00007f9c336c6525 in SwXMLTableContext::~SwXMLTableContext() (this=0x55bf36f8b8f0) at /home/julien/lo/libreoffice/sw/source/filter/xml/xmltbli.cxx:1290 #6 0x00007f9c336c6589 in SwXMLTableContext::~SwXMLTableContext() (this=0x55bf36f8b8f0) at /home/julien/lo/libreoffice/sw/source/filter/xml/xmltbli.cxx:1281 #7 0x00007f9d964587e2 in SvXMLImportContext::release() (this=0x55bf36f8b8f0) at include/xmloff/xmlictxt.hxx:107 #8 0x00007f9d9663320a in rtl::Reference<SvXMLImportContext>::~Reference() (this=0x7ffd42845050) at include/rtl/ref.hxx:129 #9 0x00007f9d96625607 in SvXMLImport::endFastElement(int) (this=0x55bf3a40cb10, Element=263985) at /home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:892 #10 0x00007f9d98d60d1f in (anonymous namespace)::Entity::endElement() (this=0x55bf36cb8ee0) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:514 #11 0x00007f9d98d60bf1 in sax_fastparser::FastSaxParserImpl::callbackEndElement() (this=0x55bf3a3c4b10) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:1331 #12 0x00007f9d98d5cf89 in (anonymous namespace)::call_callbackEndElement(void*, unsigned char const*, unsigned char const*, unsigned char const*) (userData=0x55bf3a3c4b10) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:338 #13 0x00007f9d9b2a0e45 in () at /lib/x86_64-linux-gnu/libxml2.so.2 #14 0x00007f9d9b2ae379 in () at /lib/x86_64-linux-gnu/libxml2.so.2 #15 0x00007f9d9b2af62b in xmlParseChunk () at /lib/x86_64-linux-gnu/libxml2.so.2 #16 0x00007f9d98d5b85a in sax_fastparser::FastSaxParserImpl::parse() (this=0x55bf3a3c4b10) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:1085 #17 0x00007f9d98d5a18a in sax_fastparser::FastSaxParserImpl::parseStream(com::sun::star::xml::sax::InputSource const&) (this=0x55bf3a3c4b10, rStructSource=...) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:890 #18 0x00007f9d98d62589 in sax_fastparser::FastSaxParser::parseStream(com::sun::star::xml::sax::InputSource const&) (this=0x55bf3a3ff1a0, aInputSource=...) at /home/julien/lo/libreoffice/sax/source/fastparser/fastparser.cxx:1470 #19 0x00007f9d96620458 in SvXMLImport::parseStream(com::sun::star::xml::sax::InputSource const&) (this=0x55bf3a40cb10, aInputSource=...) at /home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:531 #20 0x00007f9c33650a15 in (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::io::XInputStream> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool, bool) (xInputStream=uno::Reference to (OInputCompStream *) 0x55bf3a40c3c8, xModelComponent=uno::Reference to (SwXTextDocument *) 0x55bf3a34d8e0, rStreamName="styles.xml", rxContext=uno::Reference to (cppu::(anonymous namespace)::ComponentContext *) 0x55bf31d88868, pFilterName=0x7f9c318977fe "com.sun.star.comp.Writer.XMLOasisStylesImporter", rFilterArguments=uno::Sequence of length 5 = {...}, rName="", bMustBeSuccessful=true, bEncrypted=false) at /home/julien/lo/libreoffice/sw/source/filter/xml/swxml.cxx:181 #21 0x00007f9c3364e3ae in (anonymous namespace)::ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent> const&, char const*, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, rtl::OUString const&, bool) (xStorage=uno::Reference to (OStorage *) 0x55bf3a12c9f8, xModelComponent=uno::Reference to (SwXTextDocument *) 0x55bf3a34d8e0, pStreamName=0x7f9c319ba198 "styles.xml", rxContext=uno::Reference to (cppu::(anonymous namespace)::ComponentContext *) 0x55bf31d88868, pFilterName=0x7f9c318977fe "com.sun.star.comp.Writer.XMLOasisStylesImporter", rFilterArguments=uno::Sequence of length 5 = {...}, rName="", bMustBeSuccessful=true) at /home/julien/lo/libreoffice/sw/source/filter/xml/swxml.cxx:323 #22 0x00007f9c3364c6f7 in XMLReader::Read(SwDoc&, rtl::OUString const&, SwPaM&, rtl::OUString const&) (this=0x55bf33919bf0, rDoc=..., rBaseURL="file:///tmp/lu636tj.tmp/Report_Date_Temperature.odt", rPaM=SwPaM = {...}, rName="") at /home/julien/lo/libreoffice/sw/source/filter/xml/swxml.cxx:826 #23 0x00007f9c334800a1 in SwReader::Read(Reader const&) (this=0x7ffd42849128, rOptions=...) at /home/julien/lo/libreoffice/sw/source/filter/basflt/shellio.cxx:204 #24 0x00007f9c33747daa in SwDocShell::Load(SfxMedium&) (this=0x55bf374eeaa0, rMedium=...) at /home/julien/lo/libreoffice/sw/source/uibase/app/docshini.cxx:534 #25 0x00007f9d9f974411 in SfxObjectShell::LoadOwnFormat(SfxMedium&) (this=0x55bf374eeaa0, rMedium=...) at /home/julien/lo/libreoffice/sfx2/source/doc/objstor.cxx:3194 #26 0x00007f9d9f9757e6 in SfxObjectShell::DoLoad(SfxMedium*) (this=0x55bf374eeaa0, pMed=0x55bf3a3522e0) at /home/julien/lo/libreoffice/sfx2/source/doc/objstor.cxx:682 #27 0x00007f9d9f9eadc3 in SfxBaseModel::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0x55bf3a34d850, seqArguments=uno::Sequence of length 16 = {...}) at /home/julien/lo/libreoffice/sfx2/source/doc/sfxbasemodel.cxx:1966 #28 0x00007f9d9fb9117e in (anonymous namespace)::SfxFrameLoader_Impl::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) (this=0x55bf346815b0, rArgs=uno::Sequence of length 12 = {...}, _rTargetFrame=uno::Reference to ((anonymous namespace)::XFrameImpl *) 0x55bf374b96d0) at /home/julien/lo/libreoffice/sfx2/source/view/frmload.cxx:720 retrieved with gdb, of course after all the: Thread 1 "soffice.bin" received signal SIGSEGV, Segmentation fault. 0x00007f9d08950511 in ?? () With another build I got which doesn't use "enable-dbgutil", the first patch is sufficient to open the report (still always without the graph). -- You are receiving this mail because: You are the assignee for the bug.
