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: Open failed in routine OPEN_WS GKS #172

Open
josesovaz opened this issue Nov 15, 2018 · 10 comments

Comments

@josesovaz
Copy link

@josesovaz josesovaz commented Nov 15, 2018

Hello,

I am trying to use some Julia packages. When these packages are trying to plot some results, it gives me the following error:

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
connect: Connection refused
GKS: can't connect to GKS socket application
Did you start 'gksqt'?

Anyway, the plots are created, but I don't know if this error/warning interferes with the plots.

Regards,

Jose

@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 8, 2018

This is also happening every time visual regression tests are run:

screenshot from 2018-12-08 21-44-22

A quite polluted output, even though the tests pass.

@jheinen

This comment has been minimized.

Copy link
Owner

@jheinen jheinen commented Dec 9, 2018

For interactive usage, you will have to install a Qt run-time as described here.

@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 9, 2018

@jheinen I am not seeing how I am "interacting" with GR. I am just following the testing workflow recommended in the language: fire up a Julia session, and type ]test MyPkg. Maybe something more specific should be done in the case of tests to avoid those warnings? I don't need interaction with GR for just running a test suite. Makes sense?

@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 9, 2018

Thanks for the quick replies as usual, and for the great package!

@jheinen

This comment has been minimized.

Copy link
Owner

@jheinen jheinen commented Dec 9, 2018

You could make your tests by only using PDF output:

using GR
GR.inline("pdf")
... # your test code goes here
@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 9, 2018

@jheinen

This comment has been minimized.

Copy link
Owner

@jheinen jheinen commented Dec 9, 2018

There is also PNG 😄

using GR
GR.inline("png")
... # your test code goes here
@jheinen

This comment has been minimized.

Copy link
Owner

@jheinen jheinen commented Dec 9, 2018

... or whatever output format is best suited for visual regression tests.

@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 9, 2018

@juliohm

This comment has been minimized.

Copy link

@juliohm juliohm commented Dec 10, 2018

@jheinen I am already using PNG in visual regression tests. It used to work just fine without warnings as you know. It is just the latest GR that requires Qt in some situations, including just testing (without user interaction).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.