texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Lock on SVN


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] Lock on SVN
Date: Mon, 15 Dec 2008 17:30:16 +0100
User-agent: Mutt/1.5.9i

On Mon, Dec 15, 2008 at 05:21:12PM +0100, Gubinelli Massimiliano wrote:
> Hi,
> 
> I'm looking at the code on the mac using Instruments (/Developer/ 
> Applications/Instruments.app) and in particular the ObjectAlloc  
> instrument. For the moment I can only see an anomalous allocation of  
> small blocks from Qt (25 Mb, steadly growing each time I scroll up and  
> down). It
> seems related to the menu bar changing during the scroll.
> 
> This is  part of the result of running qt-temacs and performin some  
> scrolls on the help page. The first column is the stack depth and the  
> total allocated memory at that level. Going down we follow the path  
> which show most of the allocations. As you see of 25 Mb of allocated  
> memory, 17 Mb are due to calls inside  
> QMacPixmapData::macCreatePixels() which is used in the Qt/Mac menu  
> handling code (as far as I understand from the stack below).
> 
> Do you have any idea of the origin of the leak? I've tried to disable  
> the code which change the menu/toolbars in qt_widget.cpp but this  
> didn't had any effect on the memory consumption.

I suspect the error to come from the rendering rather than the scrolbar
management. Please check that the character glyphs are not somehow
duplicated during the rendering. 1Mb for going up and down once
corresponds roughly to what may go wrong when rendering;
I don't see how a scroll position could end up taking that much space.

--Joris




reply via email to

[Prev in Thread] Current Thread [Next in Thread]