https://bugs.documentfoundation.org/show_bug.cgi?id=100244

--- Comment #5 from Dennis Francis <dennisfrancis...@gmail.com> ---
I am working on this one and have some updates.

I have created a reduced row and simpler version of the original
document(attached) such that it cause large memory usage on refresh of pivot
table but fit in my system's RAM (16GB) even when calc run with
valgrind-memcheck. It uses about lots of memory, but valgrind's memcheck tool
shows no big leaks (all are "definitely lost ones are in KB's").

valgrid's massif tool reports that large number of allocations happen at 
ScDPResultDimension::AddMember(ScDPParentDimData const&) (dptabres.cxx:3961)

However I observed that the high memory usage after pivot table refresh does
not go away even after I close the document (with calc still running with no
other document). After some code hunting I suspect this behavior is due to
holding of ScDPSource object inside ScDPObject object via a uno Reference which
may be shared with other objects which do not get de-allocated while closing
the document having pivot tables. It might only be released after calc is
closed. This would explain the valgrind-memcheck's result.

I will next try to trace the reference count changes of ScDPSource object via
gdb.

Calc version - latest master built 7th Oct 2016.
OS : Fedora 24 64 bit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to