Re: [R-SIG-Mac] Crash on pasting large amounts of text.
Hi Hans, On May 3, 2012, at 2:35 PM, Hans-Jörg Bibiko wrote: > could you please disable in R's preference > Editor > "Show line numbers" and > then try it again. Does R.app crash? > > It seems that this is an issue of wrapping text in conjunction with line > numbering. I turned off the line numbers and still get the crash. Demitri ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
Hi Demitri, could you please disable in R's preference > Editor > "Show line numbers" and then try it again. Does R.app crash? It seems that this is an issue of wrapping text in conjunction with line numbering. Cheers, --Hans ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 3, 2012, at 11:55 AM, Demitri Muna wrote: > Hi Simon, > > On May 3, 2012, at 9:45 AM, Simon Urbanek wrote: > >> That said, I cannot reproduce your problem. I tried copy/paste from >> TextEdit, I tried copy/paste from the R editor, I tried from >> the R editor and I tried sourcing the file and all of those work just fine. >> Can you elaborate on exactly how you reproduce the crash and what OS X >> version you have? > > Here are the steps. I just updated my R installation yesterday as well, so I > don't have anything beyond the standard packages installed. > > - Open the data data file (e.g. BBEdit) > - Select all, copy > - Open R64 > - Open a new file (command-N) > - Paste > Ah, ok, sorry, I misunderstood what you were doing - I thought you were pasting it to R. The issue seems to be triggered by syntax highlighting - the GUI it trying to assign the proper colors to all the text you are pasting and something bombs there - I can reproduce it - we'll have a look, thanks. Simon > The program will either crash or give me the SBOD with all of my CPUs running > at 100% (the latter is new - it didn't happen yesterday). (I've seen programs > do this, and I have never figured out what kind of coding error can lead to > it!) > > I'm on a Mac Pro, OS X 10.7.3. > > I'm attaching the crash logs below. Let me know if I can provide any more > information. > > Cheers, > Demitri > > > > > > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 3, 2012, at 8:34 AM, Simon Urbanek wrote: On May 2, 2012, at 11:24 PM, David Winsemius wrote: On May 2, 2012, at 6:11 PM, Demitri Muna wrote: Hi, On May 2, 2012, at 5:57 PM, David Winsemius wrote: I agree that this should not crash R although your didn't really describe what that means. It's the big "report this to Apple" crash. The whole app goes down. 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. These seem to have been introduced by the mailer - they don't exist in the original data. I wasn't sure if I could send an attachment, but I'll try that now. I'm the only one who got that zipped file and I'm not planning on opening a potentially executable file on this machine. I think you are misunderstanding what is a zip file ... So I'm now wondering if there are two components to my misunderstanding: 1) My experience with Windows is that zip files are sometimes delivery vehicles for executable files and htat the OS can be configure to auto- execute such files on decompression without further intervention. I worried that MacOS might have the same potential. 2) Am I also then misunderstanding what sorts of files the mailserver accepts and passes on to the list subscribers? -- David Winsemius, MD West Hartford, CT ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 2, 2012, at 11:35 PM, Demitri Muna wrote: > > On May 2, 2012, at 11:24 PM, David Winsemius wrote: > >> I'm the only one who got that zipped file and I'm not planning on opening a >> potentially executable file on this machine. > > The attachment arrived on the resent message from the r-sig-mac list for me. > If you have any suggestions on how I can deliver this otherwise, I'm open. > It's ok - some Windows people are scared of ZIP files because of the buggy tools that Windows uses to handle them can get tricked to spreading viruses. Fortunately, that is no concern for Mac user or anyone with some knowledge. ZIPs have somewhat inefficient compression - in your case you could simply gzip the file. That said, I cannot reproduce your problem. I tried copy/paste from TextEdit, I tried copy/paste from the R editor, I tried from the R editor and I tried sourcing the file and all of those work just fine. Can you elaborate on exactly how you reproduce the crash and what OS X version you have? Thanks, Simon ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 2, 2012, at 11:24 PM, David Winsemius wrote: > > On May 2, 2012, at 6:11 PM, Demitri Muna wrote: > >> Hi, >> >> On May 2, 2012, at 5:57 PM, David Winsemius wrote: >> >>> I agree that this should not crash R although your didn't really describe >>> what that means. >> >> It's the big "report this to Apple" crash. The whole app goes down. >> >>> 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. >> >> These seem to have been introduced by the mailer - they don't exist in the >> original data. I wasn't sure if I could send an attachment, but I'll try >> that now. > > I'm the only one who got that zipped file and I'm not planning on opening a > potentially executable file on this machine. I think you are misunderstanding what is a zip file ... ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 2, 2012, at 11:24 PM, David Winsemius wrote: > I'm the only one who got that zipped file and I'm not planning on opening a > potentially executable file on this machine. The attachment arrived on the resent message from the r-sig-mac list for me. If you have any suggestions on how I can deliver this otherwise, I'm open. Demitri ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
On May 2, 2012, at 6:11 PM, Demitri Muna wrote: Hi, On May 2, 2012, at 5:57 PM, David Winsemius wrote: I agree that this should not crash R although your didn't really describe what that means. It's the big "report this to Apple" crash. The whole app goes down. 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. These seem to have been introduced by the mailer - they don't exist in the original data. I wasn't sure if I could send an attachment, but I'll try that now. I'm the only one who got that zipped file and I'm not planning on opening a potentially executable file on this machine. David Winsemius, MD West Hartford, CT ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Crash on pasting large amounts of text.
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.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000! ,0.000,0.000,0.000,0.000,0.000,0.000,0.000 ,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000,0.000 ) 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.727132417410,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 ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac