GNU bug report logs -
#56259
29.0.50; Illegal -layoutSubtreeIfNeeded on NS
Previous Next
Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Date: Mon, 27 Jun 2022 14:23:01 UTC
Severity: normal
Tags: notabug
Merged with 58540
Found in version 29.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56259 in the body.
You can then email your comments to 56259 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Mon, 27 Jun 2022 14:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 27 Jun 2022 14:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
On macOS 12.4, selecting Options -> Set Default Font from the menu bar
reproducibly prints a message to the terminal:
emacs[76309:7042282] 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.
Hopefully nobody get's sued because of that illegal action...
Backtrace from lldb:
* frame #0: 0x000000019e2f5f40 AppKit`_NSDetectedLayoutRecursion
frame #1: 0x000000019dac4148 AppKit`-[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148
frame #2: 0x000000019dac11d0 AppKit`-[NSWindow _oldPlaceWindow:fromServer:] + 584
frame #3: 0x000000019dac0050 AppKit`-[NSWindow _setFrameCommon:display:fromServer:] + 2220
frame #4: 0x000000019db854cc AppKit`-[NSThemeFrame _growWindowReshapeContentAndToolbarView:withOldToolbarFrameSize:animate:] + 1232
frame #5: 0x000000019db84ddc AppKit`-[NSThemeFrame _reshapeContentAndToolbarView:withOldToolbarFrameSize:resizeWindow:animate:] + 300
frame #6: 0x000000019db738bc AppKit`-[NSThemeFrame _toolbarFrameSizeChanged:oldSize:] + 76
frame #7: 0x000000019db737f4 AppKit`-[NSWindow _toolbarFrameSizeChanged:oldSize:] + 96
frame #8: 0x000000019db68870 AppKit`-[NSToolbarView _layoutDirtyItemViewersAndTileToolbar] + 428
frame #9: 0x000000019db8b114 AppKit`-[NSToolbarView layout] + 88
frame #10: 0x000000019dac5700 AppKit`_NSViewLayout + 688
frame #11: 0x000000019dac5178 AppKit`-[NSView _layoutSubtreeWithOldSize:] + 380
frame #12: 0x000000019dac52e4 AppKit`-[NSView _layoutSubtreeWithOldSize:] + 744
frame #13: 0x000000019dac52e4 AppKit`-[NSView _layoutSubtreeWithOldSize:] + 744
frame #14: 0x000000019dac52e4 AppKit`-[NSView _layoutSubtreeWithOldSize:] + 744
frame #15: 0x000000019dac4600 AppKit`-[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 996
frame #16: 0x000000019dac4148 AppKit`-[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148
frame #17: 0x000000019db3b8ec AppKit`-[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 308
frame #18: 0x000000019dba7388 AppKit`-[NSWindow _setUpFirstResponderBeforeBecomingVisible] + 84
frame #19: 0x000000019dba6750 AppKit`-[NSWindow _doWindowWillBeVisibleAsSheet:] + 164
frame #20: 0x000000019dba507c AppKit`-[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1232
frame #21: 0x000000019dba4790 AppKit`-[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 132
frame #22: 0x000000019dba377c AppKit`-[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 324
frame #23: 0x000000010088d424 emacs`-[EmacsView showFontPanel](self=0x0000000108431400, _cmd="showFontPanel") at nsterm.m:6585:3
frame #24: 0x000000010090d670 emacs`Fx_select_font(frame=0x0000000000000000, ignored=0x0000000000000000) at nsfns.m:1662:22
A related bug might be bug#53481 (status done, fixed by Alan Third).
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Mon, 27 Jun 2022 15:06:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 56259 <at> debbugs.gnu.org (full text, mbox):
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
> On macOS 12.4, selecting Options -> Set Default Font from the menu bar
> reproducibly prints a message to the terminal:
>
> emacs[76309:7042282] 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.
>
I wonder if this is a bug in macOS 12.4 (concretely, in NSFontManager's
orderFrontFontPanel) and not in Emacs. For example, I can reproduce the
same warning if I try to open the Fonts panel in the standard TextEdit
app created by Apple.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Mon, 27 Jun 2022 15:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 56259 <at> debbugs.gnu.org (full text, mbox):
> Cc: 56259 <at> debbugs.gnu.org
> Date: Mon, 27 Jun 2022 17:05:16 +0200
> From: Daniel Martín via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
>
> > On macOS 12.4, selecting Options -> Set Default Font from the menu bar
> > reproducibly prints a message to the terminal:
> >
> > emacs[76309:7042282] 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.
> >
>
> I wonder if this is a bug in macOS 12.4 (concretely, in NSFontManager's
> orderFrontFontPanel) and not in Emacs. For example, I can reproduce the
> same warning if I try to open the Fonts panel in the standard TextEdit
> app created by Apple.
Then let's sue Apple for its illegal calls.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Tue, 28 Jun 2022 01:26:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 56259 <at> debbugs.gnu.org (full text, mbox):
Gerd Möllmann <gerd.moellmann <at> gmail.com> writes:
> On macOS 12.4, selecting Options -> Set Default Font from the menu bar
> reproducibly prints a message to the terminal:
>
> emacs[76309:7042282] 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.
>
> Hopefully nobody get's sued because of that illegal action...
I get the feeling this is one of Apple's bugs, since it happens to every
program's fonts panel, including those that come with Mac OS.
So let's sue Apple!
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Tue, 28 Jun 2022 05:36:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 56259 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On 2022-06-28,, at 3:24 , Po Lu <luangruo <at> yahoo.com> wrote:
>
> So let's sue Apple!
We should first try in good faith, that always makes a good impression in court.
We could assign the bug to Tim Cook and ask him to solve it. With a deadline for the fix, of course.
[Message part 2 (text/html, inline)]
[signature.asc (application/pgp-signature, attachment)]
Severity set to 'minor' from 'normal'
Request was from
Stefan Kangas <stefan <at> marxist.se>
to
control <at> debbugs.gnu.org
.
(Tue, 28 Jun 2022 21:05:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Thu, 30 Jun 2022 03:10:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 56259 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > I wonder if this is a bug in macOS 12.4 (concretely, in NSFontManager's
> > orderFrontFontPanel) and not in Emacs. For example, I can reproduce the
> > same warning if I try to open the Fonts panel in the standard TextEdit
> > app created by Apple.
> Then let's sue Apple for its illegal calls.
None of these things is "illegal" -- that's the wrong word.
I'm not sure what people mean by using it in this context,
but I don't think there is a law against it.
Apple surely has no legal obligation to implement the feature we
would like to use, so there is no basis for a lawsuit against Apple.
This is why we urge people not to use the word "illegal" to say
that some way of using a program is considered invalid or not supported.
See the node GNU Manuals in the GNU Coding Standards.
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Thu, 30 Jun 2022 05:21:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 56259 <at> debbugs.gnu.org (full text, mbox):
> From: Richard Stallman <rms <at> gnu.org>
> Cc: mardani29 <at> yahoo.es, gerd.moellmann <at> gmail.com,
> 56259 <at> debbugs.gnu.org
> Date: Wed, 29 Jun 2022 23:09:10 -0400
>
> > > I wonder if this is a bug in macOS 12.4 (concretely, in NSFontManager's
> > > orderFrontFontPanel) and not in Emacs. For example, I can reproduce the
> > > same warning if I try to open the Fonts panel in the standard TextEdit
> > > app created by Apple.
>
> > Then let's sue Apple for its illegal calls.
>
> None of these things is "illegal" -- that's the wrong word.
There's nothing illegal in joking about that, either.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Thu, 30 Jun 2022 06:08:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 56259 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> On 2022-06-30,, at 7:20 , Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>>> Then let's sue Apple for its illegal calls.
>>
>> None of these things is "illegal" -- that's the wrong word.
>
> There's nothing illegal in joking about that, either.
And there could be a lot of money in it for the FSF.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Tue, 05 Jul 2022 03:02:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 56259 <at> debbugs.gnu.org (full text, mbox):
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> > None of these things is "illegal" -- that's the wrong word.
> There's nothing illegal in joking about that, either.
That joking is not illegal, but it can be confusing.
(I couldn't tell it was a joke.)
--
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#56259
; Package
emacs
.
(Sun, 21 Aug 2022 21:58:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 56259 <at> debbugs.gnu.org (full text, mbox):
tags 56259 notabug
close 56259
quit
I think the general consensus was that this message is a bug in some
Apple framework and not in Emacs, so I'm closing the bug report.
Added tag(s) notabug.
Request was from
Daniel Martín <mardani29 <at> yahoo.es>
to
control <at> debbugs.gnu.org
.
(Sun, 21 Aug 2022 21:58:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
56259 <at> debbugs.gnu.org and Gerd Möllmann <gerd.moellmann <at> gmail.com>
Request was from
Daniel Martín <mardani29 <at> yahoo.es>
to
control <at> debbugs.gnu.org
.
(Sun, 21 Aug 2022 21:58:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 Sep 2022 11:24:12 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Po Lu <luangruo <at> yahoo.com>
to
control <at> debbugs.gnu.org
.
(Sat, 15 Oct 2022 08:38:01 GMT)
Full text and
rfc822 format available.
Forcibly Merged 56259 58540.
Request was from
Po Lu <luangruo <at> yahoo.com>
to
control <at> debbugs.gnu.org
.
(Sat, 15 Oct 2022 08:38:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Sat, 12 Nov 2022 20:58:04 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gerd Möllmann <gerd.moellmann <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 12 Nov 2022 20:58:05 GMT)
Full text and
rfc822 format available.
Message #49 received at 56259-done <at> debbugs.gnu.org (full text, mbox):
Daniel Martín <mardani29 <at> yahoo.es> writes:
> tags 56259 notabug
> close 56259
> quit
>
> I think the general consensus was that this message is a bug in some
> Apple framework and not in Emacs, so I'm closing the bug report.
The bug was left open, so I'm closing it now.
Reply sent
to
Stefan Kangas <stefankangas <at> gmail.com>
:
You have taken responsibility.
(Sat, 12 Nov 2022 20:58:05 GMT)
Full text and
rfc822 format available.
Notification sent
to
Pedro Andres Aranda Gutierrez <paaguti <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 12 Nov 2022 20:58:05 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 11 Dec 2022 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.