Apache OpenOffice (AOO) Bugzilla – Issue 116448
Memory leak when exporting PDF with XStorable.storeToURL
Last modified: 2012-11-30 04:47:34 UTC
The macro in the attached document exports the document 4000 times as PDF via storeToURL. Running it once on a computer with 2GB RAM leaks enough memory to have a visible effect on the stability of Windows. UI elements are no longer drawn, new forms won't open and other programs won't start. Running the macro twice makes Windows all but unusable. Steps to reproduce: * Open the attached document * Launch the macro storeToUrl_error.odt/Standard/Module1/Main * Wait for the macro to exit Note: if your computer has more than 2GB RAM, you might have to run the macro more often.
Created attachment 75550 [details] test document with macro
MRU->OS: run the Main Macro attached to the document. See that Writer will now eat up slowly but continuously memory.
Created attachment 78625 [details] Patch for OOo 3.2.1 I have tracked down the source of the memory leak in OOo 3.2.1 and created a patch.
"hdu" committed SVN revision 1367969 into trunk: #i116448# fix memory leak when exporting PDF with XStorable.storeToURLPatch-b...
Thanks a lot for reporting, analyzing and solving the problem! Changing the status to FIXED now that your patch has been applied.
Since last SVT(r1400866) shows there is no memory leak, so close this defect as resolved.