[R-SIG-Mac] more rgl problems

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Thu Feb 18 12:28:23 CET 2021

I can reproduce this on a Catalina machine, working in R from the terminal.

This definitely looks similar to the problem that 
rgl::setGraphicsDelay() was designed to solve, but even adding a 10 
second delay doesn't help.  I get a slightly different message than you:

 > open3d()
error: xp_attach_gl_context returned: 2

  *** caught segfault ***
address 0x18, cause 'memory not mapped'

but that might just be a different way of reporting the same underlying 

It's clearly some kind of interaction between the Quartz device and rgl. 
  I'll see if I can track it down.

Duncan Murdoch

On 17/02/2021 7:36 p.m., Richard M. Heiberger wrote:
> This is repeatable when the lines are all pasted in at once.
> The example works if I allow some time delay between lines.
> This is might be a relative of the one from a few months ago.
> But this message is about invalid permissions.
> =====
> R version 4.0.4 RC (2021-02-12 r79998) -- "Lost Library Book"
> Copyright (C) 2021 The R Foundation for Statistical Computing
> Platform: x86_64-apple-darwin17.0 (64-bit)
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type 'license()' or 'licence()' for distribution details.
>    Natural language support but running in an English locale
> R is a collaborative project with many contributors.
> Type 'contributors()' for more information and
> 'citation()' on how to cite R or R packages in publications.
> Type 'demo()' for some demos, 'help()' for on-line help, or
> 'help.start()' for an HTML browser interface to help.
> Type 'q()' to quit R.
>> setwd('/Users/rmh/Rwd/')
>> library(rgl)
>> x <- matrix(1:3, 1,3)
>> plot(1:10, col=7)
>> open3d()
> error: xp_attach_gl_context returned: 2
>   *** caught segfault ***
> address 0x18, cause 'invalid permissions'
> Traceback:
>   1: rgl.open(useNULL)
>   2: open3d()
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection:
> ====
> MacBookAir with the M1 chip using the regular intel version of R from CRAN.
> Big Sur 11.2.1.
> The plot(1:10), col=7) ## went by default to the quartz() device.
> I repeated this about 5 times in ESS, and then once in Terminal.
> Let me know if you need more information.

More information about the R-SIG-Mac mailing list