From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#75275: 30.0.92; `make-thread` bug on macOS 15.2 Date: Thu, 02 Jan 2025 20:59:26 +0100 Message-ID: References: <86frm1jgpq.fsf@gnu.org> <86bjwpjfle.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11806"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75275@debbugs.gnu.org, Eli Zaretskii , stefankangas@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 02 21:00:23 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTRMl-0002u7-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 21:00:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTRMU-0007cb-SL; Thu, 02 Jan 2025 15:00:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTRMS-0007cN-6V for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:00:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTRMR-00068Y-SJ for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:00:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=fOSg9BWgDj68QTN78qXUqlEc8wqkR/B4M9p07+y7DY0=; b=IZAJoSMF3z8ycqquQYfcCMJQXYg5vJJgOSsBKHOxBvoKgBjYk8060yR8SzHw29zARuZZvKITRuz2brUSj10WslWObU7PBsGURPp502ZzjX6Xlpzh/lOiXb1RmG+JwjRryZJS7WBeNkK+L0nwT/C5gkogKHv1qvLOVQL1Go5/IlcyUGKJpEaiw2/HeYy2RGkpW61REzNPUH1sEzzD5vkRthflpl6jpphZAGAIoYoS5C6J8zhXXCzxvBdfh4vNj7Vjz4oZEFO/ql9HsTH/ZgVhGnKWoBblGOSaexH/B3fWsdTDEoKRMA5w1ya846dbjsIMxEfxfvJa9DwtMQFiZXiS8Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTRMR-0004pF-M1 for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 20:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75275 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 75275-submit@debbugs.gnu.org id=B75275.173584797218453 (code B ref 75275); Thu, 02 Jan 2025 20:00:03 +0000 Original-Received: (at 75275) by debbugs.gnu.org; 2 Jan 2025 19:59:32 +0000 Original-Received: from localhost ([127.0.0.1]:46804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTRLv-0004nY-MT for submit@debbugs.gnu.org; Thu, 02 Jan 2025 14:59:32 -0500 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:48565) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTRLt-0004nO-Et for 75275@debbugs.gnu.org; Thu, 02 Jan 2025 14:59:30 -0500 Original-Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-38789e5b6a7so5894615f8f.1 for <75275@debbugs.gnu.org>; Thu, 02 Jan 2025 11:59:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735847968; x=1736452768; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fOSg9BWgDj68QTN78qXUqlEc8wqkR/B4M9p07+y7DY0=; b=ctPm/Qw1CneOAJM8YfMi+ycowf1o9KpkoFO1ZUYPS50IlHyUcKYn0UpxHIMkOEh7iV GFSVJ7Nxaf+OqeA4+Abt5GNRQC04U1rL3jqrOrRKWU138QXuEPVkSIBcEHD/avMFDX4x 4Fk0mXjZe2Qm4SK+GJUHgdp4+nVOtGS4P2bFkoVva/13uNfOs+bJ9Brr2xRx9l8I42Mk 7AhjXnUGCxPRcCq3Py1FFYz6JHAoolUhucWG1ukmcVt7XAnNoIiOBJKqlFVL9TPjAWk1 I6mhWX27kt1UChxg7nBnp8XkiXHxba1fIjGNXiQOLmLs5y1ce7mH58ig0ENR9ZJOlLZd kYHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735847968; x=1736452768; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fOSg9BWgDj68QT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kEy035eLAEbr5Fw== X-Received: by 2002:a5d:5847:0:b0:38a:2b34:e13e with SMTP id ffacd0b85a97d-38a456cbf49mr17494467f8f.18.1735847967803; Thu, 02 Jan 2025 11:59:27 -0800 (PST) Original-Received: from pro2 (p200300e0b7290d009d701914d6a76d9d.dip0.t-ipconnect.de. [2003:e0:b729:d00:9d70:1914:d6a7:6d9d]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e2f9sm39892116f8f.81.2025.01.02.11.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 11:59:27 -0800 (PST) In-Reply-To: (Alan Third's message of "Thu, 2 Jan 2025 19:26:47 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298228 Archived-At: Alan Third writes: > On Thu, Jan 02, 2025 at 06:52:11PM +0100, Gerd M=C3=B6llmann wrote: >> > >> > AFAIR my theory went like: >> > >> > - [NSApp run] + key event handler put C-g in the hold queue >> > >> > - ns_select_1 calls "run" (it did before my change). >> > >> > - I couldn't find how input events from the hold queue come >> > to Emacs in the whole process, so I added that >> > >> > - The "call run in all threads" was then a mistake >> > >> > Seemed to work, to a degree. >>=20 >> Maybe I should add that that is kind of a loop. It can be that the first >> call to ns_select_1 has no C-g in the hold queue, NSApp.run leads to one >> being put in the hold queue. A second ns_select_1 then finds C-g and >> gives it Emacs and so on. >>=20 >> Why that whole thing hangs, is another question. > > I suspect it's because we removed the code in bug 65843. > > We removed that because there was a crash on start using a specific > desktop file. Something to do with a certain amount of iconified > frames or something. It never made much sense to me, but if the > comment that went along with the code was right then sometimes the app > defined event is never delivered and therefore the event loop doesn't > stop. That sounds a bit like the second category of freezes I've seen in the past, the ones without beach ball, where Emacs apparently handles Cocoa events, but no input events are transferred to keyboard.c. I think the other category, the freezes with beach ball are older than bug#65834. I've had them just from the start when using Emacs again. > I can't believe that's a genuine bug in Apple's code, because surely > they'd have fixed it by now, so probably it's something in our code, > but who knows what. I don't believe it's an Apple problem either, for the same reason. > You could try reverting that change and see if it solves your hangs. > If so then we'll have to find another solution, like perhaps just > preventing ns_send_appdefined from doing anything while we're creating > frames. I'll pass. I've never found a reproducer for either category of freeze, and now I've had enough, at least for some time :-).