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

GKS not in proper state #508

Open
Vilin97 opened this issue Feb 12, 2023 · 11 comments
Open

GKS not in proper state #508

Vilin97 opened this issue Feb 12, 2023 · 11 comments

Comments

@Vilin97
Copy link

Vilin97 commented Feb 12, 2023

I understand that there are already some issues open (and more issues closed) about GKS not in proper state but the error still persists on my Windows 11 machine. The screenshot shows an error that appears when I call plot(1:5). After I close the window with this error, I get a lot of lines of GKS not in proper state.

Thank you for a great package and looking into this!

image

julia> ENV["JULIA_GR_PROVIDER"] = "GR"
"GR"

(@v1.8) pkg> build GR

julia> using GR

julia> GR.gr_provider
ERROR: UndefVarError: gr_provider not defined

julia> plot(1:5)

connect: No error
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 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
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
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
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
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
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
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
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
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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
@Vilin97
Copy link
Author

Vilin97 commented Feb 12, 2023

Also, when Plots.jl is compiled, the same gksqt error window is displayed, sometimes multiple times.
image

@Vilin97
Copy link
Author

Vilin97 commented Feb 12, 2023

Saving the plot without displaying it fails as well.

julia> gr()
Plots.GRBackend()
julia> p=plot(1:5);
julia> savefig(p,"test")
connect: No error
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
"C:\\Users\\Math User\\test.png"            

@jheinen
Copy link
Owner

jheinen commented Feb 12, 2023

Those problems should be fixed with recent versions. Could you please try to ] add GR in a fresh environment?

@Vilin97
Copy link
Author

Vilin97 commented Feb 13, 2023

I reinstalled julia, added GR and the same exact error appeared.

(@v1.8) pkg> status
Status `C:\Users\Math User\.julia\environments\v1.8\Project.toml`
  [28b8d3ca] GR v0.71.6
  [4b11ee91] Gaston v1.1.0
  [a03496cd] PlotlyBase v0.8.19
  [f2990250] PlotlyKaleido v1.0.0
  [91a5bcdd] Plots v1.38.5
  [d330b81b] PyPlot v2.11.0

julia> using GR

julia> plot(1:5)
connect: No error
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 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
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
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
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
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
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
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
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
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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

@jheinen
Copy link
Owner

jheinen commented Feb 13, 2023

Did you remove C:\Users\Math User\.julia before? Could please try to debug the installation process:

C:\> set JULIA_DEBUG="GR"
C:\> julia
...
(@v1.8) pkg> add GR

@Vilin97
Copy link
Author

Vilin97 commented Feb 13, 2023

I did delete the .julia folder completely before reinstalling Julia.
I did

C:\Users\Math User> set JULIA_DEBUG="GR"
C:\Users\Math User> julia
(@v1.8) pkg> add GR
julia> exit()

but I don't know where to find the debug log output. There is no file in the C:\Users\Math User folder.

Also, I just discovered that despite the errors doing

julia> gr()
Plots.GRBackend()
julia> p=plot(1:5);
julia> savefig(p,"test")

does save the correct plot! This is good to know because it means I can keep using GR and just ignore the error messages. But it would be nice to be able to see the output immediately without having to save and then delete the plot.

Thank you for looking into this!

@jheinen
Copy link
Owner

jheinen commented Feb 14, 2023

You have to set:

C:\> set JULIA_DEBUG=GR

I was not aware of that.

@Vilin97
Copy link
Author

Vilin97 commented Feb 15, 2023

Once again, I appreciate your time and effort in debugging this issue!

I deleted the .julia folder and Julia itself, reinstalled Julia, set the debug environment and added GR.

The image shows a pop-up error that appears when I call plot(1:5):

image

This is the REPL output:

(@v1.8) pkg> add GR
...
julia> using GR

julia> plot(1:5)
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\db3d60d39813bf806d1b4a8032e3a2f892c75738\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\a5b7c195243758d88c64cd8547e527fbace3877b\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\e5872943f1078a6397a4f4d0f760db959ec50630\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\AppData\Local\Programs\Julia-1.8.5\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\431cad9bf95e817b5fc813666e353ae36b2202c0\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\f9f799e6ae3fe7f244bb55052db7ff1cea876c27\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\4f67e82ee394e74ca63b7dc589dcc9218c12b20a\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\6a5456c156251deff41ae40ac8dfbb3d8c808ffe\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\72037f1415327f12277eed0521c861517630a0ba\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\5af028f5ee6fc5d6923b4769eca4bc199914e6bd\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\41eb25ea50f277f03154d52354602687fb1abc84\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\c916a560fa109a4db3d6938a8ab1a6a8b4a09731\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\3628616b5a5a8fd8628079ae4fb0d8948fdb37bc\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\3aff78028a0bb2ad40ebc3ae7e465a52dcbe2730\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\38d4f07d7bebeb1d35473280d1ef56f7d8e6991d\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\ee9d999d28081333cf8ec10830fd77b75359226b\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\2ae55b726ee1f4063216b19a1ffb59d3d5b0a6eb\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\017f69ccc5ddfc0405e5bf8326a572300498e06c\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\1b573c0aaf4a3a73f296a61c2cacbee17ac0d4e3\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\7d57f5f863fd09f31bbff6d08d53bfc07f49c3e6\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\6f5e7c4e3249d2073c64e6beaa3abcd7ae4fa9bc\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\0c393ed4faa8cdf04f992ff605abaed1c1172f69\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\160ce27d1af09edffbb7d9f1833f6d3bdefad491\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\c6e48d3563556547ad4cc0021c2cffa066a079df\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\da2e0ac84abbe712490f8ee73aca3d512f1eaaab\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\0235fabbecfa4e38a3c8e87491b9d4f3e7fe9848\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\5b9eb98a95e718b9ddc16d01fd70b19736b13e0b\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\e2bc28a38e71d07d41a27f8d4b3132c5d1b5a22d\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\09afce8db647ca1b603103c82397809ce7189340\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\4a2cc4b6aef321d12f704be234ed46372e67d1a2\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\2e9a29903fddf79371cd5f82327f70ada670a234\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\17025344af7bdfe8a7ac4e8887f0953f1dc50376\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\01b969d96551292e78f0acfa204f120b09f4e7b4\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\14c036187f02f2def7e45b19b27ea5d4a5873e21\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\.julia\artifacts\79a541cd2d6dae437b5de2c90c01f68c2063ccb0\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\AppData\Local\Programs\Julia-1.8.5\bin\..\lib\julia)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\AppData\Local\Programs\Julia-1.8.5\bin\..\lib)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: `windows`: AddDllDirectory(C:\Users\Math User\AppData\Local\Programs\Julia-1.8.5\bin)
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\funcptrs.jl:56
┌ Debug: Artifacts setup
│   ENV["GKSwstype"] = "gksqt"
│   ENV["GKS_QT"] = "set PATH=C:\\Users\\Math User\\.julia\\artifacts\\db3d60d39813bf806d1b4a8032e3a2f892c75738\\bin;C:\\Users\\Math User\\.julia\\artifacts\\a5b7c195243758d88c64cd8547e527fbace3877b\\bin;C:\\Users\\Math User\\.julia\\artifacts\\e5872943f1078a6397a4f4d0f760db959ec50630\\bin;C:\\Users\\Math User\\AppData\\Local\\Programs\\Julia-1.8.5\\bin;C:\\Users\\Math User\\.julia\\artifacts\\431cad9bf95e817b5fc813666e353ae36b2202c0\\bin;C:\\Users\\Math User\\.julia\\artifacts\\f9f799e6ae3fe7f244bb55052db7ff1cea876c27\\bin;C:\\Users\\Math User\\.julia\\artifacts\\4f67e82ee394e74ca63b7dc589dcc9218c12b20a\\bin;C:\\Users\\Math User\\.julia\\artifacts\\6a5456c156251deff" ⋯ 1897 bytes ⋯ "rs\\Math User\\.julia\\artifacts\\17025344af7bdfe8a7ac4e8887f0953f1dc50376\\bin;C:\\Users\\Math User\\.julia\\artifacts\\01b969d96551292e78f0acfa204f120b09f4e7b4\\bin;C:\\Users\\Math User\\.julia\\artifacts\\14c036187f02f2def7e45b19b27ea5d4a5873e21\\bin;C:\\Users\\Math User\\.julia\\artifacts\\79a541cd2d6dae437b5de2c90c01f68c2063ccb0\\bin;C:\\Users\\Math User\\AppData\\Local\\Programs\\Julia-1.8.5\\bin\\..\\lib\\julia;C:\\Users\\Math User\\AppData\\Local\\Programs\\Julia-1.8.5\\bin\\..\\lib;C:\\Users\\Math User\\AppData\\Local\\Programs\\Julia-1.8.5\\bin & \"C:\\Users\\Math User\\.julia\\artifacts\\79a541cd2d6dae437b5de2c90c01f68c2063ccb0\\bin\\gksqt.exe\""
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\GR.jl:333
┌ Debug: Default GKS_ENCODING
│   ENV["GKS_ENCODING"] = "utf8"
└ @ GR C:\Users\Math User\.julia\packages\GR\FtHMQ\src\GR.jl:347
connect: No error
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 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
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
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
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
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
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
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
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
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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 TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
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

In case it is useful, here is the artifact_usage toml file:

[["C:\\Users\\Math User\\.julia\\packages\\Wayland_protocols_jll\\8doWg\\Artifacts.toml"]]
time = 2023-02-14T16:44:59.489Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xcb_util_renderutil_jll\\poxfx\\Artifacts.toml"]]
time = 2023-02-14T16:44:59.491Z
[["C:\\Users\\Math User\\.julia\\packages\\JpegTurbo_jll\\x2k7x\\Artifacts.toml"]]
time = 2023-02-14T16:44:59.940Z
[["C:\\Users\\Math User\\.julia\\packages\\x265_jll\\9auB3\\Artifacts.toml"]]
time = 2023-02-14T16:45:00.407Z
[["C:\\Users\\Math User\\.julia\\packages\\libfdk_aac_jll\\kXZGf\\Artifacts.toml"]]
time = 2023-02-14T16:45:00.897Z
[["C:\\Users\\Math User\\.julia\\packages\\Graphite2_jll\\UCYC8\\Artifacts.toml"]]
time = 2023-02-14T16:45:01.084Z
[["C:\\Users\\Math User\\.julia\\packages\\libass_jll\\SaaQW\\Artifacts.toml"]]
time = 2023-02-14T16:45:01.294Z
[["C:\\Users\\Math User\\.julia\\packages\\Pixman_jll\\DlzfC\\Artifacts.toml"]]
time = 2023-02-14T16:45:01.631Z
[["C:\\Users\\Math User\\.julia\\packages\\Libmount_jll\\rWyXf\\Artifacts.toml"]]
time = 2023-02-14T16:45:01.633Z
[["C:\\Users\\Math User\\.julia\\packages\\XML2_jll\\nyZEZ\\Artifacts.toml"]]
time = 2023-02-14T16:45:02.251Z
[["C:\\Users\\Math User\\.julia\\packages\\GR_jll\\v4za0\\Artifacts.toml"]]
time = 2023-02-14T16:45:04.037Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXext_jll\\2vwNw\\Artifacts.toml"]]
time = 2023-02-14T16:45:04.038Z
[["C:\\Users\\Math User\\.julia\\packages\\LERC_jll\\1D0hs\\Artifacts.toml"]]
time = 2023-02-14T16:45:04.256Z
[["C:\\Users\\Math User\\.julia\\packages\\Gettext_jll\\5wIPp\\Artifacts.toml"]]
time = 2023-02-14T16:45:08.669Z
[["C:\\Users\\Math User\\.julia\\packages\\Wayland_jll\\AzoWl\\Artifacts.toml"]]
time = 2023-02-14T16:45:08.670Z
[["C:\\Users\\Math User\\.julia\\packages\\Zstd_jll\\8Xnjn\\Artifacts.toml"]]
time = 2023-02-14T16:45:09.243Z
[["C:\\Users\\Math User\\.julia\\packages\\Qt5Base_jll\\RCHuc\\Artifacts.toml"]]
time = 2023-02-14T16:45:18.617Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xtrans_jll\\E34UR\\Artifacts.toml"]]
time = 2023-02-14T16:45:18.619Z
[["C:\\Users\\Math User\\.julia\\packages\\Expat_jll\\34w3j\\Artifacts.toml"]]
time = 2023-02-14T16:45:18.920Z
[["C:\\Users\\Math User\\.julia\\packages\\OpenSSL_jll\\tsTDe\\Artifacts.toml"]]
time = 2023-02-14T16:45:20.120Z
[["C:\\Users\\Math User\\.julia\\packages\\Opus_jll\\95MxB\\Artifacts.toml"]]
time = 2023-02-14T16:45:20.486Z
[["C:\\Users\\Math User\\.julia\\packages\\FFMPEG_jll\\OCtN5\\Artifacts.toml"]]
time = 2023-02-14T16:45:22.853Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xcb_util_keysyms_jll\\bpB5I\\Artifacts.toml"]]
time = 2023-02-14T16:45:22.854Z
[["C:\\Users\\Math User\\.julia\\packages\\xkbcommon_jll\\yDZa2\\Artifacts.toml"]]
time = 2023-02-14T16:45:22.855Z
[["C:\\Users\\Math User\\.julia\\packages\\Bzip2_jll\\iOonP\\Artifacts.toml"]]
time = 2023-02-14T16:45:23.251Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xkbcomp_jll\\x2BKy\\Artifacts.toml"]]
time = 2023-02-14T16:45:23.253Z
[["C:\\Users\\Math User\\.julia\\packages\\Libgcrypt_jll\\D1hWQ\\Artifacts.toml"]]
time = 2023-02-14T16:45:23.655Z
[["C:\\Users\\Math User\\.julia\\packages\\HarfBuzz_jll\\zavaV\\Artifacts.toml"]]
time = 2023-02-14T16:45:24.167Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xkeyboard_config_jll\\1s8HN\\Artifacts.toml"]]
time = 2023-02-14T16:45:24.168Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXrandr_jll\\J277R\\Artifacts.toml"]]
time = 2023-02-14T16:45:24.169Z
[["C:\\Users\\Math User\\.julia\\packages\\Libtiff_jll\\5VD1s\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.145Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXfixes_jll\\1LNSm\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.147Z
[["C:\\Users\\Math User\\.julia\\packages\\LAME_jll\\fcCkK\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.427Z
[["C:\\Users\\Math User\\.julia\\packages\\Libiconv_jll\\ovuhc\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.898Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xcb_util_wm_jll\\FIhie\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.900Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xcb_util_image_jll\\gqRAg\\Artifacts.toml"]]
time = 2023-02-14T16:45:25.901Z
[["C:\\Users\\Math User\\.julia\\packages\\LZO_jll\\CSp70\\Artifacts.toml"]]
time = 2023-02-14T16:45:26.159Z
[["C:\\Users\\Math User\\.julia\\packages\\Libffi_jll\\ZTjhQ\\Artifacts.toml"]]
time = 2023-02-14T16:45:26.326Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXrender_jll\\kA0MM\\Artifacts.toml"]]
time = 2023-02-14T16:45:26.329Z
[["C:\\Users\\Math User\\.julia\\packages\\Glib_jll\\EIruA\\Artifacts.toml"]]
time = 2023-02-14T16:45:28.335Z
[["C:\\Users\\Math User\\.julia\\packages\\libvorbis_jll\\F1e3O\\Artifacts.toml"]]
time = 2023-02-14T16:45:28.609Z
[["C:\\Users\\Math User\\.julia\\packages\\FriBidi_jll\\6CC4V\\Artifacts.toml"]]
time = 2023-02-14T16:45:28.828Z
[["C:\\Users\\Math User\\.julia\\packages\\Ogg_jll\\T4g4x\\Artifacts.toml"]]
time = 2023-02-14T16:45:29.142Z
[["C:\\Users\\Math User\\.julia\\packages\\Libglvnd_jll\\6lXn3\\Artifacts.toml"]]
time = 2023-02-14T16:45:29.143Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libpthread_stubs_jll\\zqOOX\\Artifacts.toml"]]
time = 2023-02-14T16:45:29.144Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXi_jll\\b3siQ\\Artifacts.toml"]]
time = 2023-02-14T16:45:29.145Z
[["C:\\Users\\Math User\\.julia\\packages\\XSLT_jll\\4AZBo\\Artifacts.toml"]]
time = 2023-02-14T16:45:29.502Z
[["C:\\Users\\Math User\\.julia\\packages\\Cairo_jll\\HW4xi\\Artifacts.toml"]]
time = 2023-02-14T16:45:30.394Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_xcb_util_jll\\Ba3MF\\Artifacts.toml"]]
time = 2023-02-14T16:45:30.395Z
[["C:\\Users\\Math User\\.julia\\packages\\Fontconfig_jll\\Y2Ubf\\Artifacts.toml"]]
time = 2023-02-14T16:45:30.839Z
[["C:\\Users\\Math User\\.julia\\packages\\GLFW_jll\\Rctxo\\Artifacts.toml"]]
time = 2023-02-14T16:45:31.054Z
[["C:\\Users\\Math User\\.julia\\packages\\Libgpg_error_jll\\jXazN\\Artifacts.toml"]]
time = 2023-02-14T16:45:31.403Z
[["C:\\Users\\Math User\\.julia\\packages\\x264_jll\\ZcsnT\\Artifacts.toml"]]
time = 2023-02-14T16:45:31.890Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libxkbfile_jll\\9Z72B\\Artifacts.toml"]]
time = 2023-02-14T16:45:31.891Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXinerama_jll\\DWlLt\\Artifacts.toml"]]
time = 2023-02-14T16:45:31.892Z
[["C:\\Users\\Math User\\.julia\\packages\\FreeType2_jll\\cBSNr\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.479Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libX11_jll\\ICRWq\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.480Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXdmcp_jll\\8KpPP\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.480Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXau_jll\\z2hT9\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.481Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libXcursor_jll\\fjJH1\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.482Z
[["C:\\Users\\Math User\\.julia\\packages\\Libuuid_jll\\1D2BD\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.483Z
[["C:\\Users\\Math User\\.julia\\packages\\Xorg_libxcb_jll\\nMYKH\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.484Z
[["C:\\Users\\Math User\\.julia\\packages\\libpng_jll\\9vklf\\Artifacts.toml"]]
time = 2023-02-14T16:45:32.778Z
[["C:\\Users\\Math User\\.julia\\packages\\libaom_jll\\mb4Wf\\Artifacts.toml"]]
time = 2023-02-14T16:45:33.910Z

and the repl_history.jl file:

# time: 2023-02-14 16:44:46 Pacific Standard Time
# mode: pkg
	add GR
# time: 2023-02-14 16:46:23 Pacific Standard Time
# mode: julia
	using GR
# time: 2023-02-14 16:46:27 Pacific Standard Time
# mode: julia
	plot(1:5)
# time: 2023-02-14 16:47:55 Pacific Standard Time
# mode: julia
	exit()

@jheinen
Copy link
Owner

jheinen commented Feb 15, 2023

It seems that the Qt installation provided by the Julia package manager is incomplete. I'm out of office today and can't make further test. The only idea I have is, that there is a problem with the user name. Could you repeat the test on your Windows machine with a user name without spaces in it? But that's only an assumption ...

@IngoMeyer441
Copy link
Contributor

Hey @Vilin97,
I tried to use GR on a fresh Windows 11 machine with a fresh user account which contains a space in its name (Ingo Meyer) and this works for me:

image

It must be another problem...

@Vilin97
Copy link
Author

Vilin97 commented Feb 15, 2023

Rebooting my entire os installation seems overkill but I guess I can try that and see if it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants