From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?=D3scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: X resource leak? Date: Tue, 20 Jan 2009 13:02:25 +0100 Message-ID: References: <878wpbz39r.fsf@cyd.mit.edu> <87d4ek3s9j.fsf@cyd.mit.edu> <3275CE3B-F9AF-4710-A41C-1EB6BD69A813@swipnet.se> <4975665C.8010406@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1232453903 8771 80.91.229.12 (20 Jan 2009 12:18:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 12:18:23 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: =?windows-1252?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 20 13:19:35 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LPFZu-00016P-O7 for ged-emacs-devel@m.gmane.org; Tue, 20 Jan 2009 13:19:35 +0100 Original-Received: from localhost ([127.0.0.1]:41698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPFYd-0006AA-FH for ged-emacs-devel@m.gmane.org; Tue, 20 Jan 2009 07:18:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPFJT-0007rz-Ej for emacs-devel@gnu.org; Tue, 20 Jan 2009 07:02:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPFJP-0007qL-6v for emacs-devel@gnu.org; Tue, 20 Jan 2009 07:02:34 -0500 Original-Received: from [199.232.76.173] (port=44428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPFJN-0007qA-RO for emacs-devel@gnu.org; Tue, 20 Jan 2009 07:02:30 -0500 Original-Received: from outmailhost.telefonica.net ([213.4.149.242]:45389 helo=ctsmtpout3.frontal.correo) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPFJN-0006mC-2j for emacs-devel@gnu.org; Tue, 20 Jan 2009 07:02:29 -0500 Original-Received: from K7 (81.34.30.43) by ctsmtpout3.frontal.correo (7.2.056.6) (authenticated as 981711563$telefonica.net) id 4969DEE10034D068; Tue, 20 Jan 2009 13:02:27 +0100 In-Reply-To: <4975665C.8010406@swipnet.se> ("Jan =?windows-1252?Q?Dj=E4rv?= =?windows-1252?Q?=22's?= message of "Tue, 20 Jan 2009 06:51:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108012 Archived-At: Jan Dj=E4rv writes: >>> Can you tell us if you run KDE with gtk-engine? >> >> I use KDE 4.1.3 (on Kubuntu x86_64) and Emacs is configured for using >> the gtk widgets. It has >> >> #define USE_GTK 1=20 >> >> and >> >> #define USE_TOOLKIT_SCROLL_BARS 1 >> >>> Is the toolbar enabled and if so does disabling it make any >>> difference? Ditto for the scrollbar and menuar. >> >> Bingo! After disabling the scroll bar with M-x scroll-bar-mode emacs >> stops allocating X resources. >> >> Switching on/off the menu bar and the tool bar shows no change on >> the X resource allocation problem, so it is the scroll bar the only >> culprit. > > What is the name of the theme you are using? I guess you mean the KDE theme. It's the default one (Oxygen) with desktop effects off, with Cleanlooks widget style. On System Settings -> Appearence there is a "GTK Styles and Fonts" group. There, it is selected "Use my KDE style in GTK applications". After selecting "Use another style:" and in the nearby option list "Raleigh", the problem goes away (for new emacs sessions, not for the existing ones). If I choose Qt4 instead of Raleigh, the problem persists. Having a workaround for this is great, as Emacs segfaults when the X resources grow too high, which is after several days of use for me. OTOH, if I can do something to further diagnose the problem, I'll be glad to help. Thanks Jan. --=20 Oscar