From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gaute Amundsen Newsgroups: gmane.emacs.help Subject: Re: Strange font / frame size problem makes emacs unusable. Date: Mon, 26 Apr 2010 08:59:45 +0200 Message-ID: <1272265185.9877.461.camel@totiki> References: <1272142428.9877.47.camel@totiki> <0DD48519-2441-471E-AF01-6EF5CAA00644@Web.DE> <1272224582.9877.259.camel@totiki> <6F4C00BE-6848-4D61-A8BD-E087DB45C6D7@Web.DE> <20100426052858.GA4875@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272266241 3400 80.91.229.12 (26 Apr 2010 07:17:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2010 07:17:21 +0000 (UTC) Cc: Peter Dyballa , help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 26 09:17:15 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O6IZ8-0004hp-F7 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Apr 2010 09:17:14 +0200 Original-Received: from localhost ([127.0.0.1]:33548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6IZ7-0000Rp-H9 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Apr 2010 03:17:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6IKE-0004jD-C1 for help-gnu-emacs@gnu.org; Mon, 26 Apr 2010 03:01:50 -0400 Original-Received: from [140.186.70.92] (port=33509 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6IJQ-0004ey-Jk for help-gnu-emacs@gnu.org; Mon, 26 Apr 2010 03:01:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6IIO-0002LQ-UY for help-gnu-emacs@gnu.org; Mon, 26 Apr 2010 03:00:56 -0400 Original-Received: from smtp.domeneshop.no ([194.63.248.54]:54734) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6IIO-0002KI-Lp for help-gnu-emacs@gnu.org; Mon, 26 Apr 2010 02:59:56 -0400 Original-Received: from ti0189a340-dhcp0466.bb.online.no ([88.91.9.213] helo=[10.0.0.5]) by smtp.domeneshop.no with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1O6IIK-0000Li-3j; Mon, 26 Apr 2010 08:59:52 +0200 In-Reply-To: <20100426052858.GA4875@tomas> X-Mailer: Evolution 2.28.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72831 Archived-At: On Mon, 2010-04-26 at 07:28 +0200, tomas@tuxteam.de wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sun, Apr 25, 2010 at 11:49:20PM +0200, Peter Dyballa wrote: > > > > Am 25.04.2010 um 21:43 schrieb Gaute Amundsen: > > > >> read(3, 0x9f10018, 4096) = -1 EAGAIN (Resource > >> temporarily unavailable) > >> read(3, 0x9f10018, 4096) = -1 EAGAIN (Resource > >> temporarily unavailable) > > > > What is there "temporarily unavailable?" And why at all? > > > >> poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, > >> revents=POLLOUT}]) > >> writev(3, [{"2\30\21\0\1\0<\0", 8}, > >> {"-misc-fixed-medium-r-normal--161"..., 60}, {"", 0}], 3) = 68 > > > > > > [...] Find and check them! Some trace variant is able to record files > > being opened. > > As Peter says, try to find what fd=3 is (somewhere higher in the trace > there should be a call to open/connect returning 3). Searching backwards for ' = 3$' in less gets me this bit: socket(PF_FILE, SOCK_STREAM, 0) = 3 connect(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0"}, 20) = 0 getpeername(3, {sa_family=AF_FILE, path=@"/tmp/.X11-unix/X0i\1"}, [20]) = 0 To me that looks like a socket to the current X server. > Linux makes it difficult to find the "other end" of a Unix domain > socket; nevertheless, if you say "ls -l /proc/fd/, ls -l /proc//fd/ gives me "3 -> socket:[1218659]" the first socket emacs opened. > you'll see where fd3 is going to; with "lsof" or "netstat -axp" you'll > "see" the connection, but not which process is at the other end... Both say about the same yes. emacs 11410 gaute 3u unix 0xdd478000 0t0 1218659 socket unix 3 [ ] STREAM CONNECTED 1218757 11410/emacs > So your best bet is to search for connect/open/whatever other calls > might be returning an fd of 3 up your trace. Precisely :) So emacs is waiting a lot on X.. Particularly while doing something related to one enormous font. But I can't say I've noticed any particular slowness otherwise.. And what related to X could have been disturbed by my moving of the system.. The xorg.conf is default and as simple as can be. My first intuition was that X somehow has saved, or relies on an external "pointer", to a "video device" that is no longer there, and emacs relies on some info about screen size that is now wrong or missing. Guess I could try to reproduce the problem in some other program that relies on X... but what? or I could try to start emacs with a remote X server in different ways. Perhaps I could sidestep gnome somehow, and see if that's related. But I ramble :) Gaute