[Libreoffice-bugs] [Bug 129163] New: Memory leak in createEnumeration
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 3 16:51:31 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=129163
Bug ID: 129163
Summary: Memory leak in createEnumeration
Product: LibreOffice
Version: 6.3.2.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jrheinlaender at users.sourceforge.net
Description:
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 the document has. A large document will
fill memory faster than a small document.
Steps to Reproduce:
Run the following BASIC code on a Writer document and 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
Actual Results:
The final result is a crash because of unavailable memory.
Expected Results:
Not used ever increasing memory.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
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;
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191203/a146b0fe/attachment.html>
More information about the Libreoffice-bugs
mailing list