# Help with student issue: GR.jl and "gks not in proper state" on Windows 10

**URL:** <https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477>\
**Category:** Visualization\
**Tags:** gr\
**Created:** [January 24, 2023, 6:24pm UTC](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477 "2023-01-24T18:24:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![isaacsas](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@isaacsas](https://discourse.julialang.org/u/isaacsas)\
**Post date:** [January 24, 2023, 6:24pm UTC](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477/1 "2023-01-24T18:24:59Z")

</div>

I have student getting “gks not in proper state” when trying to plot under Windows 10 using 1.9-beta-3 and a fresh Julia install with only the latest Plots.jl, IJulia, and GR explicitly added. Does anyone have suggestions for how to fix this? It appears to be a GR issue, as I couldn’t make a plot directly with GR (GR loads fine, but the error appears when calling `plot(1:100, 1:100)`), but could add PlotlyJS as a Plots.jl backend and make a plot just fine.

Looking online it seems this issue has cropped up from time to time in GR.jl, and was last handled via a fix for Windows 11 in October, but I did confirm the student is on the latest release.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 24, 2023, 8:10pm UTC](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477/2 "2023-01-24T20:10:06Z")

</div>

Is the student blocking any network sockets? GR communicates with the QT window via socket.

Could we try to simplify first and just try this directly from the Julia REPL (not IJulia)?

```julia
julia> using GR

julia> plot(1:100, 1:100)

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/2/12a72ea927b4aa07d56e093b346e0e66160ac968.png)

---

<div class="post-metadata">

**Author:** ![isaacsas](https://avatars.discourse-cdn.com/v4/letter/i/f6c823/32.png) [@isaacsas](https://discourse.julialang.org/u/isaacsas)\
**Post date:** [January 24, 2023, 10:33pm UTC](https://discourse.julialang.org/t/help-with-student-issue-gr-jl-and-gks-not-in-proper-state-on-windows-10/93477/3 "2023-01-24T22:33:57Z")

</div>

Sorry I wasn’t clear. I was working via the REPL, and I tried just loading GR and plotting as you suggest (that is how I concluded it is a GR problem and not a Plots.jl problem).

I don’t use or have Windows, so my knowledge of how one does things there is limited; is there an easy way to determine if the student is blocking the socket?
