[R-SIG-Mac] Lion and X11

Martin Renner greatauklet at gmail.com
Sun Jan 29 02:21:10 CET 2012


Thank you to everybody who replied! Simon, on my machine, I can reproduce this segfault every time using these steps:

- open Terminal.app (or iTerm or Aquamacs), start R --vanilla  (RStudio, or R.app)
in R:   
   - x11()   (in Terminal, my R defaults to x11, without me doing anything; in R.app or RStudio, I call x11() to reproduce this segfault. 
   - plot (1:10) or any other plotting command. 
I am not aware of any other conscious or subconscious steps I'm taking. Plotting to quartz() or pdf() works fine. My .bashrc sets R_LIBS and the usual additions to the default PATH, nothing that should affect R or x11. Since I haven't heard back a flood of people saying, 'yes, me too', I suspect, this issue is specific to my setup. I've tried clearing out any preference files related to x11, to no affect. When calling plot (1:10), I get a new x11 graphics window, ten circles and an x-axis with tick-marks, and a segfault. No box(), no y-axis. There's no .Rprofile in my home directory. Are there any other preference files that could be corrupted? 

My display variable looks fine, so Christian seems to have a different issue than me. 
> Sys.getenv ("DISPLAY")
[1] "/tmp/launch-EepjEz/org.x:0"

Cheers,
Martin





On 28 Jan 2012, at 10:17 , Simon Urbanek wrote:

> Martin,
> 
> can you specify more precisely what you're doing? Issuing the code you sent would use Quartz, so apparently you're doing other things that you didn't mention - so can you share those so we can try to reproduce it?
> 
> Thanks,
> Simon
> 
> 
> On Jan 27, 2012, at 7:17 PM, Martin Renner wrote:
> 
>> Hi All,
>> 
>> Is anybody else experiencing problems with X11 and R under Mac OS X 10.7 (Lion)? If yes, maybe it's not specific to my machine. R segfaults when I try to plot to a X11 device, e.g. open R in the terminal and calling   
>>> plot (1:10)
>> (see below). Plotting to a quartz device works fine. I'm using R-2.14.1 (see below), compiled from source using homebrew. I've seen the same issue with the CRAN binaries, with a vanilla compile from source of R-2.14.1 and even with an old R-2.9.2. 
>> 
>> I wonder whether I'd have to wait for a fix from Apple, or whether there's a work-around like something that can be done during configuration? 
>> 
>> Cheers,
>> Martin
>> 
>> 
>> 
>>> plot (1:10)
>> 
>> *** caught segfault ***
>> address 0x0, cause 'memory not mapped'
>> 
>> Traceback:
>> 1: axis(side = side, at = at, labels = labels, ...)
>> 2: Axis.default(...)
>> 3: Axis(...)
>> 4: localAxis(if (is.null(y)) xy$x else x, side = 1, ...)
>> 5: plot.default(1:10)
>> 6: plot(1:10)
>> 
>> 
>> 
>>> sessionInfo()
>> R version 2.14.1 (2011-12-22)
>> Platform: x86_64-apple-darwin11.2.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     
>>> 
>> 
>> _______________________________________________
>> 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