Skip to content

graphics problem from Macintosh system software

6 messages · Erich Neuwirth, Richard M. Heiberger, John Maindonald +1 more

#
This has been reported before.  I am still seeing it with R-3.2.3.
It appears randomly.  It sounds scary.

Rich
Dec 17 15:14:01 rmhs-MacBook-Air.local R[3534] <Error>:
CGContextSetFont: invalid context 0x7fb698259080. This is a serious
error. This application, or a library it uses, is using an invalid
context  and is thereby contributing to an overall degradation of
system stability and reliability. This notice is a courtesy: please
fix this problem. It will become a fatal error in an upcoming update.
Dec 17 15:14:01 rmhs-MacBook-Air.local R[3534] <Error>:
CGContextSetFontSize: invalid context 0x7fb698259080. This is a
serious error. This application, or a library it uses, is using an
invalid context  and is thereby contributing to an overall degradation
of system stability and reliability. This notice is a courtesy: please
fix this problem. It will become a fatal error in an upcoming update.
Dec 17 15:14:01 rmhs-MacBook-Air.local R[3534] <Error>:
CGContextGetFont: invalid context 0x7fb698259080. This is a serious
error. This application, or a library it uses, is using an invalid
context  and is thereby contributing to an overall degradation of
system stability and reliability. This notice is a courtesy: please
fix this problem. It will become a fatal error in an upcoming update.
p
#
Do you have any idea under what circumstances this happens.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 670 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20151217/7a3dad65/attachment.bin>
#
No idea at all.  It happens randomly.  I have noticed it since June
2012 when I first started using the Macintosh.  This is the first time
I saw it with R-3.2.3 so I decided to
report it again.

My guess is that it is deep in the Macintosh device driver software.

Rich

On Thu, Dec 17, 2015 at 4:23 PM, Erich Neuwirth
<erich.neuwirth at univie.ac.at> wrote:
#
I used to get this type of message from time to time when I was plotting
to the RStudio graphics device.  Enlarging the graphics panel seemed
to fix it.  I?ve not seen it recently, with R-3.2.2

John Maindonald             email: john.maindonald at anu.edu.au
#
Erich Neuwirth <erich.neuwirth <at> univie.ac.at> writes:
I am getting a bunch of CGContext* error messages, too. But not exactly 
those listed by Rich.

I can reproduce them by running R-3.2.3 from a terminal, typing 
`example(hclust)', hitting RET to display all the plots, then clicking on the 
green button on the graphics window once to enter full-screen, and once to 
resize.

I get the further message:

"If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE 
environmental variable."

and Googling it leads to https://forums.developer.apple.com/thread/13683, 
which has posts saying this is an Xcode issue and had a message as recently as 
yesterday saying that it is still a problem.

Chuck
1 day later
#
On Thu, 17 Dec 2015, Erich Neuwirth wrote:

            
See below.
FWIW, I can reproducibly get CGContext* errors by running R in a
terminal window, plotting something (for example `example(hclust)' and
answering RET to the prompts), then hitting the maximize (green)
button on the graphics window. However, these messages do not produce
the `fatal error' threats mentioned in Rich's email.

I can report the output from doing this under
`CG_CONTEXT_SHOW_BACKTRACE=yes R' if that helps.

Chuck