Subject: bug#56559: 29.0.50; Invalid CGContextSaveState on NS

From: Daniel Martín <[email-masked]>
Date: Fri, 15 Jul 2022 15:05:59 +0200

Gerd Möllmann <[email-masked]> writes:

> In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.5.0, NS appkit-2113.50 Version 12.4 (Build 21F79))
>  of 2022-07-12 built on Mini.fritz.box
> Repository revision: f209650e41d59356a90b5a602abc60c6783bc7b1
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.2113
> System Description:  macOS 12.4
>
> Configured using:
>  'configure --with-native-compilation'
>
> At various times, Emacs prints
>
> 2022-07-14 16:55:41.722952+0200 emacs[65244:294257] [emacs] CGContextSaveGState:
> invalid context 0x0. If you want to see the backtrace, please set
> CG_CONTEXT_SHOW_BACKTRACE environmental variable.
>
> to the terminal from which it is started.

I can't reproduce this issue.  Can you describe in more detail what you
do to reproduce the warning?  Can you reproduce this in emacs -Q?