Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Hello,

Giving a try to tdf#33838 "Default bullet point not showing correctly (.lwp
import)", I noticed these kinds of logs on console:
warn:xmloff.core:13055:1:xmloff/source/core/xmlimp.cxx:731:
SvXMLImport::endElement: popped context has wrong prefix
warn:xmloff.core:13055:1:xmloff/source/core/xmlimp.cxx:733:
SvXMLImport::endElement: popped context has wrong lname

After adding some traces on sources, I get this:
 XMLTransformerBase::startFastElement rName=office:document nElement=66102
 XMLTransformerBase::startFastElement rName=office:meta nElement=66659
 XMLTransformerBase::startFastElement rName=meta:generator nElement=590655
 XMLTransformerBase::endFastElement rName=meta:generator nElement=590655
 XMLTransformerBase::startFastElement rName=dc:title nElement=526091
 XMLTransformerBase::endFastElement rName=dc:title nElement=526091
 XMLTransformerBase::startFastElement rName=meta:keyword nElement=590810
 XMLTransformerBase::endFastElement rName=meta:keyword nElement=590810
 XMLTransformerBase::startFastElement rName=meta:creation-date
nElement=590254
 XMLTransformerBase::endFastElement rName=meta:creation-date nElement=590254
 XMLTransformerBase::startFastElement rName=dc:date nElement=524784
 XMLTransformerBase::endFastElement rName=dc:date nElement=524784
 XMLTransformerBase::startFastElement rName=meta:editing-duration
nElement=590418
 XMLTransformerBase::endFastElement rName=meta:editing-duration
nElement=590418
 XMLTransformerBase::startFastElement rName=dc:description nElement=524826
 XMLTransformerBase::endFastElement rName=dc:description nElement=524826
 XMLTransformerBase::startFastElement rName=meta:initial-creator
nElement=590778
 XMLTransformerBase::endFastElement rName=meta:initial-creator
nElement=590778
 XMLTransformerBase::endFastElement rName=office:meta nElement=590778

warn:xmloff.core:13055:1:xmloff/source/core/xmlimp.cxx:731:
SvXMLImport::endElement: popped context has wrong prefix 0 8
warn:xmloff.core:13055:1:xmloff/source/core/xmlimp.cxx:733:
SvXMLImport::endElement: popped context has wrong lname meta initial-creator


Notice the last line with "office:meta" that should have had nElement =
66659

bts on gdb seem to confirm the pb:
First I get this
#0  SvXMLImport::endElement (this=0x5555579a7290,
rName="meta:initial-creator") at
/home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:729
#1  0x00007fffe9a515cf in SvXMLImportContext::endUnknownElement
(this=this@entry=0x555557a3baf0, rPrefix="meta",
rLocalName="initial-creator")
    at /home/julien/lo/libreoffice/xmloff/source/core/xmlictxt.cxx:139
#2  0x00007fffe9a50d2f in SvXMLImportContext::endFastElement
(this=0x555557a3baf0, nElement=590778) at
/home/julien/lo/libreoffice/xmloff/source/core/xmlictxt.cxx:129
#3  0x00007fffe9a585da in SvXMLImport::endFastElement (this=0x5555579a7290,
Element=590778) at
/home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:848
#4  0x00007fffca94a081 in XMLTransformerBase::endFastElement
(this=0x555557977630, rName="meta:initial-creator")
    at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerBase.cxx:1484
#5  0x00007fffca9526ff in XMLTransformerContext::EndElement
(this=0x555557a48980) at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerContext.cxx:70
#6  0x00007fffca94b1ad in XMLTransformerBase::endElement
(this=0x555557977630, rName="meta:initial-creator")
    at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerBase.cxx:323
#7  0x00007fffcd1ce347 in XFSaxStream::EndElement
(this=this@entry=0x5555579b3220, oustr="meta:initial-creator")
    at
/home/julien/lo/libreoffice/lotuswordpro/source/filter/xfilter/xfsaxstream.cxx:112

but then I get this
#0  SvXMLImport::endElement (this=0x5555579a7290,
rName="meta:initial-creator") at
/home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:729
#1  0x00007fffe9a515cf in SvXMLImportContext::endUnknownElement
(this=this@entry=0x555557a2d250, rPrefix="meta",
rLocalName="initial-creator")
    at /home/julien/lo/libreoffice/xmloff/source/core/xmlictxt.cxx:139
#2  0x00007fffe9a50d2f in SvXMLImportContext::endFastElement
(this=0x555557a2d250, nElement=590778) at
/home/julien/lo/libreoffice/xmloff/source/core/xmlictxt.cxx:129
#3  0x00007fffe9a585da in SvXMLImport::endFastElement (this=0x5555579a7290,
Element=590778) at
/home/julien/lo/libreoffice/xmloff/source/core/xmlimp.cxx:848
#4  0x00007fffca94a081 in XMLTransformerBase::endFastElement
(this=0x555557977630, rName="office:meta")
    at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerBase.cxx:1484
#5  0x00007fffca9526ff in XMLTransformerContext::EndElement
(this=0x555557a27da0) at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerContext.cxx:70
#6  0x00007fffca94b1ad in XMLTransformerBase::endElement
(this=0x555557977630, rName="office:meta")
    at
/home/julien/lo/libreoffice/xmloff/source/transform/TransformerBase.cxx:323
#7  0x00007fffcd1ce347 in XFSaxStream::EndElement
(this=this@entry=0x5555579b3220, oustr="office:meta")
    at
/home/julien/lo/libreoffice/lotuswordpro/source/filter/xfilter/xfsaxstream.cxx:112

The problem is I don't know if the stack is really corrupted or if I missed
something.
Moreover if it's indeed corrupted, I don't find where it could be. I tried
to follow maFastContexts and maContexts, they seemed ok.

Any idea?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/Stack-of-contexts-corrupted-in-xmloff-tp4209260.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.