Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Mac) Plots being very slow after upgrade to Catalina #5531

Closed
jkidd20 opened this issue Oct 9, 2019 · 11 comments
Closed

(Mac) Plots being very slow after upgrade to Catalina #5531

jkidd20 opened this issue Oct 9, 2019 · 11 comments
Labels
bug

Comments

@jkidd20
Copy link

@jkidd20 jkidd20 commented Oct 9, 2019

I just upgraded to Catalina this morning, and I'm finding that reviewing plots has become unbearably slow. If I plot more than one plot, and then try to browse through them (or even clear them), it can take over a minute to respond, meanwhile nothing else works. I do have a high number of points on some of these plots, but prior to today, the time to wait was a second at most for the same density of plots.

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 9, 2019

Can you provide a reproducible example?

@jkidd20

This comment has been minimized.

Copy link
Author

@jkidd20 jkidd20 commented Oct 9, 2019

The code below runs on my machine in 0.65 and 1.60 second segments, but switching back to the first graph from the second took approximately 20 seconds (counting in my head), and took approx. 75 seconds going from the first back to the second.

start = Sys.time()
plot(x = 0, y = 0, xlim = c(-1, 1), ylim = c(-1, 1), cex = 1e-16)
for(i in 1:10000){
  points(x = runif(1, -1, 1), y = runif(1, -1, 1), cex = .3, pch = 15)
}
Sys.time() - start

start = Sys.time()
plot(x = 0, y = 0, xlim = c(-1, 1), ylim = c(-1, 1), cex = 1e-16)
for(i in 1:20000){
  points(x = runif(1, -1, 1), y = runif(1, -1, 1), cex = .3, pch = 15)
}
Sys.time() - start

MacBook Pro (15", Mid 2018)
2.6 GHz 6-Core Intel Core i7
16 GM RAM

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 9, 2019

I can reproduce the slowness on my Windows VM as well -- it appears to be independent of the Catalina upgrade.

kevinushey added a commit that referenced this issue Oct 9, 2019
improve performance of plot replay (#5531)
@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 9, 2019

We've merged a fix for this that should become part of the next daily builds.

@ronblum ronblum added the bug label Oct 10, 2019
@jkidd20

This comment has been minimized.

Copy link
Author

@jkidd20 jkidd20 commented Oct 10, 2019

Tried the new daily this morning, and attempting to go back to a previous plot caused what I am assuming were error and reporting windows to pop up, but there were so many it crashed my computer.

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 10, 2019

I wasn't able to reproduce. What version of R are you using?

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 10, 2019

It would also be helpful to see some of the error windows you saw.

@jkidd20

This comment has been minimized.

Copy link
Author

@jkidd20 jkidd20 commented Oct 10, 2019

I can confirm using the example above that I did not get any error message. However, the graphs corresponding to my research that I have been playing with (which caused the initial post) did seem to cause the crash when going between both of them. I can't share the program for those, but they do have multiple colors as well as points plotted on top of other points (if that would make a difference). Additionally I've added the error messages.

This was with build 3.497.
Screen Shot 2019-10-10 at 12 50 33 PM
Screen Shot 2019-10-10 at 12 50 45 PM
Screen Shot 2019-10-10 at 12 51 13 PM

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 11, 2019

If you're able to provide a reproducible example, that would be very helpful.

@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Oct 11, 2019

It may help to know if you're using any add-on R packages to produce the plots, or just built-in base graphics facilities.

@jmcphers

This comment has been minimized.

Copy link
Member

@jmcphers jmcphers commented Dec 6, 2019

Haven't heard back in a couple of months, so closing. @jkidd20 please feel free to reopen if you have a reproducible example.

@jmcphers jmcphers closed this Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.