[R-SIG-Mac] R-2.4.1 built with Apple compiler Xcode 2.4.1 on Intel crashes

Bill Northcott w.northcott at unsw.edu.au
Tue Feb 27 03:12:02 CET 2007


I have found some code which cause R 2.4.1 built with the C and C++  
compilers in Xcode 2.4.1 to crash.  The same code has no problems on  
R-2.4.1 built with the compilers in the R package.  The package built  
with the Apple compilers passes everything in 'make check'.

The code opens a quartz window then accesses some data from a SQLite  
database with RSQLite and plots it in the window.  When run from the  
GUI it puts up the bare window and then crashes.

Logged output from the GUI is:

Traceback:
1: .External("Quartz", display, width, height, pointsize, family,      
antialias, autorefresh, PACKAGE = "grDevices")
2: quartz(width = 6, height = 5)
3: eval.with.vis(expr, envir, enclos)
4: eval.with.vis(ei, envir)
5: source("/Users/billn/Public/Sync This/UNSW/Research/Exper Group/ 
Workarea/Feb07/pricePlot.R")


Running in R from a terminal window works and produces the correct  
plots but with warnings:

 > .Platform$GUI <- "AQUA"
 > source("/Users/billn/Public/Sync\ This/UNSW/Research/Exper\ Group/ 
Workarea/Feb07/pricePlot.R")
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
CGGStackRestore: gstack underflow.
Error in sqliteCloseDriver(drv, ...) : RS-DBI driver: (there are  
opened connections -- close them first)
In addition: There were 12 warnings (use warnings() to see them)
 > warnings()
Warning messages:
1: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
2: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
3: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
4: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
5: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
6: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
7: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
8: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
9: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
10: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
11: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
12: quartz() device interactivity reduced without an event loop  
manager in: quartz(width = 6, height = 5)
 >

I would like to pin this down and file a bug with Apple.  They have  
said previously that they will try to fix things that work in FSF  
compilers but not theirs.

I am building a debug version R to run under GDB, but I would be  
grateful for any suggestions about where to look.

Bill Northcott



More information about the R-SIG-Mac mailing list