https://bugs.freedesktop.org/show_bug.cgi?id=52433

--- Comment #28 from Michael Meeks <[email protected]> ---
As expected it is the hideous horror of the image cache, and the horrible UNO
mess around it, and the lack of sane lifecycle management, caching, well -
anything really around images. The big trace is:

==13133== 205,217,708 bytes in 141 blocks are possibly lost in loss record
9,694 of 9,694
==13133==    at 0x402ACB9: operator new[](unsigned int) (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==13133==    by 0x9C84DC9: X11SalBitmap::Create(Size const&, unsigned short,
BitmapPalette const&) (salbmp.cxx:701)
==13133==    by 0x52AD0F3: ImpBitmap::ImplCreate(Size const&, unsigned short,
BitmapPalette const&) (impbmp.cxx:58)
==13133==    by 0x527D764: Bitmap::Bitmap(Size const&, unsigned short,
BitmapPalette const*) (bitmap.cxx:125)
==13133==    by 0x526F497: Bitmap::ImplReadDIB(SvStream&, Bitmap&, unsigned
long, unsigned char) (bitmap2.cxx:147)
==13133==    by 0x526F9EC: Bitmap::Read(SvStream&, unsigned char, unsigned
char) (bitmap2.cxx:119)
==13133==    by 0x526FA5D: operator>>(SvStream&, Bitmap&) (bitmap2.cxx:94)
==13133==    by 0x52BE8D2: MetaBmpScaleAction::Read(SvStream&,
ImplMetaReadData*) (metaact.cxx:1858)
==13133==    by 0x52C67DA: MetaAction::ReadMetaAction(SvStream&,
ImplMetaReadData*) (metaact.cxx:227)
==13133==    by 0x529F4AB: operator>>(SvStream&, GDIMetaFile&)
(gdimtf.cxx:2770)
==13133==    by 0x52B0528: operator>>(SvStream&, ImpGraphic&)
(impgraph.cxx:1686)
==13133==    by 0x52A8511: operator>>(SvStream&, Graphic&) (graph.cxx:577)
==13133==    by 0x5234AEA: GraphicFilter::ImportGraphic(Graphic&, String
const&, SvStream&, unsigned short, unsigned short*, unsigned long,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>*,
WMF_EXTERNALHEADER*) (graphicfilter.cxx:1560)
==13133==    by 0x5234C76: GraphicFilter::ImportGraphic(Graphic&, String
const&, SvStream&, unsigned short, unsigned short*, unsigned long,
WMF_EXTERNALHEADER*) (graphicfilter.cxx:1326)
==13133==    by 0x11F955B8: SwGrfNode::ImportGraphic(SvStream&) (ndgrf.cxx:452)
==13133==    by 0x11F96983: SwGrfNode::SwapGraphic(GraphicObject*)
(ndgrf.cxx:1014)
==13133==    by 0x11F96A86: SwGrfNode::LinkStubSwapGraphic(void*, void*)
(ndgrf.cxx:967)
==13133==    by 0x4BC827C: GraphicObject::GetSwapStream() const (link.hxx:123)
==13133==    by 0x4BC8CD0: GraphicObject::ImplAutoSwapIn() (grfmgr.cxx:203)
==13133==    by 0x4BC9450: GraphicObject::GetGraphic() const (grfmgr.cxx:732)
==13133==    by 0x11F953C4: SwGrfNode::onGraphicChanged() (ndgrf.hxx:131)
==13133==    by 0x11E65EE0: SwDoc::Insert(SwPaM const&, GraphicObject const&,
SfxItemSet const*, SfxItemSet const*, SwFrmFmt*) (doc.cxx:1059)
==13133==    by 0x1211B955:
SwXFrame::attachToRange(com::sun::star::uno::Reference<com::sun::star::text::XTextRange>
const&) (unoframe.cxx:2281)
==13133==    by 0x1211CCE6:
SwXFrame::attach(com::sun::star::uno::Reference<com::sun::star::text::XTextRange>
const&) (unoframe.cxx:2469)
==13133==    by 0x1219198A:
SwXText::insertTextContent(com::sun::star::uno::Reference<com::sun::star::text::XTextRange>
const&, com::sun::star::uno::Reference<com::sun::star::text::XTextContent>
const&, unsigned char) (unotext.cxx:617)
==13133==    by 0x10AC7ADB:
XMLTextImportHelper::InsertTextContent(com::sun::star::uno::Reference<com::sun::star::text::XTextContent>&)
(txtimp.cxx:1170)
==13133==    by 0x10AA5168: XMLTextFrameContext_Impl::Create(unsigned char)
(XMLTextFrameContext.cxx:743)
==13133==    by 0x10AA69DC:
XMLTextFrameContext_Impl::XMLTextFrameContext_Impl(SvXMLImport&, unsigned
short, rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>
const&, com::sun::star::text::TextContentAnchorType, unsigned short,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>
const&) (XMLTextFrameContext.cxx:1089)
==13133==    by 0x10AA6CFF: XMLTextFrameContext::CreateChildContext(unsigned
short, rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>
const&) (XMLTextFrameContext.cxx:1507)
==13133==    by 0x109A74EE: SvXMLImport::startElement(rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>
const&) (xmlimp.cxx:682)
==13133==    by 0x10BE60F6:
sax_expatwrap::SaxExpatParser_Impl::callbackStartElement(void*, char const*,
char const**) (sax_expat.cxx:827)
==13133==    by 0x10BF14FD: doContent (xmlparse.c:2469)
==13133==    by 0x10BF1C04: contentProcessor (xmlparse.c:2105)
==13133==    by 0x10BF31FB: XML_ParseBuffer (xmlparse.c:1651)
==13133==    by 0x10BE67B6: sax_expatwrap::SaxExpatParser_Impl::parse()
(sax_expat.cxx:765)
==13133==    by 0x10BE759E:
sax_expatwrap::SaxExpatParser::parseStream(com::sun::star::xml::sax::InputSource
const&) (sax_expat.cxx:553)
==13133==    by 0x1222D746:
ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::io::XInputStream>,
com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, String
const&,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char
const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&,
rtl::OUString const&, bool, bool) (swxml.cxx:182)
==13133==    by 0x1222DED5:
ReadThroughComponent(com::sun::star::uno::Reference<com::sun::star::embed::XStorage>,
com::sun::star::uno::Reference<com::sun::star::lang::XComponent>, char const*,
char const*,
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, char
const*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&,
rtl::OUString const&, bool) (swxml.cxx:372)
==13133==    by 0x1222FB8B: XMLReader::Read(SwDoc&, String const&, SwPaM&,
String const&) (swxml.cxx:921)
==13133==    by 0x121ACCBC: SwReader::Read(Reader const&) (shellio.cxx:177)
==13133==    by 0x1226ABDD: SwDocShell::Load(SfxMedium&) (docshini.cxx:532)
==13133==    by 0x47F443D: SfxObjectShell::LoadOwnFormat(SfxMedium&)
(objstor.cxx:3048)
==13133==    by 0x47FE4BA: SfxObjectShell::DoLoad(SfxMedium*) (objstor.cxx:710)
==13133==    by 0x481F319:
SfxBaseModel::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (sfxbasemodel.cxx:1887)
==13133==    by 0x486A612:
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&)
(frmload.cxx:597)
==13133==    by 0xF9F9540: framework::LoadEnv::impl_loadContent()
(loadenv.cxx:1166)
==13133==    by 0xF9FA5CB: framework::LoadEnv::startLoading() (loadenv.cxx:400)
==13133==    by 0xF9B8343:
framework::LoadDispatcher::impl_dispatch(com::sun::star::util::URL const&,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&,
com::sun::star::uno::Reference<com::sun::star::frame::XDispatchResultListener>
const&) (loaddispatcher.cxx:119)
==13133==    by 0xF9B86AE:
framework::LoadDispatcher::dispatchWithReturnValue(com::sun::star::util::URL
const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>
const&) (loaddispatcher.cxx:65)
==13133==    by 0x447B535:
comphelper::SynchronousDispatch::dispatch(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>
const&, rtl::OUString const&, rtl::OUString const&, long,
com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&)
(synchronousdispatch.cxx:69)

Which is why this bug depends on bug#47148 - "image caching / management is
utterly shambolic."

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to