[R-SIG-Mac] R crashes with "caught segfault" under Mac OS X

Anne Skoeries home at anne-skoeries.de
Wed Aug 5 14:17:50 CEST 2009


Hallo there,

I'm developing under Mac OS X.
I'm generating a plot out of a tcl/tk-application. The plot is shown  
as expected in a Quartz-window in front of the tcl/tk-window but the  
focus strangely remains on the X11 application (tcl/tk-window).  If I  
close the Quartz-Window by clicking on the red "close-button" directly  
without changing the focus by clicking the Quartz-window, R crashes  
with the following error-messages shown below.

My questions:
1. Is there a way to prevent the crash?
2. Is it possible to change the focus automatically to the Quartz- 
window? If not, is there a way to show the plot within a tcl/tk-window  
and completely abstain from a Quartz-window?

Code:
tt <- tktoplevel()
buta <- tkbutton(tt, text = "ajcc0", command = function()  
{barplot(height = mat, names.arg=namen)})
tkgrid(buta)

error message:
*** caught segfault ***
address 0xc5f003f3, cause 'memory not mapped'

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
error in background error handler:
out of stack space (infinite loop?)
     while executing
"::tcl::Bgerror {out of stack space (infinite loop?)} {-code 1 -level  
0 -errorcode NONE -errorinfo {out of stack space (infinite loop?)
     while execu..."

SessionInfo:
R version 2.9.1 (2009-06-26)
i386-apple-darwin8.11.1

locale:
de_DE.UTF-8/de_DE.UTF-8/C/C/de_DE.UTF-8/de_DE.UTF-8

attached base packages:
[1] tcltk     stats     graphics  grDevices utils     datasets   
methods   base

Thanks,
--
Anne Skoeries



More information about the R-SIG-Mac mailing list