discuss-gnustep
[Top][All Lists]
Advanced

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

Re: memory leak - cairo/x11 backend


From: Riccardo Mottola
Subject: Re: memory leak - cairo/x11 backend
Date: Wed, 18 Dec 2013 15:40:13 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23

Hi,

Eric Wasylishen wrote:

Hi Riccardo,

As a starting point for debugging I would put NSLog's in XGCairoModernSurface -initWithDevice: and -dealloc. This is where we retain / release the Cairo surface that is holding memory in the x server.

Also I would put logging in -NSImage set name:, log [nameDict allKeys] to see which images are kept in memory by nameDict.

I did so, in setName.. It does not get called from laternaMagica when switching images. WHile the application loads and shows its windows I see stuff like:

2013-12-18 15:36:39.356 LaternaMagica[18906] NSimage setName, keys: ("common_ret H", "common_Nibble", "common_HomeDirectory", NSApplicationIcon, "common_UnknownT ool", GSMenuArrow, "common_Mount", "common_DownloadFolder", "common_ArrowDown", "laternamagica_48.tif", "common_Home", "common_ArrowLeftH", "common_Close", "com mon_3DArrowLeft", "common_Desktop", "common_ImageFolder", GSMenuSelected, "commo n_3DArrowRightH", GSSwitch, GSSwitchSelected, "common_GSFolder", "common_Dimple" , "common_Unmount", "common_DimpleHoriz", "common_ArrowRightH", "common_DocsFold er", "common_Unknown", "common_ArrowUpH", GSMenuMixed, NSFolder, "common_ArrowUp ", "common_3DArrowUp", "common_ArrowRight", "common_3DArrowDown", "common_ArrowD ownH", "common_ret", "common_ArrowLeft", "common_SliderHoriz")


however when I load images from disk and cycle between them, nothing gets printed, meaning that setName doesn't get called.

Riccardo



reply via email to

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