<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div apple-content-edited="true"></div><div apple-content-edited="true"><br></div><div apple-content-edited="true"><br></div>
<br><div><div>On May 29, 2013, at 2:37 PM, Duncan Murdoch <<a href="mailto:murdoch.duncan@gmail.com">murdoch.duncan@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On 13-05-29 11:19 AM, Bryan Hanson wrote:<br><blockquote type="cite">[originally on R-help, reposted here as the most relevent place]<br><br>NOTE: problem is with R.app, looks OK on command line R<br><br>This is really odd, and probably 100% local to me, but I'm at a loss as to a next step.<br><br>After narrowing things down, here's how to reproduce:<br></blockquote><br>I don't see it, but it looks to me like it may be a timing problem. I'm guessing the destruction of the old window triggers events in the wrong order and leaves rgl in an unstable state. Unfortunately, without being able to reproduce this, it looks really hard to track down. Can anyone reproduce it while running in gdb or some other debugger?<br><br>Duncan Murdoch<br><br><blockquote type="cite"><br>library("rgl")<br>showSomething <- function() {<br><span class="Apple-tab-span" style="white-space:pre"> </span>open3d()<br><span class="Apple-tab-span" style="white-space:pre"> </span>points3d(rnorm(10),rnorm(10),rnorm(10))<br><span class="Apple-tab-span" style="white-space:pre"> </span>axes3d()<br><span class="Apple-tab-span" style="white-space:pre"> </span>title3d('main','sub','xlab','ylab','zlab')<br><span class="Apple-tab-span" style="white-space:pre"> </span>}<br>showSomething() # works as expected.<br># Close the current rgl window<br>showSomething() # crashes R with the following report:<br><br>*** caught segfault ***<br>address 0x0, cause 'unknown'<br><br>Traceback:<br>1: .C(rgl_dev_open, success = FALSE)<br>2: rgl.open()<br>3: open3d()<br>4: showSomething()<br><br>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.<br><br>Perhaps something is corrupt with my X11 window system? Thanks, Bryan<br><br>R version 3.0.1 (2013-05-16)<br>Platform: x86_64-apple-darwin10.8.0 (64-bit)<br><br>locale:<br>[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8<br><br>attached base packages:<br>[1] stats graphics grDevices utils datasets methods base<br><br>other attached packages:<br>[1] rgl_0.93.940 sos_1.3-5 brew_1.0-6<br>_______________________________________________<br>R-SIG-Mac mailing list<br><a href="mailto:R-SIG-Mac@r-project.org">R-SIG-Mac@r-project.org</a><br>https://stat.ethz.ch/mailman/listinfo/r-sig-mac<br><br></blockquote><br>_______________________________________________<br>R-SIG-Mac mailing list<br><a href="mailto:R-SIG-Mac@r-project.org">R-SIG-Mac@r-project.org</a><br>https://stat.ethz.ch/mailman/listinfo/r-sig-mac<br></blockquote></div><br></div></body></html>