[R-SIG-Mac] rgl crashes after one successful draw on R.app
Roger Koenker
rkoenker at illinois.edu
Wed May 29 17:37:44 CEST 2013
FWIW, I'm also having difficulties with rgl since upgrading to R 3.0
> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rgl_0.93.935
and XQuartz 2.6.5 (xorg-server 1.10.6) as soon as I do rgl.open() I get:
*** caught segfault ***
address 0xe8, cause 'memory not mapped'
Traceback:
1: .C(rgl_dev_open, success = FALSE)
2: rgl.open()
3: open3d()
4: eval(expr, envir, enclos)
5: eval(ei, envir)
6: withVisible(eval(ei, envir))
7: source(tf, local, echo = echo, prompt.echo = paste0(prompt.prefix, getOption("prompt")), continue.echo = paste0(prompt.prefix, getOption("continue")), verbose = verbose, max.deparse.length = Inf, encoding = "UTF-8", skip.echo = skips, keep.source = TRUE)
maybe this is a better hint though -- suspending the unresponsive process produced the additional message:
Warning message:
In rgl.open() : RGL: no suitable visual available
Roger
url: www.econ.uiuc.edu/~roger Roger Koenker
email rkoenker at uiuc.edu Department of Economics
vox: 217-333-4558 University of Illinois
fax: 217-244-6678 Urbana, IL 61801
On May 29, 2013, at 10:19 AM, Bryan Hanson wrote:
> [originally on R-help, reposted here as the most relevent place]
>
> NOTE: problem is with R.app, looks OK on command line R
>
> This is really odd, and probably 100% local to me, but I'm at a loss as to a next step.
>
> After narrowing things down, here's how to reproduce:
>
> library("rgl")
> showSomething <- function() {
> open3d()
> points3d(rnorm(10),rnorm(10),rnorm(10))
> axes3d()
> title3d('main','sub','xlab','ylab','zlab')
> }
> showSomething() # works as expected.
> # Close the current rgl window
> showSomething() # crashes R with the following report:
>
> *** caught segfault ***
> address 0x0, cause 'unknown'
>
> Traceback:
> 1: .C(rgl_dev_open, success = FALSE)
> 2: rgl.open()
> 3: open3d()
> 4: showSomething()
>
> This will probably work fine for any of you, it's so simple and fundamental. If I don't close the open rgl windows, it doesn't crash, and I can execute the function over and over successfully. And the same thing happens if I just do the commands inside the function individually. SessionInfo() below.
>
> Perhaps something is corrupt with my X11 window system? Thanks, Bryan
>
> R version 3.0.1 (2013-05-16)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] rgl_0.93.940 sos_1.3-5 brew_1.0-6
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list