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

[BUG] Plots no longer work after update to v1.35.0 #4417

Closed
ConnectedSystems opened this issue Oct 4, 2022 · 19 comments
Closed

[BUG] Plots no longer work after update to v1.35.0 #4417

ConnectedSystems opened this issue Oct 4, 2022 · 19 comments
Labels
bug GR upstream julia or dependencies windows

Comments

@ConnectedSystems
Copy link

On Windows 11.

No plot window appears, only the error messages below.
Have tried build Plots GR and reinstall with remove/add.

julia> using Plots

julia> plot([1,2,3,4,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 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
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 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

Details

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: v1.35.0
Backend version (]st -m GR): v0.69.3
Output of versioninfo():

julia> versioninfo()
Julia Version 1.8.1
Commit afb6c60d69 (2022-09-06 15:09 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 7 6800HS Creator Edition
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver3)
  Threads: 1 on 16 virtual cores
@ConnectedSystems ConnectedSystems changed the title [BUG] [BUG] Plots no longer work after update to v1.35.0 Oct 4, 2022
@ConnectedSystems
Copy link
Author

Downgrading to Plots v1.34.4 works:

(sandbox) pkg> status -m Plots GR
Status `C:\...\Manifest.toml`
⌅ [28b8d3ca] GR v0.68.0
⌃ [91a5bcdd] Plots v1.34.4

@t-bltg t-bltg added the GR label Oct 4, 2022
@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

@jheinen

@t-bltg t-bltg added windows upstream julia or dependencies labels Oct 4, 2022
@jheinen
Copy link
Member

jheinen commented Oct 4, 2022

I made a PR to use the recent GR version. This should fix problems with gksqt on some macOS clients.

@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

Thanks. I hope this fixes OP's problem on windows.

Does that also fix #4415 ?

@jheinen
Copy link
Member

jheinen commented Oct 4, 2022

Unfortunately, I don't have access to any Windows 11 box. I may be able to test that next week when I get back to the office.

@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

@ConnectedSystems, see the following comment #4415 (comment), if you are able to debug.

@ConnectedSystems
Copy link
Author

ConnectedSystems commented Oct 4, 2022

No change, sorry.

]activate --temp

(jl_rFyue6) pkg> add Plots

(jl_rFyue6) pkg> status Plots GR
Status `C:\Users\takuy\AppData\Local\Temp\jl_rFyue6\Project.toml`
  [91a5bcdd] Plots v1.35.1

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 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
[... snip ...]

Tried those commands listed in the other comment but don't get any interesting output - unless I'm doing something wrong.
(tried both Powershell and Command Prompt)

tasklist /m /fi "imagename eq gksqt.exe"
INFO: No tasks are running which match the specified criteria.

@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

status Plots GR

I think you want status -m Plots GR (i.e. parse the Manifest since GR is not a direct dependency of you project, but Plots is).

@ConnectedSystems
Copy link
Author

Ah yes of course

(jl_NKRYyX) pkg> status -m Plots GR
Status `C:\Users\takuy\AppData\Local\Temp\jl_NKRYyX\Manifest.toml`
  [28b8d3ca] GR v0.69.3
  [91a5bcdd] Plots v1.35.1

@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

I'm using linux so sorry if my knowledge of windows is close to null.

INFO: No tasks are running which match the specified criteria.

I think that this tends to indicate that starting gksqt.exe failed since no subtask is running.

As @jheinen suggested, can you try to run the path pointed to by Plots.GR.GRPreferences.gksqt[] (does it exist on your filesystem ?) in a windows shell and report any failure here ?

@ConnectedSystems
Copy link
Author

Will try tomorrow, shutting down for the night sorry.

@wheeheee
Copy link

wheeheee commented Oct 4, 2022

Not sure how useful this is but the error I get when I run gksqt.exe is

The procedure entry point _Z21qRegisterDataiPKhS0_S0_ could not be located in the dynamic link library 
C:\Users\whee\.julia\artifacts\e40afe22fcfc9fe1caea4af17a4016e7ef36cd66\bin\gksqt.exe.

@ConnectedSystems
Copy link
Author

Can confirm gksqt.exe exists but unlike the error reported above, I get no message.

(@v1.8) pkg> activate --temp
  Activating new project at `C:\Users\takuy\AppData\Local\Temp\jl_st7sfT`

(jl_st7sfT) pkg> add Plots

(jl_st7sfT) pkg> status -m Plots GR
Status `C:\Users\takuy\AppData\Local\Temp\jl_st7sfT\Manifest.toml`
  [28b8d3ca] GR v0.69.3
  [91a5bcdd] Plots v1.35.2

julia> using Plots

julia> plot(1:5)
connect: No error
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
[ ... snip ...]

julia> Plots.GR.GRPreferences.gksqt[]
"C:\\Users\\takuy\\.julia\\artifacts\\e40afe22fcfc9fe1caea4af17a4016e7ef36cd66\\bin\\gksqt.exe"

In a separate command prompt:

C:/Users/takuy/.julia/artifacts/e40afe22fcfc9fe1caea4af17a4016e7ef36cd66/bin/gksqt.exe

# No output

@t-bltg
Copy link
Member

t-bltg commented Oct 6, 2022

Narrowed down to jheinen/GR.jl#475.

@PaulSoderlind
Copy link

seen this problem also on Win10 (PackageCompiler had held back updates of Plots since 1.32.0)

@t-bltg
Copy link
Member

t-bltg commented Oct 6, 2022

Should be fixed by jheinen/GR.jl#477 (awaiting merge & release).

@t-bltg
Copy link
Member

t-bltg commented Oct 6, 2022

GR@0.69.4 was just released, sorry that it took so long to fix.

@ConnectedSystems, @wheeheee, @PaulSoderlind, can you upgrade and confirm that this issue is fixed ?

@t-bltg t-bltg mentioned this issue Oct 6, 2022
@wheeheee
Copy link

wheeheee commented Oct 6, 2022

Yes, confirmed on Windows 11.

@ConnectedSystems
Copy link
Author

Yes, works for me too (Windows 11 as well), thank you!

@t-bltg t-bltg closed this as completed Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GR upstream julia or dependencies windows
Projects
None yet
Development

No branches or pull requests

5 participants