* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
@ 2022-06-27 14:22 Gerd Möllmann
2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Gerd Möllmann @ 2022-06-27 14:22 UTC (permalink / raw)
To: 56259
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).
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-27 14:22 bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS Gerd Möllmann
@ 2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-27 15:55 ` Eli Zaretskii
2022-06-28 1:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-21 21:57 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 1 reply; 11+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-27 15:05 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 56259
Gerd Möllmann <gerd.moellmann@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-27 15:55 ` Eli Zaretskii
2022-06-30 3:09 ` Richard Stallman
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2022-06-27 15:55 UTC (permalink / raw)
To: Daniel Martín; +Cc: gerd.moellmann, 56259
> Cc: 56259@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@gnu.org>
>
> Gerd Möllmann <gerd.moellmann@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-27 14:22 bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS Gerd Möllmann
2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-28 1:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-28 5:35 ` Gerd Möllmann
2022-08-21 21:57 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 1 reply; 11+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-06-28 1:24 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 56259
Gerd Möllmann <gerd.moellmann@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!
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-28 1:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-06-28 5:35 ` Gerd Möllmann
0 siblings, 0 replies; 11+ messages in thread
From: Gerd Möllmann @ 2022-06-28 5:35 UTC (permalink / raw)
To: Po Lu; +Cc: 56259
[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]
> On 2022-06-28,, at 3:24 , Po Lu <luangruo@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.
[-- Attachment #1.2: Type: text/html, Size: 1182 bytes --]
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 874 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-27 15:55 ` Eli Zaretskii
@ 2022-06-30 3:09 ` Richard Stallman
2022-06-30 5:20 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Richard Stallman @ 2022-06-30 3:09 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gerd.moellmann, 56259, mardani29
[[[ 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)
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-30 3:09 ` Richard Stallman
@ 2022-06-30 5:20 ` Eli Zaretskii
2022-06-30 6:06 ` Gerd Möllmann
2022-07-05 3:01 ` Richard Stallman
0 siblings, 2 replies; 11+ messages in thread
From: Eli Zaretskii @ 2022-06-30 5:20 UTC (permalink / raw)
To: rms; +Cc: gerd.moellmann, 56259, mardani29
> From: Richard Stallman <rms@gnu.org>
> Cc: mardani29@yahoo.es, gerd.moellmann@gmail.com,
> 56259@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-30 5:20 ` Eli Zaretskii
@ 2022-06-30 6:06 ` Gerd Möllmann
2022-07-05 3:01 ` Richard Stallman
1 sibling, 0 replies; 11+ messages in thread
From: Gerd Möllmann @ 2022-06-30 6:06 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 56259, rms, Daniel Martín
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
> On 2022-06-30,, at 7:20 , Eli Zaretskii <eliz@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.
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 874 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-30 5:20 ` Eli Zaretskii
2022-06-30 6:06 ` Gerd Möllmann
@ 2022-07-05 3:01 ` Richard Stallman
1 sibling, 0 replies; 11+ messages in thread
From: Richard Stallman @ 2022-07-05 3:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gerd.moellmann, 56259, mardani29
[[[ 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)
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS
2022-06-27 14:22 bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS Gerd Möllmann
2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-28 1:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-21 21:57 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-12 20:57 ` bug#58540: 29.0.50; While opening the font dialog Stefan Kangas
2 siblings, 1 reply; 11+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-21 21:57 UTC (permalink / raw)
To: Gerd Möllmann; +Cc: 56259
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#58540: 29.0.50; While opening the font dialog
2022-08-21 21:57 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-11-12 20:57 ` Stefan Kangas
0 siblings, 0 replies; 11+ messages in thread
From: Stefan Kangas @ 2022-11-12 20:57 UTC (permalink / raw)
To: Daniel Martín; +Cc: Gerd Möllmann, 56259-done, 58540-done
Daniel Martín <mardani29@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.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-11-12 20:57 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-27 14:22 bug#56259: 29.0.50; Illegal -layoutSubtreeIfNeeded on NS Gerd Möllmann
2022-06-27 15:05 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-27 15:55 ` Eli Zaretskii
2022-06-30 3:09 ` Richard Stallman
2022-06-30 5:20 ` Eli Zaretskii
2022-06-30 6:06 ` Gerd Möllmann
2022-07-05 3:01 ` Richard Stallman
2022-06-28 1:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-28 5:35 ` Gerd Möllmann
2022-08-21 21:57 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-12 20:57 ` bug#58540: 29.0.50; While opening the font dialog Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).