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


Hi,

there seems to be a memory leak in
XEnumerationAccess::createEnumeration(). When I run the following BASIC
code on a Writer document, I can watch the memory usage go up:

Sub Main
    for i = 1 to 100000
        text = ThisComponent.getText()
       
        paragraphs = text.createEnumeration()
       
        while (paragraphs.hasMoreElements())
            paragraph = paragraphs.nextElement()
           
            parenum = paragraph.createEnumeration()
        wend
    next
End Sub

I discovered the problem first in a C++ Extension where it seems to be a
lot worse (a few hundred iterations are enough). But it also seems to
depend on how many paragraphs your document has. A large document will
fill memory faster than a small document.

Version: 6.3.3.2
Build-ID: 1:6.3.3-0ubuntu0.18.04.1~lo1
CPU-Threads: 4; BS: Linux 4.15; UI-Render: Standard; VCL: kde5;

and also:

Version: 6.3.2.2 (x64)
Build-ID: 98b30e735bda24bc04ab42594c85f7fd8be07b9c
CPU-Threads: 2; BS: Windows 6.3; UI-Render: Standard; VCL: win;

Greetings,

Jan



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.