Does long (~250 ms) network latency break plotting over ssh?

I am trying out AWS and came across an issue with plots. They worked fine when the server was in the same country, but when I chose a cheaper one in a different region began getting this:

connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
[...]

It doesn’t occur all the time, but even for simple scatter(1:10, 1:10) plots it can still happen. However, if at the beginning of the session I get a simple plot to work, then my more complicated later plots are also fine.

This is likely the same issue (got no response):

I don’t think I’m answering your question, but I’ve been using Julia through the VSCode remote server and it has been a great experience even with a slow internet connection (plotting included).

1 Like

Not sure if VSCode would matter, but I am not using it. This is typing/pasting code into the REPL, then the plot pops up in a GKS QtTerm window.

Also, this is using the StatsPlots package. Both devices are running linux. Maybe it is something else like the AWS image got corrupted when copied to the new region, I haven’t tried installing julia from scratch yet.

But some kind of latency issue seems plausible.

Maybe it does help, I don’t know how is the machinery for displaying a plot, but it does not depend on communicating a Qt window through the network (which by the way never works in these slow connections I mentioned).

1 Like