Issue 76784 - Transparent png background image eats memory
Summary: Transparent png background image eats memory
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.2
Hardware: PC Linux, all
: P2 Trivial with 3 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 85755 87619 (view as issue list)
Depends on:
Reported: 2007-04-29 10:02 UTC by elyk
Modified: 2013-08-07 14:44 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

test case (7.71 KB, application/vnd.oasis.opendocument.text)
2007-04-29 10:35 UTC, elyk
no flags Details
Sample .png with transparency (72.01 KB, image/png)
2007-06-02 20:59 UTC, kpalagin
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description elyk 2007-04-29 10:02:54 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.
Comment 1 elyk 2007-04-29 10:34:06 UTC
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 6.9.0 and libpng 1.2.16.
* OOo was packaged and installed using the build script at
* It may take a few seconds of scrolling and/or typing to trigger the problem.
Comment 2 elyk 2007-04-29 10:35:54 UTC
Created attachment 44758 [details]
test case
Comment 3 karmak 2007-05-04 10:52:00 UTC
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.
Comment 4 kpalagin 2007-06-02 20:57:15 UTC
Confirming with 2.2 on both Kubuntu 6.06 LTS and Mandriva 2007 Spring.
I am attaching sample .png file.
Comment 5 kpalagin 2007-06-02 20:59:34 UTC
Created attachment 45614 [details]
Sample .png with transparency
Comment 6 michael.ruess 2007-06-26 14:52:54 UTC
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.
Comment 7 frank.meies 2008-01-14 09:38:24 UTC
Cannot be fixed until code freeze => target 3.x
Comment 8 jbf.faure 2008-01-14 13:34:42 UTC
Add me to CC.
Comment 9 kpalagin 2008-01-31 12:44:58 UTC
*** Issue 85755 has been marked as a duplicate of this issue. ***
Comment 10 michael.ruess 2008-03-31 09:45:01 UTC
*** Issue 87619 has been marked as a duplicate of this issue. ***