[Rd] Segfault with too many menu items on Rgui

From: James MacDonald <jmacdon_at_med.umich.edu>
Date: Fri 31 Mar 2006 - 20:23:00 GMT

Hi all,

In the CHANGES file for R-2.3.0alpha, there is the following statement:

winMenuAdd() now has no limits on the number of menus or items, and names are now limited to 500 (not 50) bytes.

However, I can reproducibly get a segfault using this (admittedly silly) example:

for( i in 1:5) winMenuAdd(paste("Test", letters[i], sep="")) for(i in 1:5) for(j in 1:24) winMenuAddItem(paste("Test", letters[i], sep=""), as.character(j), paste(rep(letters[j], 4), collapse=""))

This is probably almost never a problem, but many Bioconductor packages have vignettes that are added to a 'Vignettes' menu item. If you load enough of these packages you will get a segfault.

> version

platform       i386-pc-mingw32                        
arch           i386                                   
os             mingw32                                
system         i386, mingw32                          
status         alpha                                  
major          2                                      
minor          3.0                                    
year           2006                                   
month          03                                     
day            29                                     
svn rev        37607                                  
language       R                                      
version.string Version 2.3.0 alpha (2006-03-29 r37607)



James W. MacDonald, M.S.
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109

Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Apr 01 06:46:51 2006

This archive was generated by hypermail 2.1.8 : Mon 03 Apr 2006 - 12:16:50 GMT