Hi, In my setup this crash occurs only if R scripts are opened from the Finder, not if they are opened via Cmd-O from within the MacGui. So there is a "work-around".
Below I attach a protocol about how I can produce this crash, an excerpt from the latest R installation log , and info about my setup. I have had this note sitting around for some time because I was not sure whether it applies only to my own setup and because I can avoid it. I reproduced it today with: - R-GUI-4081-2.4-Deployment - R version 2.4.1 Patched (2007-01-16 r40507) Please let me know if you need additional information. Thanks for all the good work on the MacGUI. Best Reinhold +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Note: Crashes occur if R scripts are opened from Finder; crashes do NOT occur if R scripts are opened with Cmd-O from within R-GUI +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Case 1: Start R from GUI Open first R script with click at file symbol in Finder Open second R script with click at file symbol in Finder Copy a line in one R script Paste this line in the other R script leads to the following R crash and message in R console: *** caught bus error *** address 0x20, cause 'non-existent physical address' Possible actions: 1: abort (with core dump) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace > Selection: Or in another case: *** caught segfault *** address 0xa1b1c1f3, cause 'memory not mapped' Possible actions: 1: abort (with core dump) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace > Selection: Case 2: Marking several lines in a script Cutting the segment leads to the following message in the R Console: *** caught bus error *** address 0x120, cause 'non-existent physical address' Possible actions: 1: abort (with core dump) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspace 2006-11-15 23:56:13.982 R[6674] -[NSBigMutableString characterAtIndex:] called with out-of-bounds index. For apps linked on Tiger this will raise an exception. For earlier apps it will produce this one-time warning and continue with existing behavior (which is undefined). 2006-11-15 23:56:13.983 R[6674] Exception raised during posting of notification. Ignored. exception: *** -[NSBigMutableString characterAtIndex:]: Range or index out of bounds +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ EXCERPT FROM R-INSTALLATION PROTOCOL (17-01-2007) Source directory: . Installation directory: /Library/Frameworks C compiler: /usr/local/gcc4.0/bin/gcc-4.0 - std=gnu99 -D__NO_MATH_INLINES -g -O2 Fortran 77 compiler: /usr/local/gcc4.0/bin/gfortran-4.0 -g -O2 C++ compiler: /usr/local/gcc4.0/bin/g++-4.0 -g -O2 Fortran 90/95 compiler: gfortran -g -O2 Interfaces supported: X11, aqua, tcltk External libraries: readline Additional capabilities: iconv, MBCS, NLS Options enabled: framework, shared BLAS, R profiling +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Info about my setup: R-GUI-4081-2.4-Deployment >sessionInfo() R version 2.4.1 Patched (2007-01-16 r40507) i386-apple-darwin8.8.1 locale: C attached base packages: [1] "stats" "graphics" "grDevices" "utils" "datasets" "methods" "base" ---- Reinhold Kliegl, Dept. of Psychology, University of Potsdam, Karl-Liebknecht-Strasse 24-25, 14476 Potsdam, Germany phone: +493319772868, fax: +493319772793 http://www.psych.uni-potsdam.de/people/kliegl/ [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
