From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?R29uZy1ZaSBMaWFvIOW7luWuruavhQ==?= Newsgroups: gmane.emacs.devel Subject: Re: UI input unresponsive on macOS Date: Tue, 3 Jan 2017 21:52:56 -0600 Message-ID: References: <72DF4592-73FE-452D-9CF3-C892E73BD36E@play-bow.org> <20170103143621.GA41725@breton.holly.idiocy.org> <20170103174900.GA49916@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1483501989 8289 195.159.176.226 (4 Jan 2017 03:53:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2017 03:53:09 +0000 (UTC) Cc: Bob Halley , emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 04 04:53:06 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 1cOcdL-0001Cw-3d for ged-emacs-devel@m.gmane.org; Wed, 04 Jan 2017 04:53:03 +0100 Original-Received: from localhost ([::1]:37127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOcdO-0005He-Or for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2017 22:53:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOcdI-0005HM-C1 for emacs-devel@gnu.org; Tue, 03 Jan 2017 22:53:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOcdH-0007VG-EC for emacs-devel@gnu.org; Tue, 03 Jan 2017 22:53:00 -0500 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:33577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cOcdH-0007SE-9b for emacs-devel@gnu.org; Tue, 03 Jan 2017 22:52:59 -0500 Original-Received: by mail-oi0-x22d.google.com with SMTP id 128so335907833oig.0 for ; Tue, 03 Jan 2017 19:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mIg/S0ySTb7Bi23FxZ5k3ROFZ9wonE4tr84nrX0HoQY=; b=GYrnpUBN2hjYaRozVuyaSj2zRJvuGGXDAfUWaz8B8Hg2copjUktJ9g/RQmbQ9z0R9l SRPztc9DA0UqMvV4M56k9dG/YLx+3vbUrM8BrZU2FHfcA4BCGCtIyNyqkZL6FbSIR9GU 0WGlwWPdyAxzvnNDZyQlkWHW7zixKCmQXpwRaz1j+dzSzzJgAwC86D50qyvE2cd6t2qN aw7OFVy55VsWKXt/TW7sYJQNpNuZqzFuXkN4zTgJQsoLuz25qOR/nZuloqeu1acl7+uK Qhwu5P3Phv+87WVTE2+3Tr2KoHw98Coa1Dfyb0ONvUwrc29QkjEMRQyn7NAIO7gKj3qU mkoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mIg/S0ySTb7Bi23FxZ5k3ROFZ9wonE4tr84nrX0HoQY=; b=Tm4o20H/Sga9X9ztZp2OXjUGeLJOQZMXL1WiszaC3LtUsY3vQwVql/rbX8mv/vAxVp 69NoZAeJshs1Zo7ssno/TWR6GV2MbzbHlGo2a2UsuLTteJt/yN8Xtx0ZB1jx6WjmKng9 jRF0J67OyvFC+ii7hmCr5AEz3Y5r0qVA2l7QUtrSowg03DvLLJtbRQABS6EXA0+/BqRk JtQRie2/xemjpUAoi82mo5fIHOmgAuUq6fDC3CMeg2DpOmNRIOvUmUTMck8S9qTdBK9q OM/wrpHdXN9tDcg9Xud3UXt1EfsX670Z7IrUexpKdpCMeTVZvL7c6C1EIbX9fF8DEDY5 lXLQ== X-Gm-Message-State: AIkVDXLVaIAzC59qh8/rUs3KJzFsPYF6zprsX2r3J0ppyZ+AZ2TpYkX1s8yG3I65/y79BeVRVnrTC76dzTZMJA== X-Received: by 10.202.196.198 with SMTP id u189mr31106466oif.64.1483501976911; Tue, 03 Jan 2017 19:52:56 -0800 (PST) Original-Received: by 10.74.77.208 with HTTP; Tue, 3 Jan 2017 19:52:56 -0800 (PST) In-Reply-To: <20170103174900.GA49916@breton.holly.idiocy.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22d 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:211098 Archived-At: I have similar issue on Linux/Gtk3. I am wondering if this is a threading/concurrency issue. On Tue, Jan 3, 2017 at 11:49 AM, Alan Third wrote: > On Tue, Jan 03, 2017 at 08:59:43AM -0800, Bob Halley wrote: >> >> > Can you try the attached patch? >> >> It didn=E2=80=99t fix things, but I did find a way to reproduce the prob= lem at will. >> >> If start emacs, and then you run >> >> open -a /Applications/Emacs.app whatever_file_here > > I didn=E2=80=99t even know you could do that. I wonder if I=E2=80=99ve ac= cidentally > clobbered some notification or event somewhere. I=E2=80=99ll have to try = and > work out how this works. > >> For a file which isn=E2=80=99t 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=E2=80=99ve 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=E2=80=90out in ns_select was being reached before it > would react. I had thought I=E2=80=99d fixed that particular problem for = most > cases in the last patch, though. > >> Sometimes when I =E2=80=9Ccontinue=E2=80=9D 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 >