From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roger Willcocks via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53481: 27.2; macOS - recursive _layoutViewTree warning at startup Date: Sun, 23 Jan 2022 14:52:41 +0000 Message-ID: <601F013A-D783-4024-95D1-9D8347FF9B69@filmlight.ltd.uk> Reply-To: Roger Willcocks Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) 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="2872"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Roger Willcocks To: 53481@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 17:55:34 2022 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 1nBg9N-0000TO-Tf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 17:55:34 +0100 Original-Received: from localhost ([::1]:34760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBg9M-0006nv-AD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 11:55:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBg8w-0006mb-1s for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:55:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBg8u-0002kX-3H for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:55:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBg8u-0005YQ-1e for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 11:55:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roger Willcocks Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jan 2022 16:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53481 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.164295689421290 (code B ref -1); Sun, 23 Jan 2022 16:55:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jan 2022 16:54:54 +0000 Original-Received: from localhost ([127.0.0.1]:41081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBg8j-0005XD-VJ for submit@debbugs.gnu.org; Sun, 23 Jan 2022 11:54:54 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBeEi-0000Hh-Cj for submit@debbugs.gnu.org; Sun, 23 Jan 2022 09:52:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBeEh-0006kM-PH for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 09:52:56 -0500 Original-Received: from c.mx.filmlight.ltd.uk ([54.76.112.217]:43014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBeEf-0001L4-FZ for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 09:52:55 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by omni.filmlight.ltd.uk (Postfix) with ESMTP id 555A240000C3 for ; Sun, 23 Jan 2022 14:52:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 omni.filmlight.ltd.uk 555A240000C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=filmlight.ltd.uk; s=default; t=1642949562; bh=6InP1YIBfyY3dlHKcAINsOOCUWR1pW1qdmd97Dp+NnQ=; h=From:Subject:Date:Cc:To:From; b=M7pYU7GB/gltcvmMzmsUXAl4g0hwIifEM/xSzM2PrqcgsZsDymLc6axybhZG97vSM 8hT136lCTBa40XHM0TIe2wWh6jVSd7Gg+sPJeGHjlLwO0UoPKytJPL/x5VkJw6NJDq BLktJGqTEs9iNW7WSTwka7txI5TzOf6SPTXZAiBM= Original-Received: from smtpclient.apple (cpc122860-stev8-2-0-cust234.9-2.cable.virginm.net [81.111.212.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: roger) by omni.filmlight.ltd.uk (Postfix) with ESMTPSA id 1A90386A289; Sun, 23 Jan 2022 14:52:42 +0000 (GMT) X-Mailer: Apple Mail (2.3693.20.0.1.32) Received-SPF: pass client-ip=54.76.112.217; envelope-from=roger@filmlight.ltd.uk; helo=c.mx.filmlight.ltd.uk 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 23 Jan 2022 11:54:51 -0500 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" Xref: news.gmane.io gmane.emacs.bugs:224946 Archived-At: Hi folks, Starting emacs (https://emacsformacosx.com/) from a macOS terminal = prompt causes a warning which suggests something may break in the future: <--> % emacs -Q 2022-01-23 14:30:34.131 Emacs-x86_64-10_14[32403:2930258] It's not legal to call -layoutSubtreeIfNeeded on a view which is already being laid out. If you are implementing the view's -layout method, you can call -[super layout] instead. Break on void _NSDetectedLayoutRecursion(void) to debug. This will be logged only once. This may break in the future. <--> There are no apparent ill effects apart from the irritating terminal noise. The same warning appears if the program is launched using <--> % open /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_14 <=E2=80=94> which creates both an editor gui window and a separate terminal window containing the warning text. The full stacktrace is: <--> (lldb) bt * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D = breakpoint 1.1 * frame #0: 0x00007ff80534b2c5 AppKit`_NSDetectedLayoutRecursion frame #1: 0x00007ff804b35684 = AppKit`-[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148 frame #2: 0x00007ff804b31f69 AppKit`-[NSWindow = _oldPlaceWindow:fromServer:] + 710 frame #3: 0x00007ff804b3093f AppKit`-[NSWindow = _setFrameCommon:display:fromServer:] + 2696 frame #4: 0x00000001001daaee Emacs-x86_64-10_14`-[EmacsWindow = setFrame:display:animate:] + 62 frame #5: 0x00007ff804bf87db AppKit`-[NSThemeFrame = _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:] = + 1896 frame #6: 0x00007ff804bf7f39 AppKit`-[NSThemeFrame = _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate= :] + 612 frame #7: 0x00007ff804be472c AppKit`-[NSThemeFrame = _toolbarFrameSizeChanged:oldSize:] + 73 frame #8: 0x00007ff804be4688 AppKit`-[NSWindow = _toolbarFrameSizeChanged:oldSize:] + 93 frame #9: 0x00007ff804bd8ad2 AppKit`-[NSToolbarView = _layoutDirtyItemViewersAndTileToolbar] + 473 frame #10: 0x00007ff804bfed7b AppKit`-[NSToolbarView layout] + 63 frame #11: 0x00007ff804b36b8f AppKit`_NSViewLayout + 564 frame #12: 0x00007ff804b36661 AppKit`-[NSView = _layoutSubtreeWithOldSize:] + 352 frame #13: 0x00007ff804b367bc AppKit`-[NSView = _layoutSubtreeWithOldSize:] + 699 frame #14: 0x00007ff804b367bc AppKit`-[NSView = _layoutSubtreeWithOldSize:] + 699 frame #15: 0x00007ff804b367bc AppKit`-[NSView = _layoutSubtreeWithOldSize:] + 699 frame #16: 0x00007ff804b35b78 AppKit`-[NSView = _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1041 frame #17: 0x00007ff804b35684 = AppKit`-[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148 frame #18: 0x00007ff804bac240 = AppKit`-[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 251 frame #19: 0x00007ff804bac080 = AppKit`__NSWindowGetDisplayCycleObserverForLayout_block_invoke + 430 frame #20: 0x00007ff804bab30c AppKit`NSDisplayCycleObserverInvoke + = 155 frame #21: 0x00007ff804baae97 AppKit`NSDisplayCycleFlush + 952 frame #22: 0x00007ff80911f434 = QuartzCore`CA::Transaction::run_commit_handlers(CATransactionPhase) + 98 frame #23: 0x00007ff80911e1b2 QuartzCore`CA::Transaction::commit() + = 376 frame #24: 0x00007ff804c4c4e2 = AppKit`__62+[CATransaction(NSCATransaction) = NS_setFlushesWithDisplayLink]_block_invoke + 285 frame #25: 0x00007ff805392724 = AppKit`___NSRunLoopObserverCreateWithHandler_block_invoke + 41 frame #26: 0x00007ff8020b5c07 = CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION= __ + 23 frame #27: 0x00007ff8020b5aa4 CoreFoundation`__CFRunLoopDoObservers = + 543 frame #28: 0x00007ff8020b4f37 CoreFoundation`__CFRunLoopRun + 841 frame #29: 0x00007ff8020b452d CoreFoundation`CFRunLoopRunSpecific + = 563 frame #30: 0x00007ff80acd23e1 HIToolbox`RunCurrentEventLoopInMode + = 292 frame #31: 0x00007ff80acd2008 HIToolbox`ReceiveNextEventCommon + 284 frame #32: 0x00007ff80acd1ed5 = HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 70 frame #33: 0x00007ff804adf8f0 AppKit`_DPSNextEvent + 886 frame #34: 0x00007ff804addf5c AppKit`-[NSApplication(NSEvent) = _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411 frame #35: 0x00007ff804ad0359 AppKit`-[NSApplication run] + 586 frame #36: 0x00000001001cfa3a Emacs-x86_64-10_14`-[EmacsApp run] + = 362 frame #37: 0x00000001001dc86c Emacs-x86_64-10_14`ns_read_socket + = 684 frame #38: 0x00000001000cce25 Emacs-x86_64-10_14`gobble_input + 245 frame #39: 0x00000001000ca34d = Emacs-x86_64-10_14`detect_input_pending_run_timers + 317 frame #40: 0x00000001000c7d84 Emacs-x86_64-10_14`read_char + 5284 frame #41: 0x00000001000c4d4a Emacs-x86_64-10_14`read_key_sequence + = 1722 frame #42: 0x00000001000c354c Emacs-x86_64-10_14`command_loop_1 + = 1340 frame #43: 0x0000000100149f57 = Emacs-x86_64-10_14`internal_condition_case + 263 frame #44: 0x00000001000d36d0 Emacs-x86_64-10_14`command_loop_2 + 48 frame #45: 0x000000010014977b Emacs-x86_64-10_14`internal_catch + = 267 frame #46: 0x0000000100207a85 Emacs-x86_64-10_14`command_loop.cold.1 = + 69 frame #47: 0x00000001000c2613 Emacs-x86_64-10_14`command_loop + 131 frame #48: 0x00000001000c2543 Emacs-x86_64-10_14`recursive_edit_1 + = 115 frame #49: 0x00000001000c279b Emacs-x86_64-10_14`Frecursive_edit + = 347 frame #50: 0x00000001000c131c Emacs-x86_64-10_14`main + 7452 frame #51: 0x00000001007a84fe dyld`start + 462 <--> -- Roger In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 = Version 10.14.6 (Build 18G95)) of 2021-11-18 built on builder10-14.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.0.1 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 44862 6866) (symbols 48 5924 1) (strings 32 15240 1779) (string-bytes 1 505310) (vectors 16 10175) (vector-slots 8 126913 9484) (floats 8 19 33) (intervals 56 189 0) (buffers 1000 11))