From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6722 invoked by alias); 18 Apr 2010 19:46:36 -0000 Received: (qmail 6713 invoked by uid 22791); 18 Apr 2010 19:46:35 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 18 Apr 2010 19:46:31 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.11]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 18 Apr 2010 20:46:28 +0100 Message-ID: <4BCB61A2.3070503@dronecode.org.uk> Date: Sun, 18 Apr 2010 21:09:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree@cygwin.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: akhailtash@yahoo.com Subject: Re: USER/GDI Objects leak with (XWin.exe) Cygwin/X X Server Verion 1.7.6, Build Date 2010-03-18 References: <745077.37241.qm@web88004.mail.re2.yahoo.com> <4BB0DB76.20708@dronecode.org.uk> <599525.40364.qm@web88006.mail.re2.yahoo.com> <4BBA5671.7060309@dronecode.org.uk> <730771.75866.qm@web88008.mail.re2.yahoo.com> In-Reply-To: <730771.75866.qm@web88008.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2010-04/txt/msg00056.txt.bz2 On 06/04/2010 20:05, Amal Khailtash wrote: > Click on Session menu and while the menu is open, move to Edit, then View, Bookmarks, > Settings and Help and click outside to withdraw menu: > > Image Name User Objects GDI Objects > XWin.exe 39 79 > > Click on any menu item and while the menu is open and move cursor to other menu items > a number of (20) times: > > Image Name User Objects GDI Objects > XWin.exe 241 483 > > Keep doing this and you will see the allocated objects keeps increasing and increasing and > they are never released even if I close my Konsole window! Thanks for the clear reproduction steps. With these, I can reproduce this problem. According to the GdiUsage tool this seems to be a GDI bitmap handle being leaked. Unfortunately GdiUsage seems to have rusted a bit and doesn't produce useful backtraces (and may well not be able to backtrace a cygwin executable, anyhow) so locating exactly where the leak is coming from is going to be a bit tricky... The one thing I notice is that other applications with menus don't seem to show this problem. The konsole I was testing with is relatively recent and has menus with rounded corners, I wonder if that is somehow related to the problem? -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/