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

ALPEROVYCH Yan ALPEROVYCH @end|ng |rom em-|yon@com
Mon May 3 17:06:04 CEST 2021


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>> 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>> 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><mailto: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><mailto: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><mailto: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
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes using cbs.dk<mailto:pd.mes using cbs.dk>  Priv: PDalgd using gmail.com<mailto:PDalgd using gmail.com>

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac using r-project.org<mailto: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]]



More information about the R-SIG-Mac mailing list