Apache OpenOffice (AOO) Bugzilla – Issue 76784
Transparent png background image eats memory
Last modified: 2013-08-07 14:44:35 UTC
Steps to reproduce (on Linux): 1. Open a terminal and run 'free -s 1' to view memory usage. 2. Start OOo. 3. Open a new text document. 4. Right click -> Page... -> Background tab, select 'As Graphic' 5. Browse -> select a transparent png image -> OK 6. Done formatting background, select OK. 7. Begin typing or scroll the page. This causes OOo to consume much more memory than usual; within a few paragraphs OOo begins to swap to disk and thrash, leading to system instability.
The ps utility reports the large memory usage increase under the program named X. Other things to note when trying to reproduce this bug: * I'm running Slackware 11.0 with all of the -stable patches through 2007-03-26. This includes X.org 6.9.0 and libpng 1.2.16. * OOo was packaged and installed using the build script at slackbuilds.org. * It may take a few seconds of scrolling and/or typing to trigger the problem.
Created attachment 44758 [details] test case
This happens the same for me on Ubuntu Feisty. OOo2.2 writer eats as much X server memory as possible. With gnome-system-monitor I can see that OOo can consume up to 1.6Gb of X server memory if i work a long time on the document (my machine has 1gb of RAM and 1gb of swap). Closing the document (Control-W) doesn't make OOo give back the X memory, I must totally close all open instances of Writer. This doesn't happen with a JPEG background (i converted the PNG background to JPEG), and this doesn't happen with flattened PNG.
Confirming with 2.2 on both Kubuntu 6.06 LTS and Mandriva 2007 Spring. I am attaching sample .png file.
Created attachment 45614 [details] Sample .png with transparency
MRU->FME: indeed, the memory consumption is very high on Unix system (at least on Linux, where I tested it). Windows is not affected. Just assign the attached png as a paragraph background. Every new paragraph will now consume ~1 MB of memory. I do not really know if this is just Writer spcific, but using such a graphic e.g. in Draw does not consume this amount of memory.
Cannot be fixed until code freeze => target 3.x
Add me to CC.
*** Issue 85755 has been marked as a duplicate of this issue. ***
*** Issue 87619 has been marked as a duplicate of this issue. ***