Issue 100406 - xrender leak on X11 server
Summary: xrender leak on X11 server
Alias: None
Product: Impress
Classification: Application
Component: code (show other issues)
Version: OOO310m5
Hardware: PC Unix, all
: P2 Trivial (vote)
Target Milestone: OOo 3.1
Assignee: wolframgarten
QA Contact: issues@graphics
Keywords: regression
Depends on:
Blocks: 95768
  Show dependency tree
Reported: 2009-03-20 10:22 UTC by jbf.faure
Modified: 2009-04-07 10:45 UTC (History)
2 users (show)

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

slideshow with animated image (517.50 KB, application/
2009-03-20 10:23 UTC, jbf.faure
no flags Details
reduced bugdoc (15.77 KB, application/vnd.oasis.opendocument.presentation)
2009-03-25 13:48 UTC,
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jbf.faure 2009-03-20 10:22:02 UTC
Please compare memory usage of OOo and Xorg when editing joined test file 
between OOo 3.0.1 and OOO310m6.
This file is a TCM test file for FR version. If I convert it to ODF format the 
result is identical.
On Ubuntu 8.04 (Gnome) memory usage of Xorg constantly grows when showing the 
first slide, even if I do nothing. On my laptop with 1 GB of RAM Xorg use up 
to 750 MB and the PC needs swap.
If I remove the animated image in the current slide, Xorg memory usage ceases 
to grow.
Same problem in slideshow mode.
Same problem on Kubuntu 8.04
No such problems with the same file on OOo 3.0.1 ; no swap needed.
Comment 1 jbf.faure 2009-03-20 10:23:55 UTC
Created attachment 61066 [details]
slideshow with animated image
Comment 2 jbf.faure 2009-03-23 06:08:24 UTC
Same problem in OOO310m7
Comment 3 wolframgarten 2009-03-24 13:13:26 UTC
Not reproducible on Fedora with OOO310_m6. Are you using an Ubuntu build or an
original OOo build?
Comment 4 jbf.faure 2009-03-24 14:08:01 UTC
I don't know if there is Ubuntu builds for developer snapshots. Yes I used 
original builds OOO310m6 and OOO310m7 for Linux/Deb. I have a confirmation of 
this issue only for Ubuntu 8.04. Memory consumption is in Xorg process not in 
soffice and arises only when OOo shows a slide with an animated image.

Comment 5 joerg.skottke 2009-03-25 07:44:22 UTC
Memory usage increases at a rate of aprrox. 2.2MB/s using StarOffice
(OOO310m5/CWS sw31fb08), trying newer build before confirming.
Comment 6 joerg.skottke 2009-03-25 08:08:48 UTC
In a m7 (CWS aw67) i find the memory usage constant:
soffice = 72MB
soffice.bin = 54MB.
Comment 7 jbf.faure 2009-03-25 08:15:51 UTC
@jsk : ok for soffice but what about Xorg ?
Comment 8 joerg.skottke 2009-03-25 08:31:33 UTC

Xorg was stable the last time i tried so i rebooted my test machine to clear memory.

soffice/soffice.bin are stable but Xorg has a frightening increase in memory
usage so we have a leak here. I think the leak is bad enough to take out a
standard machine in a matter of minutes so this is a showstopper.

Note for myself: Use Intrepid and Jaunty on ACER notebook (Intel graphics) for
reproduction, both m5 and m7 (StarOffice). Use freshly booted system to reproduce.

@WG: Confirmed memory leak, please do the other showstopper rituals.
Comment 9 wolframgarten 2009-03-25 08:47:04 UTC
Reproducible. Reassigned.
Comment 10 2009-03-25 12:23:13 UTC
reassigning to me
Comment 11 2009-03-25 12:35:42 UTC
CWS ooo31gsl7 is being created for fixing that issue.
Comment 12 2009-03-25 13:47:28 UTC
Fixed in CWS ooo31gsl7.
Comment 13 2009-03-25 13:48:53 UTC
Created attachment 61176 [details]
reduced bugdoc
Comment 14 2009-03-25 13:51:54 UTC
@aw: why would animating the bitmap invokes the b2d-polygon rendering path?
Comment 15 2009-03-25 16:56:55 UTC
@wg: please verify in CWS ooo31gsl7
Testing hints:
- only visible on xrender enabled displays
- there were changes in the polygon-drawing code
Comment 16 wolframgarten 2009-03-26 10:34:08 UTC
Verified in CWS.
Comment 17 jbf.faure 2009-04-01 13:57:41 UTC
Works well in OOO310m8. Closing