Bug 14582 - Changing display configurations on my Mac causes spurious stderr output if Quartz or R.app is used
Summary: Changing display configurations on my Mac causes spurious stderr output if Qu...
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 2.13.0
Hardware: x86_64/x64/amd64 (64-bit) Mac OS X v10.6
: P5 minor
Assignee: Simon Urbanek
Depends on:
Reported: 2011-05-12 19:35 UTC by joey reid
Modified: 2011-05-15 14:05 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description joey reid 2011-05-12 19:35:19 UTC
Attaching or removing external monitors causes the following error:
R[16983] <Error>: kCGErrorIllegalArgument: CGSShapeWindow

Steps to Reproduce:
1) Open R.app or R64.app
2) attach or remove an external display 
OR with R running, sleep the computer by closing the lid, attach external display, wake computer with the keyboard so the only display is the external
OR with R running on the external monitor as the only display, sleep the computer, disconnect the monitor, open the lid
3) R[16983] <Error>: kCGErrorIllegalArgument: CGSShapeWindow

Actual Results:
Nothing really, R.app spits out the error message in red type, but it doesn't seem to affect the operation of R in any way.

Expected Results:
No error message when changes screen configurations.

This has been happening to me for at least the last year, so it is not new to the newest versions of R.app or R64.app
Comment 1 Simon Urbanek 2011-05-12 19:51:03 UTC
Thanks - I have seen the error before, however I could not trigger it consciously. I think you should be able to reproduce it in Quartz even without the GUI (e.g. run R in Terminal type quartz() and then do the magic to re-configure displays). I suspect from your description that my machine was triggering it randomly when waking from sleep - I'm never detaching displays but possibly it may take some time to re-attach the secondary displays. I'll see if I can track it down.
Comment 2 joey reid 2011-05-12 20:02:59 UTC
Apparently this problem is not unique to R, I just checked the console after playing around with my external display and Google Chrome, Twitter, Papers and Matlab all have the same error.
5/12/11 1:58:35 PM	MATLAB_maci64[17828]	kCGErrorIllegalArgument: CGSShapeWindow
5/12/11 1:58:35 PM	Google Chrome[13754]	kCGErrorIllegalArgument: CGSShapeWindow
5/12/11 1:58:35 PM	Twitter[16870]	kCGErrorIllegalArgument: CGSShapeWindow
5/12/11 1:58:35 PM	Papers[14361]	kCGErrorIllegalArgument: CGSShapeWindow