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#72440: 31.0.50; MacOS: TUINSRemoteViewController log message Date: Sat, 03 Aug 2024 12:33:13 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30648"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third To: 72440@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 03 12:34:00 2024 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 1saC5G-0007m7-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Aug 2024 12:33:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1saC52-0005qu-V0; Sat, 03 Aug 2024 06:33:45 -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 1saC51-0005qk-Rq for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2024 06:33:44 -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 1saC51-0001wD-Hf for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2024 06:33:43 -0400 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:From:To:Subject; bh=6jO3G/LtIdMqfsEiHwwJ2mIguQzTfcSBvn7JrPJaZQo=; b=RwHM/5Q9gK1yukI3IpYxdxSfErfION1mu9m41wYeEsijXaWsqxvhEZtOp0PuQP/vRE3zQ+jL+/f8ym1laOjG4P8Q80Ik+rze8u8BrntDSsQhx2y65WSKUpK4bo9S7Wa29Zr35lfbnBhYi519i+fUMBAgSEthW0UBTx5MIgVNN4uovZ0OMOHunveBnMS2bvhNIh4z4us73rpypPll1fR/AfENA6JlmImHQ6NymQlH+tw+BrQ+Q9i2IOjEu5R6T8Q30E2ipigXci5vNRX/FaHYRAYG4zuPkiWSKS7836R7ntJvVtKORzjcznfO9LSTuDusxU3NDkf0VENomGPikjyu4g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1saC5K-0000Q9-Oi for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2024 06:34: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: Sat, 03 Aug 2024 10:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72440 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17226812281593 (code B ref -1); Sat, 03 Aug 2024 10:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Aug 2024 10:33:48 +0000 Original-Received: from localhost ([127.0.0.1]:54100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saC56-0000Pd-4x for submit@debbugs.gnu.org; Sat, 03 Aug 2024 06:33:48 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1saC53-0000PS-Ij for submit@debbugs.gnu.org; Sat, 03 Aug 2024 06:33:46 -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 1saC4j-0005py-NH for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2024 06:33:25 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1saC4b-0001uo-Ih for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2024 06:33:19 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5a156557029so13450347a12.2 for ; Sat, 03 Aug 2024 03:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722681195; x=1723285995; darn=gnu.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=6jO3G/LtIdMqfsEiHwwJ2mIguQzTfcSBvn7JrPJaZQo=; b=c8z24d/4D2D1AlffYO+M4e2cwgVbyPq6naz1IwVSGqXN9Bn0Gbyi0VGFLk0TrlW6ZU AsZJ0Tf2L/3LzirgVm5cgH1wkllEQRbxJ7EFTqSNB6QmwTlHaBgtItVGqVduoUIbOvlT //gcFnifSU8Zw7QPJjKBoI7KaA8PmwCxbuN3mMriuUiOxhJ10xwakm9TGB3ucltQ+GXa kUNhkDgXxF+Tg0kYjrNeMD974ymbcyFfnNXma2KWN7xV97wt+cvjT4Y4XOLFIQ5d94YJ s4ohTg3fh8Ecm/+jkMt7YQb/v2OOte141gCPQ7ftQ2VtTIHo3TMw1xZb/ZgznDbFsrhT iBSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722681195; x=1723285995; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6jO3G/LtIdMqfsEiHwwJ2mIguQzTfcSBvn7JrPJaZQo=; b=cr3GFB2EUNB9CwQOOSmA9rh3cWQ4zaJtUBwYxHdfZN3GpSSZsC1hMQjsfz4TIwJ+T9 a92fwsfLZGjLpJes1gRT8KxvVOKeZW8m416G5HzNPzU60nHAIxycMTHDF8VRx8jQLTZD bN/LgqE2GR6dSehlR2KC4VM9wVe1Bd3HAIu6m9qIPv7e6fb1aByIxlcocd5t4NRAlp9T wYM79VgWN8Pu9Vf/rsKU6Mzfg6flFY/mqSWkJ7t6OpX68yysSb+ewuT/bXDCpXa4sMVx FY3TjT2v3D0WCSTgCACEoDWD92YrHRhmgotE7eQ8BLNTFbXBF+coCYEV6ravLH14jgvg kuyw== X-Gm-Message-State: AOJu0YxdM9/4TTCRtulr8MFZXQ0qXWSTBQiTzEIof6N8BY4ujUEwrtTk Ut3RojSfraQWfkqCITLJ/bV0oAjZsEHzl3HMh4SKfJuIY+a9yPVZgGMlwg== X-Google-Smtp-Source: AGHT+IGtOV95mid4hJbzDueT9oeQucAdBJhXUEiO4kIL+TDj4GCCJdkvWXydPn+ZAxsL/fql/w6EYg== X-Received: by 2002:a17:907:e8c:b0:a7a:9144:e23a with SMTP id a640c23a62f3a-a7dc50a4646mr472396866b.43.1722681195266; Sat, 03 Aug 2024 03:33:15 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a5d1.dip0.t-ipconnect.de. [79.227.165.209]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9ec8d7fsm199041366b.219.2024.08.03.03.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Aug 2024 03:33:14 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:289671 Archived-At: On macOS 14, Emacs occasionally prints to stderr 2024-08-03 11:45:26.785586+0200 emacs[97956:1226150] [miscellany] CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them Some digging on the Internet reveals that this is in the end caused by an API change in NSView in macOS 14. https://developer.apple.com/documentation/macos-release-notes/appkit-release-notes-for-macos-14#NSView /* Defaults to NO on macOS 14 and later. Defaults to YES on previous releases. Note some classes (like NSClipView) set their own default values differently than NSView itself. */ @property BOOL clipsToBounds API_AVAILABLE(macos(10.9)); Proposed fix for emacs-30 (minus the igc stuff): 1 file changed, 4 insertions(+) src/nsterm.m | 4 ++++ modified src/nsterm.m @@ -8069,6 +8069,10 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f emacsframe = igc_xalloc_raw_exact (1); #else emacsframe = xzalloc (sizeof *emacsframe); +#endif +#ifdef NS_IMPL_COCOA + if (NSAppKitVersionNumber >= NSAppKitVersionNumber14_0) + self.clipsToBounds = YES; #endif windowClosing = NO; processingCompose = NO;