jheinen / GR.jl

Plotting for Julia based on GR, a framework for visualisation applications
Other
354 stars 76 forks source link

GKS: Open failed in routine OPEN_WS GKS #172

Open josesovaz opened 5 years ago

josesovaz commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

juliohm commented 5 years ago

@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 commented 5 years ago

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

jheinen commented 5 years ago

You could make your tests by only using PDF output:

using GR
GR.inline("pdf")
... # your test code goes here
juliohm commented 5 years ago

But then we cannot load them from disk for comparison later with visualregressiontests.jl as usual

On Sun, Dec 9, 2018, 17:03 Josef Heinen <notifications@github.com wrote:

You could make your tests by only using PDF output:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jheinen/GR.jl/issues/172#issuecomment-445562419, or mute the thread https://github.com/notifications/unsubscribe-auth/ADMLbWbRYb80BvYIACKhBCyjOncS3Lhtks5u3V6QgaJpZM4YflIa .

jheinen commented 5 years ago

There is also PNG :smile:

using GR
GR.inline("png")
... # your test code goes here
jheinen commented 5 years ago

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

juliohm commented 5 years ago

I'll try png. I think I tried it already. Not sure :)

On Sun, Dec 9, 2018, 17:28 Josef Heinen <notifications@github.com wrote:

... or whatever http://gr-framework.org/workstations.html output format is best suited for visual regression tests.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jheinen/GR.jl/issues/172#issuecomment-445564253, or mute the thread https://github.com/notifications/unsubscribe-auth/ADMLbV6udcqHL9WAny6qjKsBrO0tsAJlks5u3WRjgaJpZM4YflIa .

juliohm commented 5 years ago

@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).

bourgofr commented 3 years ago

with ubuntu 20.04 and julia 1.5.2 . I have the same issue. It's OK with Atom but KO in a terminal. I solved it with "sudo apt install xvfb"