From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: UI input unresponsive on macOS Date: Tue, 3 Jan 2017 17:49:00 +0000 Message-ID: <20170103174900.GA49916@breton.holly.idiocy.org> References: <72DF4592-73FE-452D-9CF3-C892E73BD36E@play-bow.org> <20170103143621.GA41725@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1483465805 372 195.159.176.226 (3 Jan 2017 17:50:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Jan 2017 17:50:05 +0000 (UTC) User-Agent: Mutt/1.7.1 (2016-10-04) Cc: emacs-devel@gnu.org To: Bob Halley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 03 18:49:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cOTDg-0007sO-TN for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2017 18:49:57 +0100 Original-Received: from localhost ([::1]:35254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOTDk-0002Un-Uq for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2017 12:50:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOTCu-00020y-JU for emacs-devel@gnu.org; Tue, 03 Jan 2017 12:49:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOTCq-000086-Cs for emacs-devel@gnu.org; Tue, 03 Jan 2017 12:49:08 -0500 Original-Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36969) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOTCq-00007n-54 for emacs-devel@gnu.org; Tue, 03 Jan 2017 12:49:04 -0500 Original-Received: by mail-wm0-x229.google.com with SMTP id t79so435821568wmt.0 for ; Tue, 03 Jan 2017 09:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=qtg1Vg42h6+yLWOHCA3gt8Yfnz7V0FM3PuYlUHuOQOg=; b=fWM9OGfEG/w+e9TNI1lCtN9boa6WlAkkPuX0JhN1NmN1GTjmJZbXjIYOjg0yDt8Nd7 UxitY/qVMD26Pduwt/bf1e4SPiusCeXEzvrpL7zotmtNz+7pzOwhnvg7ouo41T+SovBK TvDsHzXDguvB/Vw8khfX0AAxXH2AVcU99TfZkLN9BJSLXesh4Fp+rk7CzeXLJcCIig8m tCuTCmO7uL8KRXIwFG3T1/Kz1kH4m61IUQ343nfHBSLB4IyexElXa9LGMm4iNJzBG9QR qmENUPWlh8R1mZpjpEQEhL7/EDhlyo8WEVj/4/wgoKYjoq96AC7lzkyWwc2DepcgHxgj 66ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=qtg1Vg42h6+yLWOHCA3gt8Yfnz7V0FM3PuYlUHuOQOg=; b=NxVhn393Az7CwGJS3TbhLf9i1kFffhFhydtZPDVgvOiMItJSzvu/M8slVA3UByV1iy 7fFp9PAxOQ11t5Zd9lrgsg8B5rULbirAA+kXiBDCjElsy5+HCQG+UBOuGpGPHNfVwd+/ OUDoC75T0ZhYDcZ7DOvxvslTiTM2p3IHb648nL//iw1F/TM7EsBq1u4MiRIN+t+Xd/ES QoEwRFbtwnyGzgmNRBNVZ4DTeOsYa/Ubd0QvCfbyXWWvfQNGBg1X1bHoX9NvRaafaCOC N44owdpLri8uhwHIgEtpUF4HkuHIpGOrfw7rIabp21fcFKjTx6sHUH5B2fZ/2EtLO+vI CvQg== X-Gm-Message-State: AIkVDXIboSip6Qsy5AeO5zY0paNpaPxMibx1ynJGLGT8/XbfNwVxrGZjZZJan9oTB57+XQ== X-Received: by 10.28.37.70 with SMTP id l67mr53464622wml.128.1483465742948; Tue, 03 Jan 2017 09:49:02 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-8471-fd78-dc83-6a18.holly.idiocy.org. [2001:8b0:3f8:8129:8471:fd78:dc83:6a18]) by smtp.gmail.com with ESMTPSA id e6sm94342478wjw.33.2017.01.03.09.49.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 09:49:02 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211088 Archived-At: On Tue, Jan 03, 2017 at 08:59:43AM -0800, Bob Halley wrote: > > > Can you try the attached patch? > > It didn’t fix things, but I did find a way to reproduce the problem at will. > > If start emacs, and then you run > > open -a /Applications/Emacs.app whatever_file_here I didn’t even know you could do that. I wonder if I’ve accidentally clobbered some notification or event somewhere. I’ll have to try and work out how this works. > For a file which isn’t open, then the UI becomes unresponsive to > input. Typing C-G seems to unstick it eventually, but there can be > very long delays (I timed one at 49 seconds) before it beeps and the > UI becomes responsive. I’ve seen it spontaneously complete too, > again after a long time (at least 30 seconds), but usually it does > not complete. I had some trouble with that sort of thing before. What was happening then was that a time‐out in ns_select was being reached before it would react. I had thought I’d fixed that particular problem for most cases in the last patch, though. > Sometimes when I “continue” in the debugger it unsticks whatever is > stuck, though the file I was trying to open never opens. One of the bugs I had with an earlier version of this code would go away when I put a breakpoint on the relevant function. Debugging can be hard. :) Thanks for your help. -- Alan Third