[R-SIG-Mac] R-gui slow since last update

Brandon Hurr br@ndon@hurr @end|ng |rom gm@||@com
Thu May 6 01:21:59 CEST 2021


Yan

It’s my understanding that it is important to use the debug version as it
throws a lot more information for Simon et al into your logs to help solve
the issue.

Brandon



On Wed, May 5, 2021 at 18:56 ALPEROVYCH Yan <ALPEROVYCH using em-lyon.com> wrote:

> Simon,
>
> I sampled the process of my test (the slowdown). I was able to do it
> without downloading the "Debug" version. There are two files attached.
> 1. The first one (run at 8:58:14 am) is the replication of my test (the
> slowdown) using the external editor
> 2. The second (run at 9:05:09 am) is the replication of my test using the
> in-built editor
>
> While doing the second sampling R also popped the red warnings (if that is
> useful).
>
> I am also answering Peter’s question: my version of Big Sur is 11.3.
>
> Let me know what else I can do to help.
> Yan
>
>
> On May 4, 2021, at 5:53 AM, Simon Urbanek <Simon.Urbanek using r-project.org>
> wrote:
>
> Yan,
>
> thanks for the reports. I cannot reproduce the slow-down, either (Mac mini
> M1, Big Sur 11.3).
>
> However, you can help by sampling the R process and sending the sample to
> me. You can do that as follows:
>
> 1) open R.app
> 2) open Terminal (under Applications -> Utilities)
> 3) in Terminal type:
>
> sample R 30
>
> 4) switch to R and perform your test. You have 30 seconds (that's the
> number above which specifies how long the sampler will run) to do it. In
> Terminal it will show the sampler output -in the beginning it will also
> tell you the location of the text file - it's typically /tmp/R_*.sample.txt
> - send that file to me.
>
> It may not allow you to debug the released version of the GUI, so you may
> need to download the "Debug" version of the GUI (scroll down) from
>
> https://mac.R-project.org <https://mac.r-project.org/>
>
> You should pick the
> Mac OS X GUI rev.XXX for R 4.0.x high-sierra-Release.dmg
> download if you have R 4.0.x. You don't need to install the GUI, you can
> run it directly from the image so it won't affect your installed version.
>
> Thanks,
> Simon
>
> PS: you may need to install Xcode command line tools if you didn't already:
> sudo xcode-select --install
>
>
>
> On 4/05/2021, at 3:06 AM, ALPEROVYCH Yan <ALPEROVYCH using em-lyon.com> wrote:
>
> Dear Peter, Simon,
>
> Since I am not that of an expert in programming, is there any way to trace
> what happens 'under the hood' of the gui to see what exactly slows down the
> rendering of output on my end?
>
> On the warnings, some more came today. How that happened and the text that
> came out are below.
>
> Thank you for your help,
> Yan
>
> I looked at the Preferences -> Editor (once the window popped up, I
> clicked on the Editor with a mouse and the error came).
> ...
> 2021-05-03 16:50:36.184 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd104c17b0>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
> 2021-05-03 16:50:36.186 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd09dde780>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
>>
> In another instance, hitting cmd-n (new native editor window) gave me this:
> ...
> 2021-05-03 16:59:03.469 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd1075a9b0>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
> 2021-05-03 16:59:03.471 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd1075c140>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
> 2021-05-03 16:59:22.225 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd1270c2e0>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
> 2021-05-03 16:59:22.226 R[73442:2450140] Warning: Expected min height of
> view: (<NSPopoverTouchBarItemButton: 0x7ffd1270d070>) to be less than or
> equal to 30 but got a height of 32.000000. This error will be logged once
> per view in violation.
>>
> When in native editor, I hit cmd-w (popping the save file request) gave me
> this:
> ...
> 2021-05-03 16:59:24.024 R[73442:2450140] Warning: Expected min height of
> view: (<NSButton: 0x7ffd1271c7a0>) to be less than or equal to 30 but got a
> height of 32.000000. This error will be logged once per view in violation.
> ...
>
>
> On May 2, 2021, at 11:03 AM, peter dalgaard <pdalgd using gmail.com<
> mailto:pdalgd using gmail.com <pdalgd using gmail.com>>> wrote:
>
> 2019 MB Air here, Big Sur, 4.0.5 off CRAN. I don't see the issue either.
> (I do see the "...warmup" thing, though.)
>
> - Peter D.
>
> On 1 May 2021, at 21:01 , ALPEROVYCH Yan <ALPEROVYCH using em-lyon.com<
> mailto:ALPEROVYCH using em-lyon.com <ALPEROVYCH using em-lyon.com>>> wrote:
>
> Thank you Simon,
>
> Regarding the "NS..." warnings, the following came just now when I closed
> the plot window (after a ggplot) with a mouse.
>
> 2021-05-01 20:53:35.117 R[2344:57535] +[NSSavePanel _warmUp] attempted
> warmup
>
> Since they are usually random, I will log them for some time, and report
> back.
>
> Yan
>
> On May 1, 2021, at 7:00 AM, Simon Urbanek <simon.urbanek using R-project.org<
> mailto:simon.urbanek using R-project.org <simon.urbanek using R-project.org>><
> mailto:simon.urbanek using R-project.org <simon.urbanek using R-project.org>>> wrote:
>
> Yan,
>
> Thank you for the report, comments inline.
>
>
> On May 1, 2021, at 03:56, ALPEROVYCH Yan <ALPEROVYCH using em-lyon.com<
> mailto:ALPEROVYCH using em-lyon.com <ALPEROVYCH using em-lyon.com>><
> mailto:ALPEROVYCH using em-lyon.com <ALPEROVYCH using em-lyon.com>>> wrote:
>
> Dear all,
>
> Beyond the occasional red warnings about the 'NSPop….' buttons, warmups,
> etc. and similar issues reported elsewhere here I’ve noted the slowdown of
> R console with more and more output. Here is what I do to reliably
> reproduced it on my machine - MacBook Pro 2017 with Touch Bar
> (sessionInfo() is below).
>
>
> There are no known issues in R 4.0.5 so if you see any please report them.
>
>
> 1. Start fresh R-gui
>
> 2. Paste the following text in the editor. Note that lines are commented,
> this is enough to show the problem. It obvisouly gets worse if R has to
> evaluate.
>
> # m[[ 1]] <- .f(update(fml, . ~ . -x1 + x2))
> # m[[ 2]] <- .f(update(fml, . ~ . -x1 + x2 + x3))
> # m[[ 3]] <- .f(update(fml, . ~ . -x1 + x2 + x4))
> # m[[ 4]] <- .f(update(fml, . ~ . -x1 + x2 + x5))
> # m[[ 5]] <- .f(update(fml, . ~ . -x1 + x2 + x6))
> # m[[ 6]] <- .f(update(fml, . ~ . -x1 + x2 + x7))
> # m[[ 7]] <- .f(update(fml, . ~ . -x1 + x2 + x8))
> # m[[ 8]] <- .f(update(fml, . ~ . -x1 + x2 + x9))
> # m[[ 9]] <- .f(update(fml, . ~ . -x1 + x2 + x10))
> # m[[10]] <- .f(update(fml, . ~ . -x1 + x2 + x11))
>
> 3. Execute as block once - the output appears almost immediately. Execute
> the second time - the slight delay is already noticeable. Continue to 3-4
> time and the delay between the Cmd+Enter and the output is now up to 3-4
> seconds and occasional beachball…
>
>
> Thanks, I only have Catalina here and it does not exhibit that behaviour,
> the execution is always immediate. I'll try on the M1 Big Sur machine on
> Monday.
>
> Thanks,
> Simon
>
>
>
> Any help is greatly appreciated.
> Yan
>
> Here is the sessionInfo()
>
> ******
> R version 4.0.5 (2021-03-31)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Big Sur 10.16
>
> Matrix products: default
> BLAS:
>   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
> LAPACK:
> /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
>
> 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] stats     graphics  grDevices utils     datasets  methods   base
>
> loaded via a namespace (and not attached):
> [1] compiler_4.0.5
>
>
> Ce message électronique et tous les fichiers attachés qu'il contient sont
> confidentiels et destinés exclusivement à l'usage de la personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci de le
> retourner à son émetteur. Les idées et opinions présentées dans ce message
> sont celles de son auteur, et ne représentent pas nécessairement celles de
> l’institution ou les entités affiliées dont dépend l’auteur. La
> publication, l'usage, la distribution, l'impression ou la copie non
> autorisée de ce message et des attachements qu'il contient sont strictement
> interdits ». “This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please return it to
> the sender. The ideas and views expressed in this email are solely those of
> its author, and do not necessarily represent the views of the institution
> or company the author is dependent from. Unauthorized publication, use,
> distribution, printing or copying of this e-mail or any attached files is
> strictly forbidden.
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org<mailto:R-SIG-Mac using r-project.org
> <R-SIG-Mac using r-project.org>><mailto:R-SIG-Mac using r-project.org
> <R-SIG-Mac using r-project.org>>
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> Ce message électronique et tous les fichiers attachés qu'il contient sont
> confidentiels et destinés exclusivement à l'usage de la personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci de le
> retourner à son émetteur. Les idées et opinions présentées dans ce message
> sont celles de son auteur, et ne représentent pas nécessairement celles de
> l’institution ou les entités affiliées dont dépend l’auteur. La
> publication, l'usage, la distribution, l'impression ou la copie non
> autorisée de ce message et des attachements qu'il contient sont strictement
> interdits ». “This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please return it to
> the sender. The ideas and views expressed in this email are solely those of
> its author, and do not necessarily represent the views of the institution
> or company the author is dependent from. Unauthorized publication, use,
> distribution, printing or copying of this e-mail or any attached files is
> strictly forbidden.
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> --
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> <https://www.google.com/maps/search/Solbjerg+Plads+3,+2000+Frederiksberg,+Denmark?entry=gmail&source=g>
> Phone: (+45)38153501
> Office: A 4.23
> Email: pd.mes using cbs.dk<mailto:pd.mes using cbs.dk <pd.mes using cbs.dk>>  Priv:
> PDalgd using gmail.com<mailto:PDalgd using gmail.com <PDalgd using gmail.com>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org<mailto:R-SIG-Mac using r-project.org
> <R-SIG-Mac using r-project.org>>
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> Ce message électronique et tous les fichiers attachés qu'il contient sont
> confidentiels et destinés exclusivement à l'usage de la personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci de le
> retourner à son émetteur. Les idées et opinions présentées dans ce message
> sont celles de son auteur, et ne représentent pas nécessairement celles de
> l’institution ou les entités affiliées dont dépend l’auteur. La
> publication, l'usage, la distribution, l'impression ou la copie non
> autorisée de ce message et des attachements qu'il contient sont strictement
> interdits ». “This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please return it to
> the sender. The ideas and views expressed in this email are solely those of
> its author, and do not necessarily represent the views of the institution
> or company the author is dependent from. Unauthorized publication, use,
> distribution, printing or copying of this e-mail or any attached files is
> strictly forbidden.
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
> Ce message électronique et tous les fichiers attachés qu'il contient sont
> confidentiels et destinés exclusivement à l'usage de la personne à laquelle
> ils sont adressés. Si vous avez reçu ce message par erreur, merci de le
> retourner à son émetteur. Les idées et opinions présentées dans ce message
> sont celles de son auteur, et ne représentent pas nécessairement celles de
> l’institution ou les entités affiliées dont dépend l’auteur. La
> publication, l'usage, la distribution, l'impression ou la copie non
> autorisée de ce message et des attachements qu'il contient sont strictement
> interdits ». “This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please return it to
> the sender. The ideas and views expressed in this email are solely those of
> its author, and do not necessarily represent the views of the institution
> or company the author is dependent from. Unauthorized publication, use,
> distribution, printing or copying of this e-mail or any attached files is
> strictly forbidden.
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list