You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2021/02/03 18:23:36 UTC

[Issue 128356] Track Changes and Annotations on text range can cause corruption. Applies to 4.x (all versions?)

https://bz.apache.org/ooo/show_bug.cgi?id=128356

--- Comment #15 from Arrigo Marchiori <ar...@yahoo.it> ---
It is possible to find where the problem arises, by adding an assertion
(actually, a safety check) to the methods of SvXMLAttributeList that add new
attributes: existing attributes should not be added, but rather changed.

I will open a thread on the dev@ mailing list for asking how to cope with this
kind of problems, in order to (hopefully) mitigate the effect of this bug.

After settling this out, we will need to see _why_ the attribute is set twice.

Stack trace from the assertion:

#13 0x00007fffedafbd5c in SvXMLAttributeList::AddAttribute(rtl::OUString
const&, rtl::OUString const&)     
    (this=this@entry=0x7fff96cf21f0, sName=..., sValue=...)
    at main/xmloff/source/core/attrlist.cxx:165

#14 0x00007fffedb07d49 in SvXMLExport::AddAttribute(unsigned short,
xmloff::token::XMLTokenEnum, rtl::OUString const&)
    (this=<optimized out>, nPrefixKey=nPrefixKey@entry=0,
eName=eName@entry=xmloff::token::XML_NAME, rValue=...)
    at main/xmloff/source/core/xmlexp.cxx:1083

#15 0x00007fffedc72086 in
XMLTextParagraphExport::exportTextRangeEnumeration(com::sun::star::uno::Reference<com::sun::star::container::XEnumeration>
const&, unsigned char, unsigned char, unsigned char)  
    (this=this@entry=0x7fff96fa7140, rTextEnum=...,
bAutoStyles=bAutoStyles@entry=1 '\001', bIsProgress=bIsProgress@entry=0 '\000',
bPrvChrIsSpc=bPrvChrIsSpc@entry=1 '\001')
    at main/xmloff/source/text/txtparae.cxx:2260

#16 0x00007fffedc7395d in
XMLTextParagraphExport::exportParagraph(com::sun::star::uno::Reference<com::sun::star::text::XTextContent>
const&, unsigned char, unsigned char, unsigned char, MultiPropertySetHelper&)
   (this=this@entry=0x7fff96fa7140, rTextContent=...,
bAutoStyles=bAutoStyles@entry=1 '\001', bIsProgress=bIsProgress@entry=0 '\000',
bExportParagraph=bExportParagraph@entry=1 '\001', rPropSetHelper=...)
    at main/xmloff/source/text/txtparae.cxx:2198

#17 0x00007fffedc718d2 in
XMLTextParagraphExport::exportTextContentEnumeration(com::sun::star::uno::Reference<com::sun::star::container::XEnumeration>
const&, unsigned char,
com::sun::star::uno::Reference<com::sun::star::text::XTextSection>
 const&, unsigned char, unsigned char,
com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const*,
unsig
ned char)                                                                       
    (this=this@entry=0x7fff96fa7140, rContEnum=...,
bAutoStyles=bAutoStyles@entry=1 '\001', rBaseSection=...,
bIsProgress=bIsProgress@entry=0 '\000',
bExportParagraph=bExportParagraph@entry=1 '\001', pRangePropSet=<optimized
out>, bExportLevels=<optimized out>) at
main/xmloff/source/text/txtparae.cxx:1861

#18 0x00007fffedc73f42 in
XMLTextParagraphExport::exportText(com::sun::star::uno::Reference<com::sun::star::text::XText>
const&, unsigned char, unsigned char, unsigned char)                            
    (this=0x7fff96fa7140, rText=..., bAutoStyles=bAutoStyles@entry=1 '\001',
bIsProgress=bIsProgress@entry=0 '\000',
bExportParagraph=bExportParagraph@entry=1 '\001')                               
    at main/xmloff/source/text/txtparae.cxx:1731

#19 0x00007fffedb48527 in
XMLTextParagraphExport::collectTextAutoStyles(com::sun::star::uno::Reference<com::sun::star::text::XText>
const&, unsigned char, unsigned char)
    (this=<optimized out>, rText=..., bIsProgress=bIsProgress@entry=0 '\000',
bExportParagraph=bExportParagraph@entry=1 '\001') 
    at main/solver/450/unxlngx6/inc/xmloff/txtparae.hxx:598

#20 0x00007fffedc26ad7 in
XMLRedlineExport::ExportChangeAutoStyle(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>
const&) (this=this@entry=0x7fff95e8d300, rPropSet=...)                          
    at main/xmloff/source/text/XMLRedlineExport.cxx:296

#21 0x00007fffedc26cf4 in XMLRedlineExport::ExportChangesListAutoStyles()
(this=0x7fff95e8d300)                         
    at main/xmloff/source/text/XMLRedlineExport.cxx:329

#22 0x00007fffedc26d82 in XMLRedlineExport::ExportChangesList(unsigned char)
    (this=<optimized out>, bAutoStyles=bAutoStyles@entry=1 '\001')
    at main/xmloff/source/text/XMLRedlineExport.cxx:139

#23 0x00007fffedc6b87f in XMLTextParagraphExport::exportTrackedChanges(unsigned
char)
    (this=<optimized out>, bAutoStyles=bAutoStyles@entry=1 '\001')
    at main/xmloff/source/text/txtparae.cxx:3510

#24 0x00007fff9b8a6ad5 in SwXMLExport::_ExportAutoStyles()
(this=0x7fff96c76420)                                        
    at main/sw/source/filter/xml/xmlfmte.cxx:218

#25 0x00007fffedb0d48e in SvXMLExport::ImplExportAutoStyles(unsigned char)
(this=this@entry=0x7fff96c76420)
    at main/xmloff/source/core/xmlexp.cxx:1252

#26 0x00007fffedb0e991 in SvXMLExport::exportDoc(xmloff::token::XMLTokenEnum)   
    (this=this@entry=0x7fff96c76420,
eClass=eClass@entry=xmloff::token::XML_TEXT)                                    
    at main/xmloff/source/core/xmlexp.cxx:1541

#27 0x00007fff9b8a1abe in SwXMLExport::exportDoc(xmloff::token::XMLTokenEnum)
    (this=0x7fff96c76420, eClass=xmloff::token::XML_TEXT)
    at main/sw/source/filter/xml/xmlexp.cxx:391

#28 0x00007fffedb08abe in
SvXMLExport::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (this=0x7fff96c76420, aDescriptor=<optimized out>)
    at main/xmloff/source/core/xmlexp.cxx:938

#29 0x00007fff9b89c2f3 in
SwXMLWriter::WriteThroughComponent(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream>
const&, com::sun::star::uno::Reference<com::sun::star::lang::XComponent>
const&,
com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&, char const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any>
const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) 
    (this=this@entry=0x7fff959a8b90, xOutputStream=..., xComponent=...,
rFactory=..., pServiceName=pServiceName@entry=0x7fff9ba7c169
"com.sun.star.comp.Writer.XMLOasisContentExporter", rArguments=...,
rMediaDesc=...)                        
    at main/sw/source/filter/xml/wrtxml.cxx:650

-- 
You are receiving this mail because:
You are the assignee for the issue.