From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#12834: 24.3.50; OS X selecting a font can lock Emacs Date: Sat, 17 Nov 2012 21:37:31 +0100 Message-ID: References: <2554F49D-A931-422C-B95F-019466CF2878@swipnet.se> <5AFE0BBF-5319-4D84-89D1-E0498AA64B8D@swipnet.se> <1F0B0E97-56CE-4078-BD56-6B6D690245B6@swipnet.se> <1A417DFE-DAF0-4A95-BF8C-CA915454D582@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353184700 4141 80.91.229.3 (17 Nov 2012 20:38:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2012 20:38:20 +0000 (UTC) Cc: "12834@debbugs.gnu.org" <12834@debbugs.gnu.org> To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 17 21:38:30 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TZp9m-0008Dr-Gq for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 21:38:26 +0100 Original-Received: from localhost ([::1]:48392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp9c-00015j-I4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Nov 2012 15:38:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp9Y-00014k-5s for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 15:38:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZp9V-0003Vu-3x for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 15:38:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZp9U-0003Vg-Vx for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 15:38:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TZpAM-0003TK-BC for bug-gnu-emacs@gnu.org; Sat, 17 Nov 2012 15:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Nov 2012 20:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12834 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 12834-submit@debbugs.gnu.org id=B12834.135318470713297 (code B ref 12834); Sat, 17 Nov 2012 20:39:02 +0000 Original-Received: (at 12834) by debbugs.gnu.org; 17 Nov 2012 20:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:51357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZp9m-0003SP-UV for submit@debbugs.gnu.org; Sat, 17 Nov 2012 15:38:27 -0500 Original-Received: from mail-ea0-f172.google.com ([209.85.215.172]:48274) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TZp9k-0003SH-Cj for 12834@debbugs.gnu.org; Sat, 17 Nov 2012 15:38:26 -0500 Original-Received: by mail-ea0-f172.google.com with SMTP id a1so785754eaa.3 for <12834@debbugs.gnu.org>; Sat, 17 Nov 2012 12:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=dypZlABt8dw0RvnIQHGD3sqBGNWN01pBGNiT8qc/MIU=; b=hsgHkUHi1+Ro+Gtv1W9U8J8fGONUzhYSq+ftBPuegFV8wjUO9+Uvb0eE+0vebZ0IGU 3r5vXav6VCvFBdcQ15u7Ho6rhZjUOFoacV7DbJ/wxQTDT8q7UyGelq4lZssg4qVtiYvx Ncn0zpAQTGykU+l8uyDJgfu6R6BtExQmLJMmFNldJUAxVE5YV+/Qfn0vRXily74Ynjj8 zL971M3av8YewX+NoBlJFKcn19TPagEgOOsiH3tfmibXFbCikLNRkqLwDoX8vThRbS0J GmjONmY07O92GsJ/IjV+lh0VX55+CcWG/jhw9jjpb43KVJfJyvvZaMgk6FEc29AR5SIQ yvdw== Original-Received: by 10.14.209.136 with SMTP id s8mr9018806eeo.33.1353184649461; Sat, 17 Nov 2012 12:37:29 -0800 (PST) Original-Received: from [10.0.2.25] (catv-80-99-48-145.catv.broadband.hu. [80.99.48.145]) by mx.google.com with ESMTPS id d44sm12778860eeo.10.2012.11.17.12.37.28 (version=SSLv3 cipher=OTHER); Sat, 17 Nov 2012 12:37:28 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -2.6 (--) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67076 Archived-At: Well it went from being 100% reproducible to only about 10%. Although I = haven't tested it exhaustively, it seems to only be a problem when I = type in some ridiculously large font size e.g. 7000. So I think it's = probably not really an issue. -Ivan On Nov 17, 2012, at 4:29 PM, Jan Dj=E4rv wrote: > Hello. >=20 > I can reproduce it sometimes, but not most of the times. Anyway, I = made another checkin in the emacs-24 branch. Please try it. >=20 > Jan D. >=20 > 14 nov 2012 kl. 10:39 skrev Ivan Andrus : >=20 >> On Nov 14, 2012, at 7:08 AM, Jan Dj=E4rv wrote: >>=20 >>> Hello. >>>=20 >>> 13 nov 2012 kl. 19:40 skrev Ivan Andrus : >>> On Nov 13, 2012, at 4:19 PM, Jan Dj=E4rv wrote: >>>>> Which version did you build? Are you sure you built the emacs-24 = branch, not trunk? >>>>=20 >>>> To be honest I'm not entirely sure how to figure that out. Every = time I think I understand bzr it doesn't do what I think. Anyway, = updating on the branch I get >>>>=20 >>>> $ bzr pull >>>> Using saved parent location: = bzr://bzr.savannah.gnu.org/emacs/emacs-24/ = = =20 >>>> No revisions or tags to pull. = = =20 >>>>=20 >>>> In src/nsterm.m I see >>>>=20 >>>> 303 static void >>>> 304 hold_event (struct input_event *event) >>>> 305 { >>>> 306 if (hold_event_q.nr =3D=3D hold_event_q.cap) >>>> 307 { >>>> 308 if (hold_event_q.cap =3D=3D 0) hold_event_q.cap =3D 10; >>>> 309 else hold_event_q.cap *=3D 2; >>>> 310 hold_event_q.q =3D (struct input_event *) >>>> 311 xrealloc (hold_event_q.q, hold_event_q.cap * sizeof = (*hold_event_q.q)); >>>> 312 } >>>> 313 =20 >>>> 314 hold_event_q.q[hold_event_q.nr++] =3D *event; >>>> 315 /* Make sure ns_read_socket is called, i.e. we have input. = */ >>>> 316 kill (0, SIGIO); >>>> 317 } >>>>=20 >>>> which I think is the required change. I still see the problem. = When I run under gdb I am unable to interrupt the process with Ctrl-C = once it has stopped responding. I'm afraid I'm not sure how to help = debug it otherwise. Sending SIGIO manually doesn't cause it to become = responsive. >>>=20 >>> That is the fix. Sending SIGIO manually is pointless. I can not = reproduce the error anymore, so make sure you did make install, and give = the exact steps you did to encounter the bug, starting from -Q. >>=20 >> I ran make install to be sure. >>=20 >> ./nextstep/Emacs.app/Contents/MacOS/Emacs -Q >>=20 >> Interestingly this opens ~/.emacs.d/abbref_defs which had an error on = my machine. Is this expected with -Q? Anyway, it's probably not = relevant to the discussion at hand since I see the same behaviour if I = move .emacs.d entirely. >>=20 >> Then I run `menu-set-font', either from the menu or with C-x C-e. I = can change the font and the size freely. Then I click in the "Size" = text box. A few times this hasn't caused problems, but usually it = causes Emacs to stop responding. The font panel still responds, but = nothing changes in terms of the font displayed and it doesn't register = typing etc. FWIW, I added a printf to hold_event and it gets called 3 = times when I click on anything other than the text box, but only twice = when I click on the text box.=20 >>=20 >> Thanks for looking into this. I'm running 10.8.2 with home brew = installed with the latest XCode installed. I recently upgraded from = 10.6.8. I'm not sure what else might be at play. >>=20 >> -Ivan >=20