[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 =
snipped
> 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 =  
c(2300.2654319061871320,2300.7951485790772495,2301.3249872377800784,2301.8549479103917292,2302.3850306250055837,2302.9152354097309399,2303.4455622926739125,2303.9760113019560777,2304.5065824656971927,2305.0372758120324761,2305.5680913690957823,2306.0990291650282416,2306.6300892279846266,2307.1612715861160723,2307.6925762675905389,2308.2240033005723490,2308.7555527132417410,2309.2872245337762251,2309.8190187903692276,2310.3509355112119010,2310.8829747245094950,2311.4151364584663497,2311.9474207413013573,2312.4798276012311362,2313.0123570664882209,2313.5450091653019626,2314.0777839259180837,2314.6106813765782135,2315.1437015455412620,2315.6768444610625011,2316.2101101514140282,2316.7434986448656673,2317.2770099696954276,2317.8106441541945060,2318.3444012266500067,2318.8782812153663144,2319.4122841486450852,2319.9464100548025272,2320.4806589621530293,2321.0150308990268968,2321.5495258937507970,2322.0841439746677679,2322.6188851701185740,2323.1537495084589864,2323.6887370180!
Error: unexpected '!' in  
"7.8106441541945060,2318.3444012266500067,2318.8782812153663144,2319.4122841486450852,2319.9464100548025272,2320.4806589621530293,2321.0150308990268968,2321.5495258937507970,2322.08414397466776 
"

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)

locale:
[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