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#65843: 28.2; Too many iconified frames in .emacs.desktop -> crash (macOS) Date: Sun, 10 Sep 2023 06:20:05 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28718"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65843@debbugs.gnu.org, tanzer@gg32.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 10 06:21:29 2023 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 1qfBwv-0007I7-Ja for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 06:21:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfBwT-0003HE-Jq; Sun, 10 Sep 2023 00:21:01 -0400 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 1qfBwR-0003FX-QS for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 00:20:59 -0400 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 1qfBwR-0008Cd-Hc for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 00:20:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfBwU-0007Hc-0J for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 00:21:02 -0400 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: Sun, 10 Sep 2023 04:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65843 X-GNU-PR-Package: emacs Original-Received: via spool by 65843-submit@debbugs.gnu.org id=B65843.169431962527943 (code B ref 65843); Sun, 10 Sep 2023 04:21:01 +0000 Original-Received: (at 65843) by debbugs.gnu.org; 10 Sep 2023 04:20:25 +0000 Original-Received: from localhost ([127.0.0.1]:48738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfBvs-0007Gd-Fp for submit@debbugs.gnu.org; Sun, 10 Sep 2023 00:20:24 -0400 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:47300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfBvm-0007GI-GY for 65843@debbugs.gnu.org; Sun, 10 Sep 2023 00:20:23 -0400 Original-Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2bbbda48904so55432391fa.2 for <65843@debbugs.gnu.org>; Sat, 09 Sep 2023 21:20:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694319608; x=1694924408; darn=debbugs.gnu.org; h=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=x8toGpCZb+wGKWAPPzHKdLhxehEDOPLm4yKKrFB/Zew=; b=VqLxFYehKMDn1s5FjqcHPop5bE3/lEDGRcTGwD4ff8aqnEIFyytrOfH/h7B2TzmrWi OgIpJqigGZaft6t6kRPVlL+skCoylovXFx0A3G6vm4aM7OR/DthoGD9ioliY2ob9f/3y vehcIgiDRuVd7Ppas3ON9Evs9GRm3b62t1yN+h8cHgo754zImjNffaQyUo0fcsNO8oWK kPw/UyCMLubEO96qPlFCJt3xWLDXkMvYLesTzmh5qT8cB9NkG4wT5mDzwugHd8fQdhVk FoRD+d4LFMW/DJXwu/vsPlm03u4SbfCDqMp2BBd/rMQ7aIYQ23kKcqb0lTJb6PQ10uoS vdgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694319608; x=1694924408; h=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=x8toGpCZb+wGKWAPPzHKdLhxehEDOPLm4yKKrFB/Zew=; b=g4EXd1u61EZ+GPK8MmaNWrMIhH9UuydxdwkexmIviTQQ5i10wmdVr0RA4K+UOpxrEA jiRMqrTNgq9JTUyXIKZxg0rNu09RPn067++ywUqgdnE81DwjJoLKcuweLJPugBw+63ZW wwWrsmGdmdvE692RC0ajj5bQ4lT5K7hQP5QFNOeb5uDCah3yrd1+l0lIVSmFfWcn4teh YdheVYm379k9/DXx28uK4hHWlcyKLQPyq4KoFi4EzJViGElCIhH7JrTkZeuuGCnSWD4v H3En7cOLSHWO+Dh3Mx1wdGKqhxE77gmTYC9lvQCh0pGJnkQrFLVdQYettfi3bQrTnbE1 4iog== X-Gm-Message-State: AOJu0YyOwMPfqGtasyJlmb3bPap+VeygHWvOGE8ShuGZxmUaY7+5B4ho h0Z6rZ01Nb7Ib7WXNCmjOk+Z5+GfPoVk9g6J X-Google-Smtp-Source: AGHT+IF3lRgtuSM/BS5x20RDhID5H+besRcRLZW+4F1JavtNm1EIvurFjfKBUZmZ4ZNVNZkgYLaHHw== X-Received: by 2002:a2e:9988:0:b0:2b4:5cad:f246 with SMTP id w8-20020a2e9988000000b002b45cadf246mr4730363lji.7.1694319607469; Sat, 09 Sep 2023 21:20:07 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e3610e.dip0.t-ipconnect.de. [217.227.97.14]) by smtp.gmail.com with ESMTPSA id op5-20020a170906bce500b00992ea405a79sm3252712ejb.166.2023.09.09.21.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Sep 2023 21:20:06 -0700 (PDT) In-Reply-To: (Alan Third's message of "Sat, 9 Sep 2023 20:53:45 +0100") 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:269907 Archived-At: Alan Third writes: > On Sat, Sep 09, 2023 at 04:35:56PM -0000, Christian Tanzer via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> >> ============================================================================= >> In Emacs 28 and Emacs 29, desktop-load crashes when there are too many >> iconified frames in the .emacs.desktop file. >> >> The two attached .emacs.desktop files show the smallest test case that >> I could come up with: >> >> - .emacs.desktop.works with 3 non-iconified and 4 iconified frames >> loads without problem in Emacs 28 >> >> + desktop-load of this file crashes in Emacs 29.1 >> >> + a .emacs.desktop with 3 non-iconified and 3 iconified frames works >> in Emacs 29.1 >> >> - .emacs.desktop.crashes with 3 non-iconified and 5 iconified frames >> leads to a crash in Emacs 28 (see attached problem report generated >> by macOS) >> >> - I tried .emacs.desktop with up to 17 non-iconified frames in Emacs >> 28 without problems >> >> - Up to Emacs 27, I've never seen a problem with desktop-load crashing >> ============================================================================= > > Can you please try the master branch with the two attached patches > applied? The v2 patch should be applied first. > > The apple crash report is enough to see that the crash is happening > somewhere deep inside the AppKit code on frame creation. No idea why, > but maybe we'll be lucky and the fix will be the same as the last > frame-creation crash fix... Alas, I cannot reproduce the abort here, with an unpatched master or emacs-29, and neither on Ventura/arm64 nor Big Sur/x86_64 :-(. Christian, can you reproduce this with emacs -Q? Or does it perhaps depend on your init.el? (This was the case for me in the child frane case that Alan fixed.)