QMovie leaking lots of pixmap resources

Martijn Klingens klingens at kde.org
Thu Jan 1 18:39:40 GMT 2004


On Thursday 01 January 2004 19:06, Dirk Mueller wrote:
> they might be a trigger but not the cause. the pixmapcache size is limited
> to 1MB in total, so it can't leak, even though you found an inefficiency
> here (I agree the if should be changed to timer >= 0 && loop >= 0).

The cache doesn't seem to work properly though (at least on Qt 3.2) - the 
pixmap memory as reported by xrestop grows well above 2 Mb (it stops at 
2342kb here). If I explicitly call setCacheLimit( 512 ) to use a half Mb 
cache the pixmap memory used by Kopete still grows till 1451 kb until it 
stops leaking. When I close the chat window the pixmap memory drops back to 
147 kb. A new chat window eats some more, directly after opening one there's 
about 500 kb in use. In other words, a 512 kb pixmap cache actually eats a 
lot more, over a megabyte, and that's assuming all other pixmaps that xrestop 
reports are 'uncached'.

The rest of the issues mentioned in this bug report is likely either fixed now 
by independent commits or unrelated (and in the latter case requires vg's 
leakcheck instead of xrestop).

-- 
Martijn




More information about the kde-core-devel mailing list