[R-SIG-Mac] R crash in Terminal.app

Simon Urbanek simon.urbanek at r-project.org
Fri Aug 27 16:41:32 CEST 2010


On Aug 27, 2010, at 9:27 AM, Konis Kjell wrote:

> Hello,
> 
> I am able to consistenly crash R (both 32 and 64 bit) with the following three commands
> 
> plot(1:10, 1:10)
> dev.off()
> install.packages("car")
> 
> when I run R in Terminal.app.
> 

I cannot reproduce it. Can you be more specific about your setup (OS X version, how you compiled R, what is your X11 setup)? Note that native tcltk is not supported, only X11. If I run the above in Terminal I get:

> plot(1:10, 1:10)
> dev.off()
null device 
          1 
> install.packages("car")
Warning in install.packages("car") :
  argument 'lib' is missing: using '/Users/urbanek/Library/R/2.11/library'
--- Please select a CRAN mirror for use in this session ---
CRAN mirror 

 1: Australia                 2: Austria                
 3: Belgium                   4: Brazil (PR)            
 5: Brazil (RJ)               6: Brazil (SP 1)          
 7: Brazil (SP 2)             8: Canada (BC)            
 9: Canada (NS)              10: Canada (ON)            
11: Canada (QC 1)            12: Canada (QC 2)          
13: Chile                    14: China (Beijing 1)      
15: China (Beijing 2)        16: China (Hong Kong)      
17: Colombia                 18: Denmark                
19: France (Toulouse)        20: France (Lyon 1)        
21: France (Lyon 2)          22: Germany (Berlin)       
23: Germany (Goettingen)     24: Germany (Hamburg)      
25: Germany (Muenchen)       26: Germany (Nuernberg)    
27: Germany (Wiesbaden)      28: Greece                 
29: Iran                     30: Ireland                
31: Italy (Milano)           32: Italy (Padua)          
33: Italy (Palermo)          34: Japan (Hyogo)          
35: Japan (Tsukuba)          36: Korea                  
37: Netherlands (Amsterdam)  38: Netherlands (Utrecht)  
39: New Zealand              40: Norway                 
41: Poland (Oswiecim)        42: Poland (Wroclaw)       
43: Portugal                 44: Russia                 
45: Singapore                46: Slovakia 1             
47: Slovakia 2               48: South Africa           
49: Spain (Madrid)           50: Sweden                 
51: Switzerland              52: Taiwan (Taichung)      
53: Taiwan (Taipei 1)        54: Taiwan (Taipei 2)      
55: Thailand (Bangkog)       56: Thailand (Hatyai)      
57: UK (Bristol)             58: UK (London)            
59: USA (AZ)                 60: USA (CA 1)             
61: USA (CA 2)               62: USA (IA)               
63: USA (MA)                 64: USA (MD)               
65: USA (MI)                 66: USA (MO)               
67: USA (NC)                 68: USA (OH)               
69: USA (PA 1)               70: USA (PA 2)             
71: USA (TN)                 72: USA (TX 1)             
73: USA (TX 2)               74: USA (WA)               


Selection: 


Note that tcltk is not involved at all - and it should not be. So apparently it's something about your setup. Since tcltk is not loaded unless your'e running X11 I tried running your example with X11 running and DISPLAY set in Terminal but that works, too:

> plot(1:10, 1:10)
> dev.off()
X11 
  4 
Warning message:
In dev.off() : Display list redraw incomplete
> install.packages("car")
Warning in install.packages("car") :
  argument 'lib' is missing: using '/Users/urbanek/Library/R/2.11/library'
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done


Cheers,
Simon





> Kjell
> 
> 
> Warning in install.packages("car") :
>  argument 'lib' is missing: using '/u/smat/konis/Library/R/2.11/library'
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... 2010-08-27 15:16:54.628 R[3407:60f] -[NSApplication _setup:]: unrecognized selector sent to instance 0x100559f40
> 2010-08-27 15:16:54.631 R[3407:60f] An uncaught exception was raised
> 2010-08-27 15:16:54.632 R[3407:60f] -[NSApplication _setup:]: unrecognized selector sent to instance 0x100559f40
> 2010-08-27 15:16:54.674 R[3407:60f] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x100559f40'
> *** Call stack at first throw:
> (
>        0   CoreFoundation                      0x00007fff874ddcc4 __exceptionPreprocess + 180
>        1   libobjc.A.dylib                     0x00007fff8502d0f3 objc_exception_throw + 45
>        2   CoreFoundation                      0x00007fff87537140 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
>        3   CoreFoundation                      0x00007fff874afcdf ___forwarding___ + 751
>        4   CoreFoundation                      0x00007fff874abe28 _CF_forwarding_prep_0 + 232
>        5   libtk8.5.dylib                      0x0000000116a08ecb TkpInit + 530
>        6   libtk8.5.dylib                      0x0000000116980cae Tk_PkgInitStubsCheck + 1938
>        7   tcltk.so                            0x0000000116850fce tcltk_init + 62
>        8   libR.dylib                          0x0000000100072f32 do_dotCode + 6226
>        9   libR.dylib                          0x000000010009dbfc Rf_eval + 1676
>        10  libR.dylib                          0x000000010009e48b Rf_DispatchOrEval + 763
>        11  libR.dylib                          0x0000000100165702 do_subset2 + 66
>        12  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        13  libR.dylib                          0x000000010009dfbc Rf_evalList + 92
>        14  libR.dylib                          0x000000010009dac7 Rf_eval + 1367
>        15  libR.dylib                          0x000000010009f9eb do_set + 603
>        16  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        17  libR.dylib                          0x00000001000a2724 do_begin + 308
>        18  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        19  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        20  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        21  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        22  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        23  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        24  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        25  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        26  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        27  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        28  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        29  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        30  libR.dylib                          0x000000010009e87c do_return + 140
>        31  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        32  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        33  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        34  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        35  libR.dylib                          0x00000001000a2724 do_begin + 308
>        36  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        37  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        38  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        39  libR.dylib                          0x000000010009fa55 do_set + 709
>        40  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        41  libR.dylib                          0x00000001000a2724 do_begin + 308
>        42  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        43  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        44  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        45  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        46  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        47  libR.dylib                          0x00000001000a2724 do_begin + 308
>        48  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        49  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        50  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        51  libR.dylib                          0x00000001000a2724 do_begin + 308
>        52  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        53  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        54  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        55  libR.dylib                          0x000000010009fa55 do_set + 709
>        56  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        57  libR.dylib                          0x00000001000a2724 do_begin + 308
>        58  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        59  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        60  libR.dylib                          0x00000001000a2724 do_begin + 308
>        61  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        62  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        63  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        64  libR.dylib                          0x00000001000a2724 do_begin + 308
>        65  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        66  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        67  libR.dylib                          0x00000001000a2724 do_begin + 308
>        68  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        69  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        70  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        71  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        72  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        73  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        74  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        75  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        76  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        77  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        78  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        79  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        80  libR.dylib                          0x000000010009e87c do_return + 140
>        81  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        82  libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        83  libR.dylib                          0x000000010009d817 Rf_eval + 679
>        84  libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        85  libR.dylib                          0x00000001000a2724 do_begin + 308
>        86  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        87  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        88  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        89  libR.dylib                          0x000000010009fa55 do_set + 709
>        90  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        91  libR.dylib                          0x00000001000a2724 do_begin + 308
>        92  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        93  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        94  libR.dylib                          0x000000010009d932 Rf_eval + 962
>        95  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        96  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        97  libR.dylib                          0x00000001000a2724 do_begin + 308
>        98  libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        99  libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        100 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        101 libR.dylib                          0x00000001000a2724 do_begin + 308
>        102 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        103 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        104 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        105 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        106 libR.dylib                          0x00000001000a2724 do_begin + 308
>        107 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        108 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        109 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        110 libR.dylib                          0x000000010009fa55 do_set + 709
>        111 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        112 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        113 libR.dylib                          0x00000001000a2724 do_begin + 308
>        114 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        115 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        116 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        117 libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        118 libR.dylib                          0x000000010009d817 Rf_eval + 679
>        119 libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        120 libR.dylib                          0x000000010009dfbc Rf_evalList + 92
>        121 libR.dylib                          0x00000001000dfe91 do_internal + 449
>        122 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        123 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        124 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        125 libR.dylib                          0x00000001000a2724 do_begin + 308
>        126 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        127 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        128 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        129 libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        130 libR.dylib                          0x000000010009d817 Rf_eval + 679
>        131 libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        132 libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        133 libR.dylib                          0x000000010009d817 Rf_eval + 679
>        134 libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        135 libR.dylib                          0x00000001000a2724 do_begin + 308
>        136 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        137 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        138 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        139 libR.dylib                          0x00000001000a2724 do_begin + 308
>        140 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        141 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        142 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        143 libR.dylib                          0x00000001000cbb51 do_logic2 + 801
>        144 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        145 libR.dylib                          0x000000010009dfbc Rf_evalList + 92
>        146 libR.dylib                          0x000000010009dac7 Rf_eval + 1367
>        147 libR.dylib                          0x00000001000cba84 do_logic2 + 596
>        148 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        149 libR.dylib                          0x00000001000a34c5 do_if + 53
>        150 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        151 libR.dylib                          0x00000001000a2724 do_begin + 308
>        152 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        153 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        154 libR.dylib                          0x00000001000a2724 do_begin + 308
>        155 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        156 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        157 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        158 libR.dylib                          0x000000010009fa55 do_set + 709
>        159 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        160 libR.dylib                          0x00000001000a2724 do_begin + 308
>        161 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        162 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        163 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        164 libR.dylib                          0x00000001000a2724 do_begin + 308
>        165 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        166 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        167 libR.dylib                          0x00000001000a2724 do_begin + 308
>        168 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        169 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        170 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        171 libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        172 libR.dylib                          0x000000010009d817 Rf_eval + 679
>        173 libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        174 libR.dylib                          0x00000001000a1a3d forcePromise + 157
>        175 libR.dylib                          0x000000010009d817 Rf_eval + 679
>        176 libR.dylib                          0x000000010009db65 Rf_eval + 1525
>        177 libR.dylib                          0x000000010009dfbc Rf_evalList + 92
>        178 libR.dylib                          0x000000010009dac7 Rf_eval + 1367
>        179 libR.dylib                          0x00000001000a34c5 do_if + 53
>        180 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        181 libR.dylib                          0x00000001000a2724 do_begin + 308
>        182 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        183 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        184 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        185 libR.dylib                          0x00000001000a2724 do_begin + 308
>        186 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        187 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        188 libR.dylib                          0x00000001000a2724 do_begin + 308
>        189 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        190 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        191 libR.dylib                          0x00000001000a2724 do_begin + 308
>        192 libR.dylib                          0x000000010009da1c Rf_eval + 1196
>        193 libR.dylib                          0x00000001000a0364 Rf_applyClosure + 724
>        194 libR.dylib                          0x000000010009d932 Rf_eval + 962
>        195 libR.dylib                          0x00000001000ce0b8 Rf_ReplIteration + 504
>        196 libR.dylib                          0x00000001000ce3b1 R_ReplConsole + 161
>        197 libR.dylib                          0x00000001000ce8c0 run_Rmainloop + 80
>        198 R                                   0x0000000100000eeb main + 27
>        199 R                                   0x0000000100000e74 start + 52
> )
> terminate called after throwing an instance of 'NSException'
> Abort trap
> 
> 
> --please do not edit the information below--
> 
> R Version:
> platform = i386-apple-darwin9.8.0
> arch = i386
> os = darwin9.8.0
> system = i386, darwin9.8.0
> status =
> major = 2
> minor = 11.1
> year = 2010
> month = 05
> day = 31
> svn rev = 52157
> language = R
> version.string = R version 2.11.1 (2010-05-31)
> 
> Locale:
> fr_CH.UTF-8/en_US.UTF-8/C/C/fr_CH.UTF-8/fr_CH.UTF-8
> 
> Search Path:
> .GlobalEnv, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list