Subject: Re: bug#45515: 28.0.50; [feature/native-comp] emacsGcc crash on Apple Silicon M1

From: Alan Third <[email-masked]>
Date: Tue, 29 Dec 2020 16:00:38 +0000

On Tue, Dec 29, 2020 at 04:45:05PM +0100, mp wrote:
> tried lldb, but it doesn't help much i guess:
> 
> 2020-12-29 16:38:51.737315+0100 emacs[85147:7251664] [emacs]
> CGContextSetStrokeColorWithColor: invalid context 0x0. Backtrace:
>   <NSColorSetWithFillAndStroke+165>
>    <ns_draw_window_cursor+862>
>     <display_and_set_cursor+2278>
>      <update_cursor_in_window_tree+235>
>       <update_cursor_in_window_tree+99>
>        <-[EmacsView windowDidResignKey:]+162>
> <__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__+12>

Looks like it's trying to draw when the destination hasn't been set...
What was going on when it crashed? Were you changing to another
application?

It may be worth trying a more up to date merge from master as there's
been a wee bit of work on the NS port recently.
-- 
Alan Third