# Warning: You are using Gtk on Windows which is currently not recommended

**URL:** https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967
**Category:** General Usage
**Created:** [February 21, 2020, 11:32am UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967 "2020-02-21T11:32:57Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)
#### Post date: [February 21, 2020, 11:32am UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/1 "2020-02-21T11:32:57Z")

</div>

What to do ? After adding Gtk is still the same Warning.  
Win 7 , I preparde special USER JuliaPro\_v1.3.1-1 for this instalation JPRO. In Atom was added uber-juno

```julia
(@v1.3) pkg> st
     Status `C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1\environments\v1.3\Project.toml`
   c52e3926 Atom v0.11.3 ⚲
   4c0ca9eb Gtk v1.1.2
   7073ff75 IJulia v1.20.2
   e5e0dc1b Juno v0.7.2 ⚲
   4722fa14 PkgAuthentication v0.1.2
   91a5bcdd Plots v0.28.4
   c17dfb99 WinRPM v1.0.0
   bd07be1c Winston v0.15.0

julia> using Winston
┌ Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).
└ @ Gtk C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1\packages\Gtk\5KVNb\src\Gtk.jl:74

julia> versioninfo()
Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, sandybridge)
Environment:
  JULIA_DEPOT_PATH = C:\Users\JuliaPro_v1.3.1-1\.juliapro\JuliaPro_v1.3.1-1;C:\JuliaPro-1.3.1-1\Julia-1.3.1\local\share\julia;C:\JuliaPro-1.3.1-1\Julia-1.3.1\share\julia
  JULIA_EDITOR = "C:\JuliaPro-1.3.1-1\app-1.44.0\atom.exe" -a
  JULIA_NUM_THREADS = 4
  JULIA_PKG_SERVER = pkg.juliacomputing.com
  JULIA_PKG_TOKEN_PATH = C:\Users\JuliaPro_v1.3.1-1\.juliapro\token.toml

julia> 

```

Paul

---

<div class="post-metadata">

### Author: ![jameson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jameson/32/23_2.png) [@jameson](https://discourse.julialang.org/u/jameson)
#### Post date: [February 21, 2020, 8:48pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/2 "2020-02-21T20:48:30Z")

</div>

Yeah, I wasn’t a huge fan of adding that warning. It’s meaningless, and nothing’s actually changed. But I’m not the Gtk.jl maintainer anymore.

---

<div class="post-metadata">

### Author: ![non-Jedi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/non-jedi/32/3645_2.png) [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)
#### Post date: [February 21, 2020, 8:54pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/3 "2020-02-21T20:54:20Z")

</div>

See the github issue below for an explanation of the warning. If the mentioned issue doesn’t affect your use-case, you can safely ignore the warning.

[https://github.com/JuliaGraphics/Gtk.jl/issues/325](https://github.com/JuliaGraphics/Gtk.jl/issues/325)

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [February 21, 2020, 9:57pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/4 "2020-02-21T21:57:43Z")

</div>

Somebody who actually uses Gtk on Windows in real life should check whether [Warn on windows by SimonDanisch · Pull Request #467 · JuliaGraphics/Gtk.jl · GitHub](https://github.com/JuliaGraphics/Gtk.jl/pull/467#issuecomment-564593402) reduces the scale of the problem without causing issues (e.g., dropped events). If so we could at least paper over the problem.

---

<div class="post-metadata">

### Author: ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)
#### Post date: [February 21, 2020, 11:49pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/5 "2020-02-21T23:49:51Z")

</div>

I use a GUI written with Gtk and ImageView from time to time and I can confirm that the workaround proposed by @tim.holy improves the experience. I wouldn’t say it fixes it 100% because occasionally I see stutters, but it’s better. Just modify according to the comment, build Gtk and give it a try.

---

<div class="post-metadata">

### Author: ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)
#### Post date: [February 23, 2020, 2:56pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/6 "2020-02-23T14:56:21Z")

</div>

After changing singnals.jl tmout\_min::Cint = (uv\_pollfd::\_GPollFD).fd == -1 ? 10 : 5000

winston is lazy …

```julia

> for i=1:100

@time display(scatter(rand(100),rand(100)))
       end
FramedPlot(...)
  0.958385 seconds (1.23 M allocations: 61.319 MiB, 1.73% gc time)
FramedPlot(...)
  0.105294 seconds (17.07 k allocations: 1.478 MiB)
FramedPlot(...)
  0.107720 seconds (17.08 k allocations: 1.480 MiB)
FramedPlot(...)
  0.124370 seconds (17.08 k allocations: 1.480 MiB)
FramedPlot(...)
  0.125256 seconds (17.08 k allocations: 1.481 MiB)
...

Plots also

Plot{Plots.GRBackend() n=1}
  0.212880 seconds (1.23 M allocations: 25.355 MiB, 11.91% gc time)
Plot{Plots.GRBackend() n=1}
  0.219549 seconds (1.23 M allocations: 25.389 MiB, 5.04% gc time)
Plot{Plots.GRBackend() n=1}
  0.199911 seconds (1.23 M allocations: 25.353 MiB)
Plot{Plots.GRBackend() n=1}

```

But on this same machine in clear REPL of Julia 0.7 all workig fast (but I must manualy run gksqt.exe). Looks problem is in Julia PRO.

```julia
ulia> for i=1:100
      @time display(Plots.scatter(rand(100),ran
      sleep(.1)
      end
 0.057756 seconds (560.14 k allocations: 10.974
 0.059458 seconds (545.50 k allocations: 10.751
 0.067727 seconds (536.53 k allocations: 10.580
 0.068309 seconds (536.52 k allocations: 10.580

```

Paul

---

<div class="post-metadata">

### Author: ![JosephPollacco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josephpollacco/32/51404_2.png) [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)
#### Post date: [February 27, 2020, 9:32pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/7 "2020-02-27T21:32:29Z")

</div>

Hi Paul,

It is great that you found a way round GTK problem which I documented:

https://discourse.julialang.org/t/serious-issue-julia-language-keyboard-lag-typing-very-slow/32081

I use Winston since it seems to date to be the fastest plotting package, as I require making a number of plots. Unfortunately I did not find a better alternative solution.

You are speaking to a non computer scientist, so what simple steps must I perform to avoid the Gtk problem?

Many thanks for any help you may provide,  
Joseph

---

<div class="post-metadata">

### Author: ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)
#### Post date: [February 27, 2020, 9:45pm UTC](https://discourse.julialang.org/t/warning-you-are-using-gtk-on-windows-which-is-currently-not-recommended/34967/8 "2020-02-27T21:45:23Z")

</div>

For my is not the some problem, VS and ATOM are not siimlar.  
Just use only REPL Julia 🙂 Studio ,Atom, all are slow on win ! 🙂  
I checked Linux, is the same , Win7 and Julia on Vbox or just on HD is fastest!  
Win10 is not system … it is some like jam 🙂  
Paul
