https://bugs.freedesktop.org/show_bug.cgi?id=76552
Priority: medium
Bug ID: 76552
Assignee: [email protected]
Summary: Macro eats 1300M RAM + 1277M swap in 4.1.0 and only
521M RAM + 553M swap in 4.0.6
Severity: major
Classification: Unclassified
OS: Windows (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: 4.1.0.4 release
Component: Spreadsheet
Product: LibreOffice
Created attachment 96285
--> https://bugs.freedesktop.org/attachment.cgi?id=96285&action=edit
A test document with the macro eating lot of memory in 4.1.0
Problem description:
Attached document contains a basic macro sub (with button for launching it) and
an empty sheet.
The macro creates 77 new sheets and then moves 66 ranges (not in newly created
sheets but in the
original sheet) and finally displays a message.
In LibreOffice 4.0.6 (and probably all earlier versions) macro eats 521M RAM +
553M swap.
In LibreOffice 4.1.0 (and probably all later versions) macro eats 1300M RAM +
1277M swap.
Note 1:
This is not only symbolic problem. More complicated macro I use (containing
similar pattern)
causes crashes of LibreOffice when document is closed after macro run (in
4.1.x) or crashes
directly while running this macro (4.2.x) while everything is ok e.g. in
LibreOffice 3.5.5. Crashes are ugly and partly random (due to memory usage of
other applications).
Note 2:
Strange thing is that when the code creating sheets is removed from the macro,
things go ok.
The same is when moveRanges are removed form the code. It only causes problems
when moveRanges
follow creating sheets (while moveRanges operates on different sheets than
those created by macro.)
Note 3:
The numbers of RAM and swap above are values measured in VirtualBox, Windows
XP, 1699M virtual RAM.
Before the macro is run but after the document is open, LibreOffice takes about
120-130M RAM and 100M swap.
Note 4:
The problem is also reproducible outside VirtualBox: In 4.0.6 it takes 451M RAM
and in 4.1.0 1263M RAM. Crashes described above are seen in running outside
VirtualBox.
--
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