I installed Julia 1.6 on Windows a few days ago, and had been using the Plots package with no problems (GR backend only). Now, every time I plot, I get
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
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
...
Only things I can think of between then and now are: installing other packages (DifferentialEquations, SatelliteToolbox, SpecialMatrices, Convex, SCS, ECOS), updating my VS-Code Julia extension, and Windows OS updating.
Oddly, if I ran Julia with a pre-compiled image of the Plots library, then this issue would not occur.
Now, I’ve uninstalled Julia and deleted everything from the .julia folder to start with a clean slate. After running only three lines (] add Plots
, using Plots
, plot(1:3,1:3)
) on the clean Julia install, the error still occurs. Also, the pre-compiled image no longer works. Any ideas what’s wrong or how to fix it?