[R-SIG-Mac] Crash on pasting large amounts of text.

David Winsemius dwinsemius at comcast.net
Wed May 2 23:57:07 CEST 2012

On May 2, 2012, at 4:59 PM, Demitri Muna wrote:

> Hi,
> I'm getting a repeatable crash with R64:
> R version 2.15.0 (2012-03-30)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
> [R.app GUI 1.51 (6148) x86_64-apple-darwin9.8.0]
> I have two (admittedly long) lines of values where I am creating two  
> arrays. When I have them both in my clipboard and paste them into  
> the console, things work without a problem. If I open a new text  
> document in R and paste the lines, R crashes. The precision in the  
> data is ridiculous, yes (they are output from another program as  
> double precision), but the program probably shouldn't crash in any  
> event. I don't know if a buffer is being exceeded or if it's another  
> problem, but since it's trivially repeatable I thought I'd report it.
> To reproduce, copy the entire text block below the divider at the  
> bottom of this email, create a new text document, and paste.
> Cheers,
> Demitri
> ---
> x =
> 2.7413614,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000!
> 0000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.000
> 0000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000,0.0000000 
> )

I agree that this should not crash R although your didn't really  
describe what that means. I did notice that an exclamation point was  
in there near the end, because my editor break long lines at "!" and  
that is not a valid numeric content as far as I know.

When I follow your suggestion I get an error message showing even more  
than one exclamation point:

 > x =  
Error: unexpected '!' in  

I do have an older version:
 >  sessionInfo()
R version 2.14.1 Patched (2012-01-02 r58038)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] lattice_0.20-0 gridExtra_0.9

loaded via a namespace (and not attached):
[1] tools_2.14.1

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

More information about the R-SIG-Mac mailing list