From unknown Sun Jun 22 00:13:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 07:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65817@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169415648924737 (code B ref -1); Fri, 08 Sep 2023 07:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Sep 2023 07:01:29 +0000 Received: from localhost ([127.0.0.1]:42047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVUf-0006Qu-5M for submit@debbugs.gnu.org; Fri, 08 Sep 2023 03:01:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVUY-0006Qd-Lf for submit@debbugs.gnu.org; Fri, 08 Sep 2023 03:01:27 -0400 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 1qeVUR-0005kW-1e for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:01:15 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeVUO-0007bv-Kb for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:01:14 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99357737980so210997366b.2 for ; Fri, 08 Sep 2023 00:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694156469; x=1694761269; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=bBE/ZYMkGgxpd/Ljc/IZhPLVpqhWvCuuNbQLoI36hNU=; b=reTU5/Uuu1e1cCUcy11ABQp9tBPvFIlUZZm4DAR7hfxLkd8v2Hb4IEQzBi4VF4t/LE 5OnGPbzPkUhSjfEEOEFPfX8UgakLHaFXiSh97o5yEzqTqwVLbjTKEve8bDHEtLFj8pny v2WEyo7PWYfzpmrSv9N2780hojabvMvimncbl9LplM4kamprsdfAPmp9bYfHzscyPHqn JFg2EKl70SOYNP+e8BPkvGK7g2wwfUdBbjyTPqVNG0AOrOZEmX+2T7eA7HEwr8VEjvMb ccE+bVxftzwiH/i8I/awfLIDYP4KRe79+jIDtZZy7ySHzaeiGdnqoet6+yAaRyG99HDU twBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694156469; x=1694761269; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bBE/ZYMkGgxpd/Ljc/IZhPLVpqhWvCuuNbQLoI36hNU=; b=UgF1cJpxFa5S/HdJvRKYM8F3t9CcSte+/v8WatIeuiz9izIHNbPhyGyf1CDoguS7/V AK/PGjSPVzbvmGN8PuKPWbbLpUdRdtqqCoTYosyDCh49JhsUYvVC4LUQAFAdY1qsfm5m IclOSSjTMbcrqWMq5ZmTNzTrT60sLPlwdkSgF5EqExN9quTdvZ1MtzC/ahzdH/JDi2Rc 7HnBf8v6ujhlBqfTBuTe+K305RChrCPVY8e2r976AyhQ4GS9CPrPNaWgdT1aVAKfD1Sw rcp7yOTJObQ0B0YyBiKPTSH6i8bD+yBki1LpQ2RyQ3wXWAmNJrUzbGryp6f3ErIcHgR/ xctg== X-Gm-Message-State: AOJu0YxxMpbvWCQn0d3ISDP6fqd6CnObdTpGKA7dP3a9SlOUlLO+UPDR jQgs5ufbtCi8GQpPB/Jonxuce22tmMfmag== X-Google-Smtp-Source: AGHT+IGaBpoKNtBtCXATg1tvmR/4NLQofQubYtzLNfS+5bdTM+NI0V/2g1ZOOP+wkmteEsMBxXhUcA== X-Received: by 2002:a17:906:5198:b0:9a5:b1cd:bdf2 with SMTP id y24-20020a170906519800b009a5b1cdbdf2mr1138790ejk.51.1694156469169; Fri, 08 Sep 2023 00:01:09 -0700 (PDT) Received: from Pro.fritz.box (p4fe3aaa8.dip0.t-ipconnect.de. [79.227.170.168]) by smtp.gmail.com with ESMTPSA id y5-20020a1709064b0500b009a0955a7ad0sm595507eju.128.2023.09.08.00.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 00:01:08 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Date: Fri, 08 Sep 2023 09:01:06 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x632.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-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.70 Version 11.7.9 (Build 20G1426)) of 2023-09-08 built on Pro.fritz.box Repository revision: dd818ed821f7a9a35253e39374ee5f0aaae669bb Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.7.9 This is a 10 year old Mac. I can't reproduce it at will. Below is what was printed to the terminal, then Emacs aborted. emacs[29331:353519] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSViewBackingLayer getContext]: unrecognized selector sent to instance 0x11cc693a0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2076fbdb __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff204a8d92 objc_exception_throw + 48 2 CoreFoundation 0x00007fff207f270d -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x00007fff206d7c2b ___forwarding___ + 1448 4 CoreFoundation 0x00007fff206d75f8 _CF_forwarding_prep_0 + 120 5 emacs 0x000000010033d481 -[EmacsView lockFocus] + 49 6 emacs 0x000000010032ee27 ns_focus + 87 7 emacs 0x000000010033df80 ns_clear_frame_area + 400 8 emacs 0x000000010033dda1 -[EmacsView drawRect:] + 321 9 AppKit 0x00007fff2306ddab _NSViewDrawRect + 139 10 AppKit 0x00007fff2379fcdf -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115 11 AppKit 0x00007fff2306d3c5 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967 12 QuartzCore 0x00007fff26e89271 CABackingStoreUpdate_ + 219 13 QuartzCore 0x00007fff26ef084d ___ZN2CA5Layer8display_Ev_block_invoke + 53 14 QuartzCore 0x00007fff26e88787 -[CALayer _display] + 2247 15 AppKit 0x00007fff2306cf35 -[_NSBackingLayer display] + 475 16 AppKit 0x00007fff22fd8022 -[_NSViewBackingLayer display] + 555 17 QuartzCore 0x00007fff26e876f3 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 863 18 QuartzCore 0x00007fff26fd2bee _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 666 19 QuartzCore 0x00007fff26e68b6f _ZN2CA11Transaction6commitEv + 713 20 AppKit 0x00007fff22f500a5 NSPerformVisuallyAtomicChange + 154 21 AppKit 0x00007fff2314c06f -[NSWindow addChildWindow:ordered:] + 640 22 emacs 0x000000010033fe08 -[EmacsWindow setParentChildRelationships] + 696 23 emacs 0x000000010033f2ad -[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1485 24 emacs 0x000000010033ecd0 -[EmacsWindow initWithEmacsFrame:] + 48 25 emacs 0x000000010033ace5 -[EmacsView initFrameFromEmacs:] + 1045 26 emacs 0x00000001003579a1 Fx_create_frame + 7937 From unknown Sun Jun 22 00:13:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 65817@debbugs.gnu.org Received: via spool by 65817-submit@debbugs.gnu.org id=B65817.16941666859000 (code B ref 65817); Fri, 08 Sep 2023 09:52:01 +0000 Received: (at 65817) by debbugs.gnu.org; 8 Sep 2023 09:51:25 +0000 Received: from localhost ([127.0.0.1]:42230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeY96-0002L5-VC for submit@debbugs.gnu.org; Fri, 08 Sep 2023 05:51:25 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:59430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeY90-0002Ko-KX for 65817@debbugs.gnu.org; Fri, 08 Sep 2023 05:51:23 -0400 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-99c4923195dso231203366b.2 for <65817@debbugs.gnu.org>; Fri, 08 Sep 2023 02:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694166670; x=1694771470; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=OAEiANUEtCdz/Bn/Fs+7wF8IUgIcVzNGoXgBHG9khjM=; b=ZlIdD87RnxLzG/gF2ZeiKuTsHmGwLA35ULg3M4gMKdnwLm86PVAQom2DrJfbtxHeNU QV5WvafDIASs57vHftl/6Dux3M3v2pgckADJliqeufFYwgIXodUokNsEbB2lXKNy9QMU +SOVYQuKMtr+qbPWklOk3n9aI7IR0u5vqZuHTnAJuXRNkl2BuMeoMRsxU4ySAEK/kJ1v ofKCosKYqh9ITOqRuyZNG46WMkzJRl6BqyMlLSxdcDHgILBZTp1pMMNFfTSiwPPKJEOB Rb3XJl+vx7ojx2mRUun+3eMwF1sBAP3bB8KZA7kYzfckcxQmIGof08QGQvq4lthwqOg7 mhZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694166670; x=1694771470; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OAEiANUEtCdz/Bn/Fs+7wF8IUgIcVzNGoXgBHG9khjM=; b=PFPEA/acENXKGSjCt2zgMTOIZBspX4VGZPq6SOw34A8jGIVl9NeOwvzyRtjSk3AHNk Mrs0xJPwRdDQjvsw7UgvBPBngVOUiNUnM9T5zI3TZE33FYL0LHv3/bFPxwX7TQBU0BAD h2NtkN8Nh/P9jRBvl7V2HbyOcTMqiKhPldICi3selaVD0FrdzseSbkX+J+X2lv4iBnKe CvNqxsVBPDP0tz4FKqleLPiBILBu8ck9U7xYuXwiGlS/sBXnsk9zh0Raj48OMsvW3doD K4oVV3OhpOZozXSaAU9m9vFiHotfJkGA7YPvYqURI9gqBKj39aBBb9jX0z11ArhLntJm thIg== X-Gm-Message-State: AOJu0YzXzfxTd6Uev8O70uEnqXfrGSCd5JQjuCUjK8PSQzutWLmqfSGU jQQ96xUaszcd2118vgKb7K2aLraJM7OmYA== X-Google-Smtp-Source: AGHT+IEeonnD/SnDyusNRLqgaWjE+LkwGUQrNkpjq5idYPxcS7s99nsU75Vt8VxYbA8dUEg7nFyErg== X-Received: by 2002:a17:906:225c:b0:9aa:186:959a with SMTP id 28-20020a170906225c00b009aa0186959amr444927ejr.31.1694166669840; Fri, 08 Sep 2023 02:51:09 -0700 (PDT) Received: from Pro.fritz.box (p4fe3aaa8.dip0.t-ipconnect.de. [79.227.170.168]) by smtp.gmail.com with ESMTPSA id pk24-20020a170906d7b800b0098d2d219649sm811036ejb.174.2023.09.08.02.51.08 for <65817@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 02:51:09 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Fri, 08 Sep 2023 09:01:06 +0200") References: Date: Fri, 08 Sep 2023 11:51:07 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I can reproduce this, but only with my .init.el, by (progn (setq display-buffer-alist '((".*" display-buffer-in-child-frame))) (describe-variable 'display-buffer-alist)) Lisp and C backtrace: (lldb) xbacktrace (unsigned char *) data = 0x00000001003d1855 "x-create-frame" (unsigned char *) data = 0x0000000103be8e01 "x-create-frame-with-faces" PVEC_COMPILED (unsigned char *) data = 0x00000001003c5d4d "apply" (unsigned char *) data = 0x0000000103be8f0e "frame-creation-function" (unsigned char *) data = 0x0000000103c01ad2 "make-frame" (unsigned char *) data = 0x0000000103c01b68 "display-buffer-in-child-frame" PVEC_COMPILED (unsigned char *) data = 0x00000001094df890 "ad-Advice-display-buffer" (unsigned char *) data = 0x00000001003c5d4d "apply" (unsigned char *) data = 0x00000001003c8e79 "display-buffer" (unsigned char *) data = 0x0000000103c149d1 "temp-buffer-window-show" (unsigned char *) data = 0x0000000103b8b037 "help--window-setup" (unsigned char *) data = 0x0000000103bbbdfa "describe-variable" (unsigned char *) data = 0x00000001003c5bf4 "progn" (unsigned char *) data = 0x00000001003c5bf4 "progn" (unsigned char *) data = 0x00000001003c5d48 "eval" (unsigned char *) data = 0x0000000103bdc9b2 "elisp--eval-last-sexp" (unsigned char *) data = 0x0000000103bdca01 "eval-last-sexp" (unsigned char *) data = 0x0000000103bdca22 "eval-print-last-sexp" (unsigned char *) data = 0x00000001003c5764 "funcall-interactively" (unsigned char *) data = 0x00000001003c5751 "call-interactively" (unsigned char *) data = 0x00000001003c8b70 "command-execute" thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x00007fff205ce90e libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x00007fff205fd5bd libsystem_pthread.dylib`pthread_kill + 263 frame #2: 0x00007fff20552406 libsystem_c.dylib`abort + 125 frame #3: 0x00007fff205c0ef2 libc++abi.dylib`abort_message + 241 frame #4: 0x00007fff205b25fd libc++abi.dylib`demangling_terminate_handler() + 266 frame #5: 0x00007fff204ab58d libobjc.A.dylib`_objc_terminate() + 96 frame #6: 0x00007fff205c0307 libc++abi.dylib`std::__terminate(void (*)()) + 8 frame #7: 0x00007fff205c2dd1 libc++abi.dylib`__cxa_rethrow + 99 frame #8: 0x00007fff204a9110 libobjc.A.dylib`objc_exception_rethrow + 37 frame #9: 0x00007fff2306d45d AppKit`-[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 1119 frame #10: 0x00007fff26e89271 QuartzCore`CABackingStoreUpdate_ + 219 frame #11: 0x00007fff26ef084d QuartzCore`invocation function for block in CA::Layer::display_() + 53 frame #12: 0x00007fff26e88787 QuartzCore`-[CALayer _display] + 2247 frame #13: 0x00007fff2306cf35 AppKit`-[_NSBackingLayer display] + 475 frame #14: 0x00007fff22fd8022 AppKit`-[_NSViewBackingLayer display] + 555 frame #15: 0x00007fff26e876f3 QuartzCore`CA::Layer::display_if_needed(CA::Transaction*) + 863 frame #16: 0x00007fff26fd2bee QuartzCore`CA::Context::commit_transaction(CA::Transaction*, double, double*) + 666 frame #17: 0x00007fff26e68b6f QuartzCore`CA::Transaction::commit() + 713 frame #18: 0x00007fff22f500a5 AppKit`NSPerformVisuallyAtomicChange + 154 frame #19: 0x00007fff2314c06f AppKit`-[NSWindow addChildWindow:ordered:] + 640 frame #20: 0x000000010033fe08 emacs`-[EmacsWindow setParentChildRelationships](self=0x0000000120b0f1b0, _cmd="setParentChildRelationships") at nsterm.m:9320:7 frame #21: 0x000000010033f2ad emacs`-[EmacsWindow initWithEmacsFrame:fullscreen:screen:](self=0x0000000120b0f1b0, _cmd="initWithEmacsFrame:fullscreen:screen:", f=0x0000000108e99fd0, fullscreen=NO, screen=0x0000000000000000) at nsterm.m:9139:7 frame #22: 0x000000010033ecd0 emacs`-[EmacsWindow initWithEmacsFrame:](self=0x0000000120b0f1b0, _cmd="initWithEmacsFrame:", f=0x0000000108e99fd0) at nsterm.m:9065:10 frame #23: 0x000000010033ace5 emacs`-[EmacsView initFrameFromEmacs:](self=0x000000011c5ffd40, _cmd="initFrameFromEmacs:", f=0x0000000108e99fd0) at nsterm.m:7925:3 frame #24: 0x00000001003579a1 emacs`Fx_create_frame(parms=(struct Lisp_Cons *) $172 = 0x0000000120a5ac70) at nsfns.m:1502:3 frame #25: 0x0000000100242b25 emacs`funcall_subr(subr=0x00000001003fe3f8, numargs=1, args=(struct Lisp_Symbol *) $175 = 0x0000000100939020) at eval.c:3047:15 frame #26: 0x00000001002a4701 emacs`exec_byte_code(fun=(struct Lisp_Vector *) $180 = 0x0000000103010908, args_template=770, nargs=3, args=(struct Lisp_Symbol *) $183 = 0x0000000100939020) at bytecode.c:815:14 frame #27: 0x0000000100246617 emacs`fetch_and_exec_byte_code(fun=(struct Lisp_Vector *) $188 = 0x00000001032cfec0, args_template=257, nargs=1, args=(struct Lisp_Symbol *) $191 = 0x0000000100939020) at eval.c:3094:10 frame #28: 0x0000000100242f71 emacs`funcall_lambda(fun=(struct Lisp_Vector *) $196 = 0x00000001032cfec0, nargs=1, arg_vector=(struct Lisp_Symbol *) $199 = 0x0000000100939020) at eval.c:3166:9 frame #29: 0x0000000100242857 emacs`funcall_general(fun=(struct Lisp_Vector *) $204 = 0x00000001032cfec0, numargs=1, args=(struct Lisp_Symbol *) $207 = 0x0000000100939020) at eval.c:2958:12 frame #30: 0x000000010023dda4 emacs`Ffuncall(nargs=2, args=(struct Lisp_Symbol *) $210 = 0x0000000100939020) at eval.c:3008:21 frame #31: 0x00000001002415e7 emacs`Fapply(nargs=2, args=(struct Lisp_Symbol *) $213 = 0x0000000100939020) at eval.c:2636:14 frame #32: 0x0000000100242d0a emacs`funcall_subr(subr=0x00000001003f75b8, numargs=2, args=(struct Lisp_Symbol *) $216 = 0x0000000100939020) at eval.c:3072:9 frame #33: 0x00000001002a4701 emacs`exec_byte_code(fun=(struct Lisp_Vector *) $221 = 0x00000001030c66a0, args_template=128, nargs=1, args=(struct Lisp_Symbol *) $224 = 0x0000000100939020) at bytecode.c:815:14 frame #34: 0x0000000100246617 emacs`fetch_and_exec_byte_code(fun=(struct Lisp_Vector *) $229 = 0x0000000109e6ffb8, args_template=0, nargs=0, args=(struct Lisp_Symbol *) $232 = 0x0000000100939020) at eval.c:3094:10 frame #35: 0x0000000100243382 emacs`funcall_lambda(fun=(struct Lisp_Vector *) $237 = 0x0000000109e6ffb8, nargs=3, arg_vector=(struct Lisp_Symbol *) $240 = 0x0000000100939020) at eval.c:3255:11 frame #36: 0x0000000100242857 emacs`funcall_general(fun=(struct Lisp_Vector *) $245 = 0x0000000109e6ffb8, numargs=3, args=(struct Lisp_Symbol *) $248 = 0x0000000100939020) at eval.c:2958:12 frame #37: 0x000000010023dda4 emacs`Ffuncall(nargs=4, args=(struct Lisp_Symbol *) $251 = 0x0000000100939020) at eval.c:3008:21 frame #38: 0x0000000100241de2 emacs`Fapply(nargs=3, args=(struct Lisp_Symbol *) $254 = 0x0000000100939020) at eval.c:2679:24 frame #39: 0x0000000100242d0a emacs`funcall_subr(subr=0x00000001003f75b8, numargs=3, args=(struct Lisp_Symbol *) $257 = 0x0000000100939020) at eval.c:3072:9 frame #40: 0x00000001002a4701 emacs`exec_byte_code(fun=(struct Lisp_Vector *) $262 = 0x0000000102963cf8, args_template=128, nargs=2, args=(struct Lisp_Symbol *) $265 = 0x0000000100939020) at bytecode.c:815:14 frame #41: 0x0000000100246617 emacs`fetch_and_exec_byte_code(fun=(struct Lisp_Vector *) $270 = 0x0000000109361260, args_template=769, nargs=1, args=(struct Lisp_Symbol *) $273 = 0x0000000100939020) at eval.c:3094:10 frame #42: 0x0000000100242f71 emacs`funcall_lambda(fun=(struct Lisp_Vector *) $278 = 0x0000000109361260, nargs=1, arg_vector=(struct Lisp_Symbol *) $281 = 0x0000000100939020) at eval.c:3166:9 frame #43: 0x0000000100242857 emacs`funcall_general(fun=(struct Lisp_Vector *) $286 = 0x0000000109361260, numargs=1, args=(struct Lisp_Symbol *) $289 = 0x0000000100939020) at eval.c:2958:12 frame #44: 0x000000010023dda4 emacs`Ffuncall(nargs=2, args=(struct Lisp_Symbol *) $292 = 0x0000000100939020) at eval.c:3008:21 frame #45: 0x000000010023559f emacs`Ffuncall_interactively(nargs=2, args=(struct Lisp_Symbol *) $295 = 0x0000000100939020) at callint.c:250:32 frame #46: 0x0000000100242d0a emacs`funcall_subr(subr=0x00000001003f6e48, numargs=2, args=(struct Lisp_Symbol *) $298 = 0x0000000100939020) at eval.c:3072:9 frame #47: 0x0000000100242805 emacs`funcall_general(fun=(struct Lisp_Subr *) $303 = 0x00000001003f6e48, numargs=2, args=(struct Lisp_Symbol *) $306 = 0x0000000100939020) at eval.c:2954:12 frame #48: 0x000000010023dda4 emacs`Ffuncall(nargs=3, args=(struct Lisp_Symbol *) $309 = 0x0000000100939020) at eval.c:3008:21 frame #49: 0x00000001002415e7 emacs`Fapply(nargs=3, args=(struct Lisp_Symbol *) $312 = 0x0000000100939020) at eval.c:2636:14 frame #50: 0x0000000100235a0b emacs`Fcall_interactively(function=(struct Lisp_Symbol *) $315 = 0x0000000103223338, record_flag=(struct Lisp_Symbol *) $318 = 0x0000000100939020, keys=(struct Lisp_Vector *) $322 = 0x0000000103afd8f8) at callint.c:342:36 frame #51: 0x0000000100242b71 emacs`funcall_subr(subr=0x00000001003f6e10, numargs=3, args=(struct Lisp_Symbol *) $325 = 0x0000000100939020) at eval.c:3051:15 frame #52: 0x00000001002a4701 emacs`exec_byte_code(fun=(struct Lisp_Vector *) $330 = 0x00000001030a9630, args_template=1025, nargs=1, args=(struct Lisp_Symbol *) $333 = 0x0000000100939020) at bytecode.c:815:14 * frame #53: 0x0000000100246617 emacs`fetch_and_exec_byte_code(fun=(struct Lisp_Vector *) $338 = 0x00000001030a9630, args_template=1025, nargs=1, args=(struct Lisp_Symbol *) $341 = 0x0000000100939020) at eval.c:3094:10 frame #54: 0x0000000100242f71 emacs`funcall_lambda(fun=(struct Lisp_Vector *) $346 = 0x00000001030a9630, nargs=1, arg_vector=(struct Lisp_Symbol *) $349 = 0x0000000100939020) at eval.c:3166:9 frame #55: 0x0000000100242857 emacs`funcall_general(fun=(struct Lisp_Vector *) $354 = 0x00000001030a9630, numargs=1, args=(struct Lisp_Symbol *) $357 = 0x0000000100939020) at eval.c:2958:12 frame #56: 0x000000010023dda4 emacs`Ffuncall(nargs=2, args=(struct Lisp_Symbol *) $360 = 0x0000000100939020) at eval.c:3008:21 frame #57: 0x000000010015952f emacs`call1(fn=(struct Lisp_Symbol *) $363 = 0x000000010093d2b0, arg1=(struct Lisp_Symbol *) $366 = 0x0000000103223338) at lisp.h:3245:10 frame #58: 0x0000000100155006 emacs`command_loop_1 at keyboard.c:1529:13 frame #59: 0x000000010023ec9a emacs`internal_condition_case(bfun=(emacs`command_loop_1 at keyboard.c:1302), handlers=(struct Lisp_Symbol *) $369 = 0x00000001009390b0, hfun=(emacs`cmd_error at keyboard.c:960)) at eval.c:1486:25 frame #60: 0x0000000100154563 emacs`command_loop_2(handlers=(struct Lisp_Symbol *) $372 = 0x00000001009390b0) at keyboard.c:1157:11 frame #61: 0x000000010023e446 emacs`internal_catch(tag=(struct Lisp_Symbol *) $375 = 0x0000000100948170, func=(emacs`command_loop_2 at keyboard.c:1153), arg=(struct Lisp_Symbol *) $378 = 0x00000001009390b0) at eval.c:1209:25 frame #62: 0x00000001001538bd emacs`command_loop at keyboard.c:1135:2 frame #63: 0x00000001001536c5 emacs`recursive_edit_1 at keyboard.c:744:9 frame #64: 0x0000000100153c37 emacs`Frecursive_edit at keyboard.c:827:3 frame #65: 0x0000000100150a55 emacs`main(argc=1, argv=0x00007ffeefbff588) at emacs.c:2625:3 From unknown Sun Jun 22 00:13:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 18:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Cc: 65817@debbugs.gnu.org Received: via spool by 65817-submit@debbugs.gnu.org id=B65817.16941992488391 (code B ref 65817); Fri, 08 Sep 2023 18:55:01 +0000 Received: (at 65817) by debbugs.gnu.org; 8 Sep 2023 18:54:08 +0000 Received: from localhost ([127.0.0.1]:45607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qegcJ-0002BG-HJ for submit@debbugs.gnu.org; Fri, 08 Sep 2023 14:54:08 -0400 Received: from dane.soverin.net ([2a10:de80:1:4091:b9e9:2218:0:1]:59451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qegcF-0002Ah-BA for 65817@debbugs.gnu.org; Fri, 08 Sep 2023 14:54:06 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4Rj4yS6nGnz10J2; Fri, 8 Sep 2023 18:53:52 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4Rj4yR6gBLzKx; Fri, 8 Sep 2023 18:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1694199232; bh=A50dIKcOcGnoPtZB8ALNxjgAaIQa0+aj7AxC3uIOydQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h81D1I7TRFwy/RgG7IuZD/MG6d4NQxxbSUFgcqFjoR4mDBNqCm0HAfXDbiMxCFZWk QjW96goEFj62IL+cBHb9nYo7suOUerxSoVS1MZe/yFG9F6n6tXOoYzybz5t5TD4uKQ cU0bsAgpFPNp7XH0mUb7ohG/4UE0kWyOXdhHPE+MYt404Svk6ZzBUlknT8sawrwVcY P1oq54RgzihegZCIX+xDB9KpWYFsa3EDFpXWT8FohLiuwT7injWQ+NLuZaLMRBe1/P dTeB3MrKqoF26QPFBdC330ckJUMxfQYQS9cfI37rs3kWuD2BxtYGYZO3coF7bZ4SbH ivAcu/gpuBLQA== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1qegc3-001OCJ-03; Fri, 08 Sep 2023 19:53:51 +0100 Date: Fri, 8 Sep 2023 19:53:50 +0100 X-Soverin-Authenticated: true From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , 65817@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="m9KWJ/KQ+eywibp3" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --m9KWJ/KQ+eywibp3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Sep 08, 2023 at 09:01:06AM +0200, Gerd Möllmann wrote: > System Description: macOS 11.7.9 > > This is a 10 year old Mac. I can't reproduce it at will. Below is what > was printed to the terminal, then Emacs aborted. This is odd. The system is trying to draw the frame to the screen *long* before we've finished creating it. I don't know why this would be happening, it's possible that we've hit an edge case where we accidentally mark the view for display early, but I don't know how we would be doing that. > 5 emacs 0x000000010033d481 -[EmacsView lockFocus] + 49 > 6 emacs 0x000000010032ee27 ns_focus + 87 > 7 emacs 0x000000010033df80 ns_clear_frame_area + 400 > 8 emacs 0x000000010033dda1 -[EmacsView drawRect:] + 321 > 21 AppKit 0x00007fff2314c06f -[NSWindow addChildWindow:ordered:] + 640 > 22 emacs 0x000000010033fe08 -[EmacsWindow setParentChildRelationships] + 696 > 23 emacs 0x000000010033f2ad -[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1485 > 24 emacs 0x000000010033ecd0 -[EmacsWindow initWithEmacsFrame:] + 48 > 25 emacs 0x000000010033ace5 -[EmacsView initFrameFromEmacs:] + 1045 > 26 emacs 0x00000001003579a1 Fx_create_frame + 7937 At the point lockFocus is called here, we haven't yet set up the layer we want to draw into. I can't find any indication that addChildWindow may trigger a display, but this is Apple's documentation I'm talking about... I've attached a patch that reorders some of the initialisation, hopefully avoiding this problem. I've also attached another patch that you may need to apply first to make the second one apply cleanly. -- Alan Third --m9KWJ/KQ+eywibp3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v2-0001-Simplify-the-EmacsLayer-double-buffering-code-bug.patch" >From 72b13fa67981c40f0e3c63092aa796525fe61344 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Sun, 23 Jul 2023 12:00:30 +0100 Subject: [PATCH v2] Simplify the EmacsLayer double buffering code (bug#63187) --- src/nsfns.m | 30 +++++++++++++++++++++++++++++- src/nsterm.h | 13 ++++++++++++- src/nsterm.m | 50 ++++++++++++++++++++++++++------------------------ 3 files changed, 67 insertions(+), 26 deletions(-) diff --git a/src/nsfns.m b/src/nsfns.m index a79892f73b6..082e06698b2 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -799,6 +799,26 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side. } } +static void +ns_set_inhibit_double_buffering (struct frame *f, + Lisp_Object new_value, + Lisp_Object old_value) +{ +#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 + if (!EQ (new_value, old_value)) + { + FRAME_DOUBLE_BUFFERED (f) = NILP (new_value); + + /* If the view or layer haven't been created yet this will be a + noop. */ + [(EmacsLayer *)[FRAME_NS_VIEW (f) layer] + setDoubleBuffered:FRAME_DOUBLE_BUFFERED (f)]; + + SET_FRAME_GARBAGED (f); + } +#endif +} + static void ns_set_internal_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldval) { @@ -1073,7 +1093,7 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side. gui_set_alpha, 0, /* x_set_sticky */ ns_set_tool_bar_position, - 0, /* x_set_inhibit_double_buffering */ + ns_set_inhibit_double_buffering, ns_set_undecorated, ns_set_parent_frame, 0, /* x_set_skip_taskbar */ @@ -1461,6 +1481,14 @@ Turn the input menu (an NSMenu) into a lisp list for tracking on lisp side. gui_default_parameter (f, parms, Qtitle, Qnil, "title", "Title", RES_TYPE_STRING); +#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 + tem = gui_display_get_arg (dpyinfo, parms, Qinhibit_double_buffering, NULL, NULL, + RES_TYPE_BOOLEAN); + FRAME_DOUBLE_BUFFERED (f) = NILP (tem) || EQ (tem, Qunbound); + store_frame_param (f, Qinhibit_double_buffering, + FRAME_DOUBLE_BUFFERED (f) ? Qnil : Qt); +#endif + parms = get_geometry_from_preferences (dpyinfo, parms); window_prompting = gui_figure_window_size (f, parms, false, true); diff --git a/src/nsterm.h b/src/nsterm.h index b6e5a813a6d..8d6c58290cc 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -746,9 +746,11 @@ #define NSTRACE_UNSILENCE() CGColorSpaceRef colorSpace; IOSurfaceRef currentSurface; CGContextRef context; + bool doubleBuffered; } -- (id) initWithColorSpace: (CGColorSpaceRef)cs; +- (id) initWithColorSpace: (CGColorSpaceRef)cs doubleBuffered: (bool)db; - (void) setColorSpace: (CGColorSpaceRef)cs; +- (void) setDoubleBuffered: (bool)db; - (CGContextRef) getContext; @end #endif @@ -996,6 +998,11 @@ #define KEY_NS_SHOW_PREFS ((1<<28)|(0<<16)|14) /* Non-zero if we are doing an animation, e.g. toggling the tool bar. */ int in_animation; +#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 + /* Is the frame double buffered? */ + bool double_buffered; +#endif + #ifdef NS_IMPL_GNUSTEP /* Zero if this is the first time a toolbar has been updated on this frame. */ @@ -1030,6 +1037,10 @@ #define FRAME_POINTER_TYPE(f) ((f)->output_data.ns->current_pointer) #define FRAME_FONT(f) ((f)->output_data.ns->font) +#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 +#define FRAME_DOUBLE_BUFFERED(f) ((f)->output_data.ns->double_buffered) +#endif + #ifdef __OBJC__ #define XNS_SCROLL_BAR(vec) ((id) xmint_pointer (vec)) #else diff --git a/src/nsterm.m b/src/nsterm.m index 78089906752..28502ad1a2a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -2704,11 +2704,10 @@ Hide the window (X11 semantics) { NSRect srcRect = NSMakeRect (x, from_y, width, height); NSPoint dest = NSMakePoint (x, to_y); - NSRect destRect = NSMakeRect (x, from_y, width, height); EmacsView *view = FRAME_NS_VIEW (f); [view copyRect:srcRect to:dest]; -#ifdef NS_IMPL_COCOA +#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED < 101400 [view setNeedsDisplayInRect:destRect]; #endif } @@ -8607,7 +8606,8 @@ - (instancetype)toggleToolbar: (id)sender - (CALayer *)makeBackingLayer { EmacsLayer *l = [[EmacsLayer alloc] - initWithColorSpace:[[[self window] colorSpace] CGColorSpace]]; + initWithColorSpace:[[[self window] colorSpace] CGColorSpace] + doubleBuffered:FRAME_DOUBLE_BUFFERED (emacsframe)]; [l setDelegate:(id)self]; [l setContentsScale:[[self window] backingScaleFactor]]; @@ -8664,8 +8664,10 @@ - (void)copyRect:(NSRect)srcRect to:(NSPoint)dest NSHeight (srcRect)); #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 - double scale = [[self window] backingScaleFactor]; CGContextRef context = [(EmacsLayer *)[self layer] getContext]; + CGContextFlush (context); + + double scale = [[self window] backingScaleFactor]; int bpp = CGBitmapContextGetBitsPerPixel (context) / 8; void *pixels = CGBitmapContextGetData (context); int rowSize = CGBitmapContextGetBytesPerRow (context); @@ -10435,22 +10437,20 @@ @implementation EmacsLayer cache. If no free surfaces are found in the cache then a new one is created. */ -#define CACHE_MAX_SIZE 2 - - (id) initWithColorSpace: (CGColorSpaceRef)cs + doubleBuffered: (bool)db { - NSTRACE ("[EmacsLayer initWithColorSpace:]"); + NSTRACE ("[EmacsLayer initWithColorSpace:doubleBuffered:]"); self = [super init]; if (self) { - cache = [[NSMutableArray arrayWithCapacity:CACHE_MAX_SIZE] retain]; [self setColorSpace:cs]; + [self setDoubleBuffered:db]; + cache = [[NSMutableArray arrayWithCapacity:(doubleBuffered ? 2 : 1)] retain]; } else - { - return nil; - } + return nil; return self; } @@ -10467,6 +10467,15 @@ - (void) setColorSpace: (CGColorSpaceRef)cs } +- (void) setDoubleBuffered: (bool)db +{ + if (doubleBuffered != db) + [self releaseSurfaces]; + + doubleBuffered = db; +} + + - (void) dealloc { [self releaseSurfaces]; @@ -10538,7 +10547,7 @@ - (CGContextRef) getContext } } - if (!surface && [cache count] >= CACHE_MAX_SIZE) + if (!surface && [cache count] >= (doubleBuffered ? 2 : 1)) { /* Just grab the first one off the cache. This may result in tearing effects. The alternative is to wait for one @@ -10591,7 +10600,7 @@ - (CGContextRef) getContext return nil; } - CGContextTranslateCTM(context, 0, IOSurfaceGetHeight (currentSurface)); + CGContextTranslateCTM(context, 0, IOSurfaceGetHeight (surface)); CGContextScaleCTM(context, scale, -scale); } @@ -10608,6 +10617,7 @@ - (void) releaseContext if (!context) return; + CGContextFlush (context); CGContextRelease (context); context = NULL; @@ -10621,26 +10631,18 @@ - (void) display { NSTRACE_WHEN (NSTRACE_GROUP_FOCUS, "[EmacsLayer display]"); - if (context) + if (context && context != [[NSGraphicsContext currentContext] CGContext]) { [self releaseContext]; -#if CACHE_MAX_SIZE == 1 - /* This forces the layer to see the surface as updated. */ + /* This forces the layer to see the surface as updated even if + we replace it with itself. */ [self setContents:nil]; -#endif - [self setContents:(id)currentSurface]; /* Put currentSurface back on the end of the cache. */ [cache addObject:(id)currentSurface]; currentSurface = NULL; - - /* Schedule a run of getContext so that if Emacs is idle it will - perform the buffer copy, etc. */ - [self performSelectorOnMainThread:@selector (getContext) - withObject:nil - waitUntilDone:NO]; } } -- 2.40.1 --m9KWJ/KQ+eywibp3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-crash-on-child-frame-creation-bug-65817.patch" >From 893f079f51c3bc81d8719c48fe539f72b1025fb8 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 8 Sep 2023 19:33:06 +0100 Subject: [PATCH] Fix crash on child frame creation (bug#65817) * src/nsterm.m ([EmacsView initFrameFromEmacs:]): Reorder the way the frame and layers are created. ([EmacsView makeBackingLayer]): Change to the newly renamed method below. ([EmacsLayer initWithColorSpace:doubleBuffered:]): ([EmacsLayer initWithDoubleBuffered:]): Rename the method and remove the colorspace argument as it's no longer able to be set on initial creation. * src/nsterm.h: Use new method prototype. --- src/nsterm.h | 2 +- src/nsterm.m | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/nsterm.h b/src/nsterm.h index 8d6c58290cc..cb162039ad8 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -748,7 +748,7 @@ #define NSTRACE_UNSILENCE() CGContextRef context; bool doubleBuffered; } -- (id) initWithColorSpace: (CGColorSpaceRef)cs doubleBuffered: (bool)db; +- (id) initWithDoubleBuffered: (bool)db; - (void) setColorSpace: (CGColorSpaceRef)cs; - (void) setDoubleBuffered: (bool)db; - (CGContextRef) getContext; diff --git a/src/nsterm.m b/src/nsterm.m index 28502ad1a2a..a3603171bb0 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7921,8 +7921,6 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f maximizing_resize = NO; #endif - [[EmacsWindow alloc] initWithEmacsFrame:f]; - #if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MIN_REQUIRED >= 101400 /* These settings mean AppKit will retain the contents of the frame on resize. Unfortunately it also means the frame will not be @@ -7933,9 +7931,14 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f NSViewLayerContentsRedrawOnSetNeedsDisplay]; [self setLayerContentsPlacement:NSViewLayerContentsPlacementTopLeft]; - /* initWithEmacsFrame can't create the toolbar before the layer is - set, so have another go at creating the toolbar here. */ - [(EmacsWindow*)[self window] createToolbar:f]; + [[EmacsWindow alloc] initWithEmacsFrame:f]; + + /* Now the NSWindow has been created, we can finish up configuring + the layer. */ + [(EmacsLayer *)[self layer] setColorSpace:[[[self window] colorSpace] CGColorSpace]]; + [(EmacsLayer *)[self layer] setContentsScale:[[self window] backingScaleFactor]]; +#else + [[EmacsWindow alloc] initWithEmacsFrame:f]; #endif if (ns_drag_types) @@ -8606,10 +8609,9 @@ - (instancetype)toggleToolbar: (id)sender - (CALayer *)makeBackingLayer { EmacsLayer *l = [[EmacsLayer alloc] - initWithColorSpace:[[[self window] colorSpace] CGColorSpace] - doubleBuffered:FRAME_DOUBLE_BUFFERED (emacsframe)]; + initWithDoubleBuffered:FRAME_DOUBLE_BUFFERED (emacsframe)]; + [l setDelegate:(id)self]; - [l setContentsScale:[[self window] backingScaleFactor]]; return l; } @@ -10437,15 +10439,14 @@ @implementation EmacsLayer cache. If no free surfaces are found in the cache then a new one is created. */ -- (id) initWithColorSpace: (CGColorSpaceRef)cs - doubleBuffered: (bool)db +- (id) initWithDoubleBuffered: (bool)db { - NSTRACE ("[EmacsLayer initWithColorSpace:doubleBuffered:]"); + NSTRACE ("[EmacsLayer initWithDoubleBuffered:]"); self = [super init]; if (self) { - [self setColorSpace:cs]; + [self setColorSpace:nil]; [self setDoubleBuffered:db]; cache = [[NSMutableArray arrayWithCapacity:(doubleBuffered ? 2 : 1)] retain]; } -- 2.40.1 --m9KWJ/KQ+eywibp3-- From unknown Sun Jun 22 00:13:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Sep 2023 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: 65817@debbugs.gnu.org Received: via spool by 65817-submit@debbugs.gnu.org id=B65817.169420188012633 (code B ref 65817); Fri, 08 Sep 2023 19:38:01 +0000 Received: (at 65817) by debbugs.gnu.org; 8 Sep 2023 19:38:00 +0000 Received: from localhost ([127.0.0.1]:45661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qehIm-0003Hh-Fn for submit@debbugs.gnu.org; Fri, 08 Sep 2023 15:38:00 -0400 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:54547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qehIk-0003HV-Ox for 65817@debbugs.gnu.org; Fri, 08 Sep 2023 15:37:59 -0400 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-52bcd4db4cbso3147555a12.1 for <65817@debbugs.gnu.org>; Fri, 08 Sep 2023 12:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694201870; x=1694806670; 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=O5jKCieOG8y2+pkSnb4ipvWEIRqo14KctWlFE7Jkszk=; b=VB0bG9roTC4vPU2oe1FoK4B9EdyB2uXRoRtYcy8Os421kaJpzZwN8i3smxBQ6NQllS HgMW0GHY6a8n9ciWLdN7zSUcDvebWV0LDA8q3iiFH0fGLdByOopjfC28j0N/8FB2Wkgh FNK/RfAj5vjy69jMWWTG/oh1QjEQ+XzwmID+Vk25H22R/uZxAq7v/wvTE4p2NkRLCzmX 9yV+UNKWx9DRaf53r1xh0UJ3C35xHLncifeN7aqI1z6iVf7LuEma9rxXlg1pnWHUAg/6 NmDZMC0fR3NhFmv48JQ5s7CneXWWznP1B3VZT5v359b6FDNjHskaEtKjY+G15/RWsN3W 2tzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694201870; x=1694806670; 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=O5jKCieOG8y2+pkSnb4ipvWEIRqo14KctWlFE7Jkszk=; b=plEGOlPDnTRUH1gcvoZnL7Dbx0djPneSwb8Z7iYEEs+VGXXi1QfCkIfov/BdChPOFn iWz2AO6BO8UfeZfj3gSpRalfVGhle123i6QQVboSDalV8DosGcP30teTCFDng//zsqdd mCwe5cjRtqpZBG3/Hhjogm6dah9qbVJyB5OdyEIVYTZEPnK6qMh7wbk+qreRJqrl4cqR Um0y1Mq8Q7gxL6Xob3q6l5+cFcQcoyDuEUVHaMtFpmHUxqVC+PkTEwtaBLhWvcfaxJrM jIvlqtc1QtsH1zkM8UczxtAuYv6VcGbstIZk/g3+8Ls03p7ZovwCPxjgRXD7JLfkTBhI qz4g== X-Gm-Message-State: AOJu0Ywdi+XX+Is4WN6QDvR2YS66pZ1/FO7FoyERdlWlMyVdTeiTbEUr AvXomwQciLWa2YWdV914R/Dl+QlB1cg= X-Google-Smtp-Source: AGHT+IHt9KQ9NCgRMZOYfEi63KRUHz4aJeOK4CWpmKbjPD2vd7tAbQopw/HSV0dOZ1Ey7nhhp9T4+Q== X-Received: by 2002:aa7:d9c8:0:b0:525:6666:3551 with SMTP id v8-20020aa7d9c8000000b0052566663551mr2552095eds.27.1694201869817; Fri, 08 Sep 2023 12:37:49 -0700 (PDT) Received: from Pro.fritz.box (p4fe3a5eb.dip0.t-ipconnect.de. [79.227.165.235]) by smtp.gmail.com with ESMTPSA id z12-20020aa7d40c000000b0052241b8fd0bsm1381124edq.29.2023.09.08.12.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 12:37:49 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: (Alan Third's message of "Fri, 8 Sep 2023 19:53:50 +0100") References: Date: Fri, 08 Sep 2023 21:37:47 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > I've attached a patch that reorders some of the initialisation, > hopefully avoiding this problem. > > I've also attached another patch that you may need to apply first to > make the second one apply cleanly. (I had to apply the v2 patch before the other, for them to apply.) And that worked like a charm. Thanks, Alan! From unknown Sun Jun 22 00:13:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2023 10:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65817 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Cc: 65817@debbugs.gnu.org Received: via spool by 65817-submit@debbugs.gnu.org id=B65817.169425691214746 (code B ref 65817); Sat, 09 Sep 2023 10:56:02 +0000 Received: (at 65817) by debbugs.gnu.org; 9 Sep 2023 10:55:12 +0000 Received: from localhost ([127.0.0.1]:46258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qevcO-0003pm-51 for submit@debbugs.gnu.org; Sat, 09 Sep 2023 06:55:12 -0400 Received: from dane.soverin.net ([2a10:de80:1:4092:b9e9:229d:0:1]:49089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qevcL-0003pH-RS for 65817@debbugs.gnu.org; Sat, 09 Sep 2023 06:55:11 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4RjVHR0LfyzydZ; Sat, 9 Sep 2023 10:54:59 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4RjVHQ119QzCR; Sat, 9 Sep 2023 10:54:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1694256898; bh=2bUc0mDeQ8Usq0kk8rU4eGE2qA7hjkRC8JICUGyDUjA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uhh6PDSVdcbdLGWCzY7JyQI2OQmY1IHeJ+Ree2OpRbPNoay+ZdKVschIEakcRY25F FkG8ujA2XQgb8Z07hccHtCsq9UlW3s/ylevad+Sw9mE5ekZOoLvOvF9/0Qd2m332z7 nhd507OzSUFtI9yX4bBcC6xoSxd/ASv5J8dNUyKHRovHE5bwJveQNFsvCCYjHIbYOS o2bR2u54hz3ccV6O0dUCo54Abh+blLrnw5VneXwWkqcEx7KNHOEB882dLpAkUq4DRP l7MIes+YYmpw4nDIugwIFsAJ8bZoW0MOMAvdYX3xpGmJTOAheVYYwNobnqBkt/z5UH eTekvfrop4+Pw== Date: Sat, 9 Sep 2023 11:54:55 +0100 X-Soverin-Authenticated: true From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , 65817@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Fri, Sep 08, 2023 at 09:37:47PM +0200, Gerd Möllmann wrote: > Alan Third writes: > > > I've attached a patch that reorders some of the initialisation, > > hopefully avoiding this problem. > > > > I've also attached another patch that you may need to apply first to > > make the second one apply cleanly. > > (I had to apply the v2 patch before the other, for them to apply.) > > And that worked like a charm. > Thanks, Alan! Sounds good! Thanks! I'm going to wait another two or three days for the v2 patch to be tested properly, then I'll push both of them to master. -- Alan Third From unknown Sun Jun 22 00:13:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Subject: bug#65817: closed (Re: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur) Message-ID: References: X-Gnu-PR-Message: they-closed 65817 X-Gnu-PR-Package: emacs Reply-To: 65817@debbugs.gnu.org Date: Mon, 11 Sep 2023 16:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1694449502-4248-1" This is a multi-part message in MIME format... ------------=_1694449502-4248-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65817@debbugs.gnu.org. --=20 65817: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65817 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1694449502-4248-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65817-done) by debbugs.gnu.org; 11 Sep 2023 16:24:23 +0000 Received: from localhost ([127.0.0.1]:54628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfji3-00015e-7s for submit@debbugs.gnu.org; Mon, 11 Sep 2023 12:24:23 -0400 Received: from dane.soverin.net ([185.233.34.31]:38765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfji1-00015R-5r for 65817-done@debbugs.gnu.org; Mon, 11 Sep 2023 12:24:21 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4RksVM3Q80z2xkZ; Mon, 11 Sep 2023 16:24:11 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4RksVM2J2TzLb; Mon, 11 Sep 2023 16:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1694449451; bh=56k7cnCTkoNEaWueWzj/yGC6IiNpzc7dsTIsIiIRFWQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=are9LecbFU+0qtC5dDjEtFbbId/ldvK500Dg71OQZiIdpEmrnKwvfj7Zc/Wuj2FbW 5rtAfPPYsLmBVvg8GpNM7gqKdINbrySjxH2LrmW9Xfz/7hr4/DVlScthLq/ZXiiMG1 06RbOkGqtAcF0GcN55Bvkpb6pnMUWdk/3hn8GswTnF7S6Ix68z0v1Oh/ugQUlay24r QmGhzvuh2fdDPpEePwJ0QuNgdU0+/njsdDLOvLqJmBnZnXJIyjL3dfo4oNJ2awvLEJ upc0q60o39JU62SOquTexfPa0kf6xLKl4agNzwZ3UztPNtiGvnue8+HQo2yvzLxGT6 Z+T/kyjcsAzJg== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.96) (envelope-from ) id 1qfjhq-001Unm-2q; Mon, 11 Sep 2023 17:24:10 +0100 Date: Mon, 11 Sep 2023 17:24:10 +0100 X-Soverin-Authenticated: true From: Alan Third To: Gerd =?iso-8859-1?Q?M=F6llmann?= Subject: Re: bug#65817: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Message-ID: Mail-Followup-To: Alan Third , Gerd =?iso-8859-1?Q?M=F6llmann?= , 65817-done@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 65817-done Cc: 65817-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, Sep 08, 2023 at 09:37:47PM +0200, Gerd Möllmann wrote: > Alan Third writes: > > > I've attached a patch that reorders some of the initialisation, > > hopefully avoiding this problem. > > > > I've also attached another patch that you may need to apply first to > > make the second one apply cleanly. > > (I had to apply the v2 patch before the other, for them to apply.) > > And that worked like a charm. > Thanks, Alan! Thanks, pushed to master. -- Alan Third ------------=_1694449502-4248-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Sep 2023 07:01:29 +0000 Received: from localhost ([127.0.0.1]:42047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVUf-0006Qu-5M for submit@debbugs.gnu.org; Fri, 08 Sep 2023 03:01:29 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeVUY-0006Qd-Lf for submit@debbugs.gnu.org; Fri, 08 Sep 2023 03:01:27 -0400 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 1qeVUR-0005kW-1e for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:01:15 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeVUO-0007bv-Kb for bug-gnu-emacs@gnu.org; Fri, 08 Sep 2023 03:01:14 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-99357737980so210997366b.2 for ; Fri, 08 Sep 2023 00:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694156469; x=1694761269; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=bBE/ZYMkGgxpd/Ljc/IZhPLVpqhWvCuuNbQLoI36hNU=; b=reTU5/Uuu1e1cCUcy11ABQp9tBPvFIlUZZm4DAR7hfxLkd8v2Hb4IEQzBi4VF4t/LE 5OnGPbzPkUhSjfEEOEFPfX8UgakLHaFXiSh97o5yEzqTqwVLbjTKEve8bDHEtLFj8pny v2WEyo7PWYfzpmrSv9N2780hojabvMvimncbl9LplM4kamprsdfAPmp9bYfHzscyPHqn JFg2EKl70SOYNP+e8BPkvGK7g2wwfUdBbjyTPqVNG0AOrOZEmX+2T7eA7HEwr8VEjvMb ccE+bVxftzwiH/i8I/awfLIDYP4KRe79+jIDtZZy7ySHzaeiGdnqoet6+yAaRyG99HDU twBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694156469; x=1694761269; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bBE/ZYMkGgxpd/Ljc/IZhPLVpqhWvCuuNbQLoI36hNU=; b=UgF1cJpxFa5S/HdJvRKYM8F3t9CcSte+/v8WatIeuiz9izIHNbPhyGyf1CDoguS7/V AK/PGjSPVzbvmGN8PuKPWbbLpUdRdtqqCoTYosyDCh49JhsUYvVC4LUQAFAdY1qsfm5m IclOSSjTMbcrqWMq5ZmTNzTrT60sLPlwdkSgF5EqExN9quTdvZ1MtzC/ahzdH/JDi2Rc 7HnBf8v6ujhlBqfTBuTe+K305RChrCPVY8e2r976AyhQ4GS9CPrPNaWgdT1aVAKfD1Sw rcp7yOTJObQ0B0YyBiKPTSH6i8bD+yBki1LpQ2RyQ3wXWAmNJrUzbGryp6f3ErIcHgR/ xctg== X-Gm-Message-State: AOJu0YxxMpbvWCQn0d3ISDP6fqd6CnObdTpGKA7dP3a9SlOUlLO+UPDR jQgs5ufbtCi8GQpPB/Jonxuce22tmMfmag== X-Google-Smtp-Source: AGHT+IGaBpoKNtBtCXATg1tvmR/4NLQofQubYtzLNfS+5bdTM+NI0V/2g1ZOOP+wkmteEsMBxXhUcA== X-Received: by 2002:a17:906:5198:b0:9a5:b1cd:bdf2 with SMTP id y24-20020a170906519800b009a5b1cdbdf2mr1138790ejk.51.1694156469169; Fri, 08 Sep 2023 00:01:09 -0700 (PDT) Received: from Pro.fritz.box (p4fe3aaa8.dip0.t-ipconnect.de. [79.227.170.168]) by smtp.gmail.com with ESMTPSA id y5-20020a1709064b0500b009a0955a7ad0sm595507eju.128.2023.09.08.00.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 00:01:08 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: bug-gnu-emacs@gnu.org Subject: 30.0.50; Abort with NSInvalidArgumentException on macOS Big Sur Date: Fri, 08 Sep 2023 09:01:06 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x632.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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.70 Version 11.7.9 (Build 20G1426)) of 2023-09-08 built on Pro.fritz.box Repository revision: dd818ed821f7a9a35253e39374ee5f0aaae669bb Repository branch: master Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.7.9 This is a 10 year old Mac. I can't reproduce it at will. Below is what was printed to the terminal, then Emacs aborted. emacs[29331:353519] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_NSViewBackingLayer getContext]: unrecognized selector sent to instance 0x11cc693a0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff2076fbdb __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff204a8d92 objc_exception_throw + 48 2 CoreFoundation 0x00007fff207f270d -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x00007fff206d7c2b ___forwarding___ + 1448 4 CoreFoundation 0x00007fff206d75f8 _CF_forwarding_prep_0 + 120 5 emacs 0x000000010033d481 -[EmacsView lockFocus] + 49 6 emacs 0x000000010032ee27 ns_focus + 87 7 emacs 0x000000010033df80 ns_clear_frame_area + 400 8 emacs 0x000000010033dda1 -[EmacsView drawRect:] + 321 9 AppKit 0x00007fff2306ddab _NSViewDrawRect + 139 10 AppKit 0x00007fff2379fcdf -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 2115 11 AppKit 0x00007fff2306d3c5 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 967 12 QuartzCore 0x00007fff26e89271 CABackingStoreUpdate_ + 219 13 QuartzCore 0x00007fff26ef084d ___ZN2CA5Layer8display_Ev_block_invoke + 53 14 QuartzCore 0x00007fff26e88787 -[CALayer _display] + 2247 15 AppKit 0x00007fff2306cf35 -[_NSBackingLayer display] + 475 16 AppKit 0x00007fff22fd8022 -[_NSViewBackingLayer display] + 555 17 QuartzCore 0x00007fff26e876f3 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 863 18 QuartzCore 0x00007fff26fd2bee _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 666 19 QuartzCore 0x00007fff26e68b6f _ZN2CA11Transaction6commitEv + 713 20 AppKit 0x00007fff22f500a5 NSPerformVisuallyAtomicChange + 154 21 AppKit 0x00007fff2314c06f -[NSWindow addChildWindow:ordered:] + 640 22 emacs 0x000000010033fe08 -[EmacsWindow setParentChildRelationships] + 696 23 emacs 0x000000010033f2ad -[EmacsWindow initWithEmacsFrame:fullscreen:screen:] + 1485 24 emacs 0x000000010033ecd0 -[EmacsWindow initWithEmacsFrame:] + 48 25 emacs 0x000000010033ace5 -[EmacsView initFrameFromEmacs:] + 1045 26 emacs 0x00000001003579a1 Fx_create_frame + 7937 ------------=_1694449502-4248-1--