The gdb backtrace text file colorUsingDefaultColorSpace.txt relates to _only_ the change of deviceRGBColorSpace to genericRGBColorSpace. The gdb backtrace text file unsignedlong.txt relates to _only_ the change the change of [self getRed:&r green:&g blue:&b alpha:&a]; to [[self colorUsingDefaultColorSpace] getRed:&r green:&g blue:&b alpha:&a]; The gdb backtrace text file both_changes.txt relates to both of the suggested changes. Thanks, Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Date: [04-20-2022 22:09:00] <21 Apr 2022 06:09:00 +0100> > From: Alan Third > To: Keith David Bershatsky > Cc: emacs-devel@gnu.org, Po Lu , Mattias EngdegÄrd , Paul Eggert > Subject: Re: Emacs 28 on OSX: emacsclient.c:1415: warning: implicit declaration of function 'openat' > > On Wed, Apr 20, 2022 at 05:51:32PM -0700, Keith David Bershatsky wrote: > > 2022-04-20 17:40:19.560 Emacs[29141:60f] An uncaught exception was raised > > 2022-04-20 17:40:19.560 Emacs[29141:60f] *** -getRed:green:blue:alpha: not defined for the NSColor NSCustomColorSpace Device RGB colorspace 0 0 0 1; need to first convert colorspace. > > 2022-04-20 17:40:19.561 Emacs[29141:60f] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -getRed:green:blue:alpha: not defined for the NSColor NSCustomColorSpace Device RGB colorspace 0 0 0 1; need to first convert colorspace.' > > Hi Keith, > > Can you please try a couple of things? > > In nsterm.m, in the function colorUsingDefaultColorSpace can you > change deviceRGBColorSpace to genericRGBColorSpace? > > If that makes no difference, then in the function unsignedlong just > below it can you try changing > > [self getRed:&r green:&g blue:&b alpha:&a]; > > to > > [[self colorUsingDefaultColorSpace] getRed:&r green:&g blue:&b alpha:&a]; > > if that makes no difference, can you try both changes together? > > Thanks! > -- > Alan Third